Skip to content

Commit

Permalink
fix: xlsform question ordering + pmtile generation when custom TMS (#…
Browse files Browse the repository at this point in the history
…1721)

* refactor: use openaerialmap provider for osm_fieldwork.basemapper

* build: updtae osm-fieldwork --> v0.14.1 (xlsform ordering, pmtile fix)
  • Loading branch information
spwoodcock authored Jul 30, 2024
1 parent 1d80b69 commit 9271dae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -1374,14 +1374,18 @@ def get_project_tiles(
log.error(msg)
raise HTTPException(status_code=HTTPStatus.UNPROCESSABLE_ENTITY, detail=msg)

# Overwrite source with OAM provider
if tms and "openaerialmap" in tms:
# NOTE the 'xy' param is set automatically by source=oam
source = "oam"

log.debug(
"Creating basemap with params: "
f"boundary={min_lon},{min_lat},{max_lon},{max_lat} | "
f"outfile={outfile} | "
f"zooms={zooms} | "
f"outdir={tiles_dir} | "
f"source={source} | "
f"xy={True if tms else False} | "
f"tms={tms}"
)

Expand All @@ -1391,7 +1395,6 @@ def get_project_tiles(
zooms=zooms,
outdir=tiles_dir,
source=source,
xy=True if tms else False,
tms=tms,
)

Expand Down
8 changes: 4 additions & 4 deletions src/backend/pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies = [
"pyjwt>=2.8.0",
"async-lru>=2.0.4",
"osm-login-python==1.0.3",
"osm-fieldwork==0.14.0",
"osm-fieldwork==0.14.1",
"osm-rawdata==0.3.0",
"fmtm-splitter==1.3.0",
]
Expand Down

0 comments on commit 9271dae

Please sign in to comment.