On Sun, Mar 18, 2012 at 12:16 PM, Tom Hayward <[email protected]> wrote: > I just discovered the USGS US Topo map download site > (http://nationalmap.gov/ustopo/index.html). In the past I have used > USGS Topo quads in geotiff format, but these downloads are "GeoPDF". > It doesn't appear Xastir supports this format. Did I overlook > something? How difficult would this be to add? > > Tom KD7LXL
Fyi, Tom Russo added a script a while back that converts the geopdf's to tiff. Here's a snippet from one of his messages about it. ----------- Committed. Requires not only GDAL 1.8.1 with python support, but also the Perl module "Getopt::Long." This module is installed by the "perl-base" package on my Ubuntu machines, but needed to be installed separately as devel/p5-Getopt-Long on my BSD machine. You may well already have it if you're using Linux (try man Getopt::Long to verify). To run, use: geopdf2gtiff --fixneatline foo.pdf or geopdf2gtiff -f foo.pdf and it'll find the closest 7.5' left, right, top and bottom boundaries that lie inside your geopdf, and clip to those. Should work for any USGS product, but should not be needed unless you verify that the neatline stored in the GeoPDF is unusable. ------- It worked for me in Debian by building gdal from source including python and poppler support. Gdal by itself can convert the geopdf's to 24 bit Tiff's, but Xastir can only handle 8 bit versions. Tom's script does that conversion plus fixes neatlines that are wrong in many of the geopdf's. Regards, Lee - K5DAT _______________________________________________ Xastir mailing list [email protected] http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
