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

"Duplicate feature" creates a new feature without geometry #48964

Open
2 tasks done
jrosleo opened this issue Jun 11, 2022 · 2 comments
Open
2 tasks done

"Duplicate feature" creates a new feature without geometry #48964

jrosleo opened this issue Jun 11, 2022 · 2 comments
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality

Comments

@jrosleo
Copy link

jrosleo commented Jun 11, 2022

What is the bug or the crash?

"Duplicate feature" fails when duplicating a geometry feature. The result has no geometry.

Steps to reproduce the issue

  1. On browser panel right clic on GeoPackage and select "Create database...".
  2. Add a polygon table (EPSG:4326 - WGS 84) with a text data field named "code". Let defaults advanced options intact.
  3. Toggle Editing the layer.
  4. Add a valid polygon feature.
  5. Clic on "Save layer edits".
  6. On "Layers" panel, right clic on your layer and clic on "Open Attribute Table".
  7. Clic on "Switch to form view".
  8. Select the feature.
  9. Right clic an select "Duplicate Feature".

duplicate_feature_issue

  1. Clic on "Save layer edits".

The new feature has no geometry. If you select it and press on "Pan map to the selected rows (Ctrl+P)" or "Zoom map to the selected rows (Ctrl+J)" you get and error due "No extent could be determined."

Versions

QGIS version
3.24.3-Tisler
QGIS code revision
cf22b74
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.4.3
PROJ version
9.0.0
EPSG Registry database version
v10.054 (2022-02-13)
GEOS version
3.10.2-CAPI-1.16.0
SQLite version
3.38.1
PDAL version
2.3.0
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@jrosleo jrosleo added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jun 11, 2022
@jrosleo
Copy link
Author

jrosleo commented Jun 11, 2022

Could it be related to @signedav's issue #5925?

@Pedro-Murteira Pedro-Murteira added Digitizing Related to feature digitizing map tools or functionality Attribute Table labels Jun 13, 2022
@kennorris49
Copy link

QGIS 3.38 on Ubuntu 22.04. Is this resolved/answered? I just struck the problem(?) of "Zoom to feature id failed: Feature does not have a geometry" with attempts to duplicate polygons within an attribute table. It occurred with all attempts to duplicate features within the Attribute Table. Duplication of items (polygons in my case) works when done on the main screen with the 'Copy and Move Features' menu item of the Advanced Digitzing Toolbar. Using EPSG:3111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality
Projects
None yet
Development

No branches or pull requests

3 participants