# HG changeset patch # User David Barts # Date 1630044393 25200 # Node ID 698b3335a63d1578ade5e8760a6d1074c6591ab0 # Parent 6e4a8ddacf61ce97715838d255d2c6de791f2998 Fix leading comment. diff -r 6e4a8ddacf61 -r 698b3335a63d make-tile --- a/make-tile Thu Aug 26 13:50:18 2021 -0700 +++ b/make-tile Thu Aug 26 23:06:33 2021 -0700 @@ -1,16 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- -# should honor GDALBIN, if set, else use PATH -# https://opengislab.com/blog/2016/4/2/usgs-geopdf-to-geotif-with-gdal -# gdalinfo -json -mdd LAYERS gunk.pdf -# build list of all non-Map.Frame.* layers -# to that add Map_Frame.Projection_and_Grids -# First: -# gdal_translate gunk.pdf /tmp/xxxxx.tif -of GTiff --config GDAL_PDF_LAYERS_OFF Map_Collar,Map_Frame.Projections_and_Grids,Map_Frame.Terrain.Shaded_Relief,Images.Orthoimage --config GDAL_PDF_DPI 300 -# Then: -# gdal_translate /tmp/xxxxx.tif gunk.tif -of GTiff -srcwin xoff yoff xsize ysize -# Need to filter out all errors containing: insufficient arguments for Marked Content -# also fiter out: More than 1000 errors or warnings have been reported. No more will be reported from now. +# Make a tileable GeoTIFF from a USGS National Map GeoPDF. # I m p o r t s