Skip to content

Commit

Permalink
Fix typo on min zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Oct 9, 2023
1 parent 02d5503 commit 876d891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def ogr_export(query, outputtype, working_dir, dump_temp_path, params):
file.write(query)
# for mbtiles we need additional input as well i.e. minzoom and maxzoom , setting default at max=22 and min=10
if outputtype == RawDataOutputType.MBTILES.value:
if params.min_zooom and params.max_zoom:
if params.min_zoom and params.max_zoom:
cmd = """ogr2ogr -overwrite -f MBTILES -dsco MINZOOM={min_zoom} -dsco MAXZOOM={max_zoom} {export_path} PG:"host={host} user={username} dbname={db} password={password}" -sql @"{pg_sql_select}" -lco ENCODING=UTF-8 -progress""".format(
min_zoom=params.min_zoom,
max_zoom=params.max_zoom,
Expand Down

0 comments on commit 876d891

Please sign in to comment.