Bug report #17019

Off-line editing does not work with WFS-T layers with mixed simple and multi geoms

Added by Giovanni Manghi over 6 years ago. Updated about 5 years ago.

Status:Feedback
Priority:High
Assignee:-
Category:C++ plugins/Offline editing
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:24918

Description

On 2.18.11 nightly the error is

"Offline Editing Plugin: ERROR: 244 feature(s) not added - geometry type is not compatible with the current layer."

On master trying to put off line the same layer results in a complete freeze.


Related issues

Related to QGIS Application - Bug report #17087: WFS provider deadlock (freezes forever waiting for mMutex... Closed 2017-08-29

History

#1 Updated by Jürgen Fischer over 6 years ago

  • Related to Bug report #17087: WFS provider deadlock (freezes forever waiting for mMutex to unlock) added

#2 Updated by Alessandro Pasotti over 6 years ago

  • Affected QGIS version changed from 2.18.11 to master
  • Subject changed from Off-line editing does not work for WFS-T layers from QGIS Server to Off-line editing does not work with WFS-T layers with mixed simple and multi geoms

For example, with the world layer from

QGIS Server Docker to reproduce the issue:

https://github.com/elpaso/qgis-server-docker
docker pull elpaso/qgis-server-docker

#3 Updated by Alessandro Pasotti over 6 years ago

See the discussion in https://github.com/qgis/QGIS/pull/5091
There is probably an upstream issue in the OGR/GDAL geometry model when the underlying storage is a shapefile, not yet sure about the right fix for this issue.

#4 Updated by Alessandro Pasotti over 6 years ago

See: https://github.com/qgis/QGIS/pull/5096 and related (closed) https://github.com/qgis/QGIS/pull/5091

I would probably close as won't fix for now. I guess we should open another ticket on the WFS provider to implement a more robust algorhitm to determine the correct wkbType in case the server does not report enough information about the geometry type.

#5 Updated by Paolo Cavallini over 5 years ago

Could you please check again on current release?
Thanks.

#6 Updated by Giovanni Manghi over 5 years ago

  • Status changed from Open to Feedback

Paolo Cavallini wrote:

Could you please check again on current release?
Thanks.

Please change status to "feedback" when needed.

#7 Updated by Giovanni Manghi about 5 years ago

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF