comparison make-tile @ 2:94762476b171

Add default resolution to help.
author David Barts <n5jrn@me.com>
date Tue, 24 Aug 2021 18:03:46 -0700
parents d268ae31f94b
children 1944acce0e6f
comparison
equal deleted inserted replaced
1:d268ae31f94b 2:94762476b171
213 # Parse command-line arguments. 213 # Parse command-line arguments.
214 parser = argparse.ArgumentParser(description='Render GeoPDF into GeoTIFF suitable for tiling.') 214 parser = argparse.ArgumentParser(description='Render GeoPDF into GeoTIFF suitable for tiling.')
215 parser.add_argument('--layers', '-l', type=str, 215 parser.add_argument('--layers', '-l', type=str,
216 help='List of layers to include (see documentation for default).') 216 help='List of layers to include (see documentation for default).')
217 parser.add_argument('--resolution', '-r', type=positive_int, default=300, 217 parser.add_argument('--resolution', '-r', type=positive_int, default=300,
218 help='Resolution to render at in DPI.') 218 help='Resolution to render at in DPI (default: 300).')
219 parser.add_argument('file', nargs=1, 219 parser.add_argument('file', nargs=1,
220 help='File to read (must be a GeoPDF).') 220 help='File to read (must be a GeoPDF).')
221 try: 221 try:
222 args = parser.parse_args() 222 args = parser.parse_args()
223 except SystemExit: 223 except SystemExit: