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

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

Closed
thillyard opened this issue Mar 12, 2020 · 2 comments
Closed

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

thillyard opened this issue Mar 12, 2020 · 2 comments
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality Feedback Waiting on the submitter for answers

Comments

@thillyard
Copy link

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
cd14149
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

@thillyard thillyard added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 12, 2020
@gioman gioman added Feedback Waiting on the submitter for answers Digitizing Related to feature digitizing map tools or functionality labels Mar 13, 2020
@gioman
Copy link
Contributor

gioman commented Mar 13, 2020

@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
Copy link
Member

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?)

@lbartoletti lbartoletti self-assigned this May 15, 2020
nyalldawson pushed a commit to nyalldawson/QGIS that referenced this issue May 26, 2020
Fixes qgis#35043, fixes qgis#35671

The initial version of this class presupposed the possibility of constructing a rectangle by 3 points where each point had a  Z. Very useful to make 3D plans, but this is not always what we want...

(cherry picked from commit 8249dcc)
nyalldawson pushed a commit to nyalldawson/QGIS that referenced this issue May 26, 2020
Fixes qgis#35043, fixes qgis#35671

The initial version of this class presupposed the possibility of constructing a rectangle by 3 points where each point had a  Z. Very useful to make 3D plans, but this is not always what we want...

(cherry picked from commit 8249dcc)
nyalldawson pushed a commit that referenced this issue Jun 19, 2020
Fixes #35043, fixes #35671

The initial version of this class presupposed the possibility of constructing a rectangle by 3 points where each point had a  Z. Very useful to make 3D plans, but this is not always what we want...

(cherry picked from commit 8249dcc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality Feedback Waiting on the submitter for answers
Projects
None yet
Development

No branches or pull requests

3 participants