[Xastir] GeoPDF try
Kurt
ksaves2 at sbcglobal.net
Sat Dec 12 21:48:35 EST 2015
Thanks for giving it a shot Lee. I'm not educated enough to even know where to start.Kurt KC9LDH
From: Lee Bengston <lee.bengston at gmail.com>
To: Xastir - APRS client software discussion <xastir at lists.xastir.org>
Sent: Saturday, December 12, 2015 7:55 PM
Subject: [Xastir] GeoPDF try
All the talk lately about offline maps prompted me to try converting the
latest USGS Topo maps from geoPDF format to geoTiff using the
geopdf2gtiff.pl script. I did this back in 2011 or 2012 after Tom KM5VY
created the script. At that time it was a requirement (at least in the
Ubuntu/Debian world) to install gdal from source because the version in the
repository was too old.
The binary version of gdal in today's Ubuntu repo's is newer than the one I
had to compile 3-4 years ago, so I thought I would give it a go using
that. I downloaded a geoPDF map for my area, and ran the script.
$ ./geopdf2gtiff.pl -f VA_Leesburg_20130613_TM_geo.pdf
User asked us to fudge the neatline, finding nearest 7.5 minute quad
boundaries
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 12245P x 12245L.
Processing input file VA_Leesburg_20130613_TM_geo.pdf.
Using band 4 of source image as alpha.
Using band 4 of destination image as alpha.
ERROR 1: Bad color space dict'
ERROR 1: Pos = 9046254, Bad image parameters
ERROR 1: Bad color space dict'
ERROR 1: Pos = 9046254, Bad image parameters
ERROR 1: Bad color space dict'
ERROR 1: Pos = 9046254, Bad image parameters
ERROR 1: Bad color space dict'
ERROR 1: Pos = 9046254, Bad image parameters
ERROR 1: Bad color space dict'
ERROR 1: Pos = 9046254, Bad image parameters
ERROR 1: Bad color space dict'
I aborted the script at this point. Oh well, it appears the latest
geoPDF's have issues. I could try building gdal from source including
compiling in the required poppler support, but if the issue was gdal or
poppler related I think the errors would be different. Also I was trying
to find an offline map solution that did not require building a package
like gdal from source.
BR,
Lee - K5DAT
_______________________________________________
Xastir mailing list
Xastir at lists.xastir.org
http://xastir.org/mailman/listinfo/xastir
More information about the Xastir
mailing list