Skip to content
Snippets Groups Projects
Commit 4244d61c authored by Rudolf, Michael's avatar Rudolf, Michael
Browse files

Added wms support for BW geola

parent 75678517
No related branches found
No related tags found
No related merge requests found
......@@ -351,10 +351,16 @@ def wms_in_gdf_boundary(
if layer in layers:
lyr = wms[layer]
# Get info from layer
if hasattr(lyr, "crs_list"):
lyr_crsopts = [
v[-1] for v in lyr.crs_list if v[-1].startswith("EPSG:")
] # use only a reduced set where the bounds are supplied
elif hasattr(lyr, "crsOptions"):
lyr_crsopts = [
v[-1] for v in lyr.crs_list if v[-1].startswith("EPSG:")
]
else:
raise AttributeError("Check the WMS layer crs attribute!")
# Check if the input crs is supported
if not str(bound_gdf.crs) in lyr_crsopts:
# if not supported use default crs from layer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment