qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.5k stars 2.99k forks source link

Problems editing wfs features QGIS #47894

Open newmarwegner opened 2 years ago

newmarwegner commented 2 years ago

What is the bug or the crash?

When create and save a new feature in wfs 2.0.0 feature connected in qgis 3.22, the feature its created, but when press the reload button, the point create have a displacement from the correct place. Open a new project and adding the feature again its possible to see that feature its not create at the right place. wfs connect Captura de tela de 2022-03-21 11-36-37 feature created and save without reload in the right place Captura de tela de 2022-03-21 11-39-00 wfs after press reload button Captura de tela de 2022-03-21 11-40-30

Steps to reproduce the issue

  1. Connect wfs 2.0.0 qgis;
  2. start editing wfs;
  3. create a new point feature;
  4. stop editing;
  5. press reload button (in this step probably will see the displacement).

Versions

QGIS 3.22.4

Supported QGIS version

New profile

Additional context

No response

klebersonrn commented 2 years ago

Hello, I have the same problem, I had to download an old version of qgis, 3.10. Here the points do not move.

elpaso commented 2 years ago

Inverted axis?

newmarwegner commented 2 years ago

Inverted axis?

when try enable inverted axis in settings of connection give an error of extension incorrectly.

newmarwegner commented 2 years ago

Inverted axis?

In fact, when I check the coordinates they are inverted. Is there some way to solve this issue?

michikommader commented 1 year ago

I observe similar behaviour with QGIS 3.28.0 when editing a WGS84-referenced layer from GeoServer 2.21.2 via WFS-T. The layer is served through PostGIS.

GeoServer's getCapabilities() requests return the following SRS definitions for my layer of interest:

Loading my layer in QGIS works well with all three WFS versions 1.0.0, 1.1.0, 2.0.0 with default QGIS settings (no axis inversion etc. selected). All geometries are rendered correctly. Thus, I suppose that both QGIS and GeoServer handle coordinate axis order correctly.

But when I toggle layer editing, draw a new feature and save/commit my change to GeoServer, the newly created geometry is written inconsistently:

I am aware of axis order issues on GeoServer-side. Looking at my GeoServer's getCapabilities() responses above, the SRS seems to be correctly defined. And also rendering of downloaded features works correctly with QGIS default settings. Thus, I suppose, that there is a problem when committing changes via WFS-T 2.0.0?

krzysztof-adamski commented 1 year ago

I have the same problem with WFS layer. In my opinion problem is not in edit mode - because modification attributes on layer depend on read-only layer on geoserver side.

True issue is when I trying reload WFS layer, by click - (reload action) on the table attributes. Then QGIS crashing sudenly.

I don't know how this issue shoul be resolve. Maybe disable layer to reload datasource.