Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong parsing of style title #15

Closed
giohappy opened this issue Apr 26, 2021 · 0 comments
Closed

Wrong parsing of style title #15

giohappy opened this issue Apr 26, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@giohappy
Copy link

The NamedLayer.Title element is parsed first and, in case of exception, the UserStyle.Title is tried. By the way the missing NamedLayer.Title never throws and, consequently UserStyle.Title is nevers parsed. This makses the gs_style.sld_title property always empty.

title_node = named_layer.find("{http://www.opengis.net/sld}Title")
except AttributeError:
try:
# it is not mandatory
title_node = user_style.find("{http://www.opengis.net/sld}Title")
except AttributeError:
pass

@giohappy giohappy added the bug Something isn't working label Apr 26, 2021
@giohappy giohappy self-assigned this Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants