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

WFS cannot be loaded if layer has previously uploaded styles to geonode #270

Open
AdamChyl opened this issue May 22, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@AdamChyl
Copy link

AdamChyl commented May 22, 2024

As in the title, if a layer has custom styles loaded from qgis, it is not possible to download this layer again from WFS

buttons disabled after trying to download, layer without styles loads correctly
Zrzut ekranu 2024-05-22 124915

@AdamChyl AdamChyl changed the title Can't load WFS if the layer has before uploaded styles to geonode WFS cannot be loaded if layer has previously uploaded styles to geonode May 22, 2024
@AdamChyl
Copy link
Author

AdamChyl commented May 22, 2024

Fixed, if styling is done using strings from fields and if these strings contain special characters, it will crash.

Add error ignoring in styles.py file:
return buffer_.data().decode(encoding=“utf-8”, errors=“ignore”)

@giohappy giohappy added the enhancement New feature or request label Nov 28, 2024
@Gpetrak
Copy link
Contributor

Gpetrak commented Nov 29, 2024

@AdamChyl we made several changes in the way that the plugin handles the style through the WFS. Using the updated code of the plugin (main branch) I cannot re-produce the error. The WFS layer is loaded correctly using custom / uploaded/ reloaded styles. Moreover there is not any crash. Please let us know if the behavior that you described remains the same in the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants