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

Can not create "Rectangle from 3 Points" in Scratch Layer or GPKG #35043

Closed thillyard closed 4 years ago

thillyard commented 4 years ago

Describe the bug When attempting to "Create a rectangle from 3 Points" with either of the two methods given. The user is unable to commit changes to the layer. This seems to occur for GPKG, spatialite and Scratch layers, but works as expected with Shapefile Layers

How to Reproduce

  1. Start with a blank map canvas add a scratch polygon layer
  2. choose either of the "Add Rectangle by 3 Points options image
  3. create a polygon
  4. attempt to commit the edits
  5. See error --> image

QGIS and OS versions

QGIS version 3.12.0-București QGIS code revision cd141490ec Compiled against Qt 5.11.2 Running against Qt 5.11.2 Compiled against GDAL/OGR 3.0.4 Running against GDAL/OGR 3.0.4 Compiled against GEOS 3.8.0-CAPI-1.13.1 Running against GEOS 3.8.0-CAPI-1.13.1 Compiled against SQLite 3.29.0 Running against SQLite 3.29.0 PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0 QWT Version 6.1.3 QScintilla2 Version 2.10.8 Compiled against PROJ 6.3.1 Running against PROJ Rel. 6.3.1, February 10th, 2020 OS Version Windows 10 (10.0) Active python plugins crayfish; DigitizingTools; go2streetview; icsm_ntv2_transformer; kmltools; LAStools; latlontools; mapswipetool_plugin; mmqgis; NNJoin; openlayers_plugin; processing_trajectory; qconsolidate3; qNote; SDEllipse; SRTM-Downloader; StreetView; timemanager; valuetool; db_manager; MetaSearch; processing

Additional context

gioman commented 4 years ago

@thillyard if you create your layer as multipolygon then saving the feature created with that tool is ok. I'm not sure if this can be considered a bug or if it is by design.

lbartoletti commented 4 years ago

Nope it's not by design. It's the only one with this bug (and don't no why, but works on mac 3.10 and not on freeBSD 3.10, maybe GDAL changes?)