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

Obtain layer default style with original format #29

Open
giohappy opened this issue Feb 21, 2022 · 0 comments
Open

Obtain layer default style with original format #29

giohappy opened this issue Feb 21, 2022 · 0 comments

Comments

@giohappy
Copy link

giohappy commented Feb 21, 2022

Layer.default_style getter retrieve the style from Catalog.get_styles with recursive set to False (default value).
This makes Catalog.get_styles the style name from styles.xml, without making a request for the detail XML for the style.
The end result is that the Style object is created with style format sld10 independently from the original format,

If we want to keep the shallow retrieval of style for the Layer.default_style property we might consider implementing an explicit Layer.get_full_default_style() that will call (and set) the style using the recursive method.

@giohappy giohappy changed the title Layer.default_style obtains the style in sdl10 format indpendently from the original format Obtain layer default style with original format Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant