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

Edit Plugin: Cannot edit empty layers if the geometry name is not 'geom' #1447

Closed
sweco-secoma opened this issue Dec 14, 2023 · 0 comments · Fixed by #1448
Closed

Edit Plugin: Cannot edit empty layers if the geometry name is not 'geom' #1447

sweco-secoma opened this issue Dec 14, 2023 · 0 comments · Fixed by #1448
Assignees
Milestone

Comments

@sweco-secoma
Copy link
Contributor

Describe the bug
In the Edit plugin the geometryName of the feature being edited is taken from the first feature in the layer being edited.
If there are not features it defaults to 'geom'.

Current process:

  • Use the geometry name of the first feature.
  • If there are no features default to 'geom'.

This means that it is currently not possible to edit empty layers if the geometry name is not 'geom'.

Suggested fix
Add the possibility to set a geometryField on wfst layers that will be used if there are no features to get the
geometry name from (The same as is done for wfs search layers)

New process:

  • Use the geometry name of the first feature.
  • If there are no features check if there is a 'geometryField' setting on the edit layer config.
  • Finally, default to 'geom'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants