Skip to content

Commit

Permalink
fix(mvt-format): fix bug on mvt formats invalid command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Aug 8, 2024
1 parent 9d5d7dd commit 6e34624
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,11 @@ def ogr_export(query, outputtype, working_dir, dump_temp_path, params):
format_options[RawDataOutputType.MVT.value] = {
"format": "MVT",
"extra": (
"-dsco MINZOOM={} -dsco MAXZOOM={} ".format(
"-dsco MINZOOM={} -dsco MAXZOOM={} -dsco FORMAT=MBTILES".format(
params.min_zoom, params.max_zoom
)
if params.min_zoom and params.max_zoom
else "-dsco MINZOOM=0 -dsco MAXZOOM=20 FORMAT=MBTILES"
else "-dsco MINZOOM=10 -dsco MAXZOOM=15 -dsco FORMAT=MBTILES"
),
}

Expand Down

0 comments on commit 6e34624

Please sign in to comment.