Skip to content

Commit

Permalink
perf(mvt): enhances compatibiltiy of mvt tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Sep 10, 2024
1 parent 4f78b3c commit 40f2ca2
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(
"-t_srs EPSG:3857 -dsco MINZOOM={} -dsco MAXZOOM={} -dsco COMPRESS=NO".format(
params.min_zoom, params.max_zoom
)
if params.min_zoom and params.max_zoom
else "-dsco MINZOOM=10 -dsco MAXZOOM=15"
else "-t_srs EPSG:3857 -dsco MINZOOM=10 -dsco MAXZOOM=15 -dsco COMPRESS=NO"
),
}

Expand Down

0 comments on commit 40f2ca2

Please sign in to comment.