[Xastir] Using GeoPDF maps

Liz edodd at billiau.net
Mon Dec 5 22:19:20 PST 2016


On Mon, 5 Dec 2016 18:36:26 -0700
Tom Russo <russo at bogodyn.org> wrote:

snip

> geopdf2gtiff is really nothing more than a wrapper for gdalwarp.  It
> sets up the command line for a gdalwarp call to strip the border
> (outside the neatline) and warp the coordinates to WGS84 Lat/Lon
> instead of whatever they're in.  If you're no good at hacking perl,
> and are willing to put your GeoPDF somewhere where I can get at it, I
> might be able to take a look at adding a more sophisticated way for
> you to specify neatline besides "use what's there" or "fudge it to
> find a USGS quad boundary."
> 
> As for the naming issue...
> 
> The script takes the name of the geoPDF you give it and replaces
> ".pdf" with .tif in the file name to get the output filename.
> Clearly, there is something up with your file name that confuses the
> perl that does this.  All it does is do a case-insensitive replace of
> "pdf" with "tif".  Since your file has TWO occurances of the letters
> "pdf" it's replacing the first one.  My guess is that your output
> file was named "I5506_Geotif.pdf", right?  Just rename your input to
> "I5506.pdf" and you should get an output file called "I5506.tif".


The neatline encoded didn't make the grade. 
Trying without -f gave some cut to the mapsheet, but it wasn't correct.

Indeed the map name is I5506_GeoPDF.pdf
so that's why the 'tif' came in the wrong place. It's available at 
http://www.billiau.net/html/I5506_GeoPDF.pdf

Thanks for having a look at it.

Liz 
VK2XSE


More information about the Xastir mailing list