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

Showing features of a Surface layer causes problems #84

Open
Cryaaa opened this issue Mar 26, 2024 · 0 comments · May be fixed by #85
Open

Showing features of a Surface layer causes problems #84

Cryaaa opened this issue Mar 26, 2024 · 0 comments · May be fixed by #85

Comments

@Cryaaa
Copy link
Contributor

Cryaaa commented Mar 26, 2024

When I use the show table widget on a surface layer which has the feature attribute set but not the properties attribute then the table widget sets the properties to an empty dictionary. This causes 2 issues:

  1. The features of the surface layer are not shown
  2. Other plugins trying to access the features see empty properties although the feature attribute is populated

I believe these lines are the culprit, so maybe we could change the checks to include both the properties and the features attribute? I will make a quick fork and pull request soon

if hasattr(layer, "properties"):
self.set_content(layer.properties)
else:
self.set_content({})

@Cryaaa Cryaaa linked a pull request Mar 27, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant