diff --git a/bin/generate-sqltomvt b/bin/generate-sqltomvt index 37ea2852..056f3e2e 100755 --- a/bin/generate-sqltomvt +++ b/bin/generate-sqltomvt @@ -8,7 +8,7 @@ Usage: [--function | --prepared | --query | --psql | --raw] [--layer=]... [--exclude-layers] [--key] [--gzip []] [--no-feature-ids] - [--test-geometry] + [--test-geometry] [--extent=] generate-sqltomvt --help generate-sqltomvt --version @@ -31,6 +31,7 @@ Options: --no-feature-ids Disable feature ID generation, e.g. from osm_id. You must use this flag when generating SQL for PostGIS before v3 -g --test-geometry Validate all geometries produced by ST_AsMvtGeom(), and warn. + --extent= MVT tile extent [default: 4096]. --help Show this screen. --version Show version. """ @@ -49,6 +50,8 @@ if __name__ == '__main__': else: zoom, x, y = 'zoom', 'x', 'y' + extent = int(args['--extent']) if args['--extent'] is not None else 4096 + mvt = MvtGenerator( tileset=args[''], postgis_ver=args['--postgis-ver'], @@ -59,6 +62,7 @@ if __name__ == '__main__': gzip=args['--gzip'] and (args[''] or True), use_feature_id=False if args['--no-feature-ids'] else None, test_geometry=args['--test-geometry'], + extent=extent, ) if args['--prepared']: