[Xastir] Using GeoPDF maps
Liz
edodd at billiau.net
Sun Dec 4 22:50:22 PST 2016
On Mon, 14 Dec 2015 15:20:52 -0500
Lee Bengston <lee.bengston at gmail.com> wrote:
> For those who want to try converting GeoPDF maps to GeoTif format
> f/u/w Xastir using a high level guide, here goes:
snip
>
> 4) Run the script on each geoPDF map file that you have downloaded.
> I used this syntax (my Ubuntu didn't like the shebang for some
> reason.) perl geopdf2gtiff.pl -f MAPFILENAMEgeo.pdf.
>
> The resulting MAPFILENAMEgeo.tif file is in a format Xastir supports
> and can be used pretty much like any supported offline map.
>
> Note: if you don't modify the script as stated above, conversion will
> take much longer, and you will end up with a larger map that doesn't
> look as good.
>
> Have fun,
> Lee - K5DAT
>
I've just done this, except installed the current gdal
I ran $ perl /usr/share/xastir/scripts/geopdf2gtiff.pl -f
I5506_GeoPDF.pdf
which gave me
User asked us to fudge the neatline, finding nearest 7.5 minute quad
boundaries
Warning: The target file has a 'pdf' extension, which is normally used
by the PDF driver,
but the requested output driver is GTiff. Is it really what you want ?
Warning 1: libXML: 0: Element 'GeometryField': Character content other
than whitespace is not allowed because the content type is 'element-only'.
Creating output file that is 9487P x 4293L.
Processing input file I5506_GeoPDF.pdf.
0...10...20...30...40...50...60...70...80...90...100 - done.
This is a multi-band raster, dithering...
0...10...20...30...40...50...60...70...80...90...100 - done.
0...10...20...30...40...50...60...70...80...90...100 - done.
and as it noted I got a pdf extension, so I just renamed it to .tif
I have got more than the actual map on the Xastir display now, with the
entire mapsheet having been converted to tif
see screenshot
http://www.billiau.net/html/Screenshot_2016-12-05_17-44-33.png
1. How do I cut to the map only?
2. How do I get the name I want as the file produced?
Liz
VK2XSE
More information about the Xastir
mailing list