Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u4py
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rudolf, Michael
u4py
Commits
4244d61c
Commit
4244d61c
authored
3 months ago
by
Rudolf, Michael
Browse files
Options
Downloads
Patches
Plain Diff
Added wms support for BW geola
parent
75678517
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
u4py/addons/web_services.py
+10
-4
10 additions, 4 deletions
u4py/addons/web_services.py
with
10 additions
and
4 deletions
u4py/addons/web_services.py
+
10
−
4
View file @
4244d61c
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment