Skip to content

Commit

Permalink
[Fixes #81] Bug: set rasterdatasets as maplayer when creating a map f…
Browse files Browse the repository at this point in the history
…ails
  • Loading branch information
mwallschlaeger committed Dec 5, 2024
1 parent b16b49f commit ddc0f41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/geonoderest/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
)

OGC_WFS_LINK_TYPE = "OGC:WFS"
OGC_WCS_LINK_TYPE = "OGC:WCS"


class GeonodeMapsHandler(GeonodeResourceHandler):
Expand Down Expand Up @@ -171,6 +172,8 @@ def __build_blob_maplayer__(
for link in dataset["links"]:
if link["link_type"] == OGC_WFS_LINK_TYPE:
wfs_url = link["url"]
if link["link_type"] == OGC_WCS_LINK_TYPE:
wfs_url = link["url"]

ptype = "wms" if dataset["ptype"] == "gxp_wmscsource" else "wfs"

Expand Down

0 comments on commit ddc0f41

Please sign in to comment.