g3w-suite / g3w-client-plugin-editing

https://g3w-suite.readthedocs.io/en/latest/g3wsuite_editing.html
0 stars 3 forks source link

Editing - Geometry type of element LineStringZ does not match layer type LineString #62

Open bard0x opened 1 year ago

bard0x commented 1 year ago

Checklist

Subject of the issue

Good morning,

I have a QGIS project with an array of layers with 3D geometry. When I go to edit on an object of the g3w layer it gives me an error like this:

image

All this does not occur if I modify an attribute on a project instead with 2D geometry.

How does this happen?

Steps to reproduce

Described above.

Environment

Link to your project

No response

Additional info

No response

volterra79 commented 1 year ago

@bard0x could you attach such a verify layer?

bard0x commented 1 year ago

@bard0x could you attach such a verify layer?

Of course.

Actually I think the problem is in the geometry update phase as I'm trying to save a LineString with x,y,z in SQLServer and somehow before going to edit there is some sort of validation that doesn't allow me to perform the save because it expects a LineStringZ.

I am attaching a backup of a sqlserver db (.bacpac) that the same script in .sql format, with a simple table containing a record with a 3D geometry which, if imported into a QGIS project, and then uploaded to G3W, does not allow the 'editing any attribute displaying the error message mentioned in this issue.

dbtestg3w.zip

volterra79 commented 1 year ago

@bard0x Thanks. As soon as I have news I'll let you know

bard0x commented 1 year ago

@bard0x Thanks. As soon as I have news I'll let you know

Thank you very much!

DanyHubGit commented 1 year ago

I also confirm the same problem, 3D geometries seem not to be editable.

DanyHubGit commented 1 year ago

@bard0x Thanks. As soon as I have news I'll let you know

@volterra79 I tried with the latest 3.7 updates, but the problem persists.

As pointed out by @bard0x , there seems to be some upstream checks blocking the geometry change from being saved. If that assumption is correct, editing shouldn't work on any 3D geometry.

volterra79 commented 1 year ago

@DanyHubGit @bard0x we're checking with the g3w-admin part as well. As soon as we have news we let you know. Thank you

Raruto commented 1 year ago

@DanyHubGit @bard0x just a small note.

Please also remember to provide provide a link to the map in which you encounter problems in this way they can replicate your bug exactly in order to facilitate the developers' work (set up a new project that is identical to yours takes a long time, and sometimes the solution to your issue could be simpler than you think, also for this it is useful your example to debug).

Link to your project

No response

Also regarding the attached files, you can use the following section when creating the issue

Additional info

No response

Have a nice day, Raruto