comparison make-tile @ 12:698b3335a63d default tip

Fix leading comment.
author David Barts <n5jrn@me.com>
date Thu, 26 Aug 2021 23:06:33 -0700
parents 6e4a8ddacf61
children
comparison
equal deleted inserted replaced
11:6e4a8ddacf61 12:698b3335a63d
1 #!/usr/bin/env python3 1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 # should honor GDALBIN, if set, else use PATH 3 # Make a tileable GeoTIFF from a USGS National Map GeoPDF.
4 # https://opengislab.com/blog/2016/4/2/usgs-geopdf-to-geotif-with-gdal
5 # gdalinfo -json -mdd LAYERS gunk.pdf
6 # build list of all non-Map.Frame.* layers
7 # to that add Map_Frame.Projection_and_Grids
8 # First:
9 # 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
10 # Then:
11 # gdal_translate /tmp/xxxxx.tif gunk.tif -of GTiff -srcwin xoff yoff xsize ysize
12 # Need to filter out all errors containing: insufficient arguments for Marked Content
13 # also fiter out: More than 1000 errors or warnings have been reported. No more will be reported from now.
14 4
15 # I m p o r t s 5 # I m p o r t s
16 6
17 import os, sys 7 import os, sys
18 import argparse 8 import argparse