diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index b8e1f3377..58d7357d0 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -1374,6 +1374,11 @@ 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} | " @@ -1381,7 +1386,6 @@ def get_project_tiles( f"zooms={zooms} | " f"outdir={tiles_dir} | " f"source={source} | " - f"xy={True if tms else False} | " f"tms={tms}" ) @@ -1391,7 +1395,6 @@ def get_project_tiles( zooms=zooms, outdir=tiles_dir, source=source, - xy=True if tms else False, tms=tms, ) diff --git a/src/backend/pdm.lock b/src/backend/pdm.lock index cb0727a06..1debc6d48 100644 --- a/src/backend/pdm.lock +++ b/src/backend/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "debug", "dev", "docs", "test", "monitoring"] strategy = ["cross_platform"] lock_version = "4.4.1" -content_hash = "sha256:318c50c56d3a2c1d9a7dfe3f527c2efd7c8c98d599fb674bb803349f6b4e9ef2" +content_hash = "sha256:086cde1be651ec7378ad1cf765dd295d234efa160535f44f78d68d379ed9a307" [[package]] name = "aiohttp" @@ -1579,7 +1579,7 @@ files = [ [[package]] name = "osm-fieldwork" -version = "0.14.0" +version = "0.14.1" requires_python = ">=3.10" summary = "Processing field data from ODK to OpenStreetMap format." dependencies = [ @@ -1603,8 +1603,8 @@ dependencies = [ "xmltodict>=0.13.0", ] files = [ - {file = "osm-fieldwork-0.14.0.tar.gz", hash = "sha256:503172335f11d3e8aaf31ef3dd95b702a91d7e367ea90b57012d46791c7a390e"}, - {file = "osm_fieldwork-0.14.0-py3-none-any.whl", hash = "sha256:98bf2001a651b3744a70f6c84326947df4b2c143d9311bd5bd7a69360d59315b"}, + {file = "osm-fieldwork-0.14.1.tar.gz", hash = "sha256:64e9ff38d93f964e8dfe084b1f238d967a916b1588510b2d3a19a9dce1326bc2"}, + {file = "osm_fieldwork-0.14.1-py3-none-any.whl", hash = "sha256:215af4e2a08927decee86456c888eff20216de7b6535fdf2c4636fb4a1d11281"}, ] [[package]] diff --git a/src/backend/pyproject.toml b/src/backend/pyproject.toml index 6bbd5215a..884933d0a 100644 --- a/src/backend/pyproject.toml +++ b/src/backend/pyproject.toml @@ -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", ]