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

'Merge selected features' tool creates invalid MULTIPOLYGON instead of POLYGON geometry #14960

Closed
qgib opened this issue Mar 23, 2012 · 6 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Mar 23, 2012

Author Name: Ivan Mincik (Ivan Mincik)
Original Redmine Issue: 5224
Affected QGIS version: master
Redmine category:digitising


In some cases, 'Merge selected feature' tool creates invalid MULTIPOLYGON instead of possible single POLYGON geometry.
This makes a problem in case, when layer supports only single POLYGON geometries. This problem can be avoided, when all nodes of one of the features are moved and returned back to the same place using 'Node tool' before merge.

Example data is attached. I also did test with merging the geometries using PostGIS - correct single polygon was returned.

SELECT
ST_GeometryType(
ST_Union(
ST_GeomFromText('POLYGON((-417988.970000 -1228096.180000,-417983.190000 -1228094.430000,-417982.733626 -1228096.512726,-417984.489917 -1228097.460187,-417988.330000 -1228098.540000,-417988.970000 -1228096.180000))'),
ST_GeomFromText('POLYGON((-417984.489917 -1228097.460187,-417982.733626 -1228096.512726,-417982.640000 -1228096.940000,-417984.489917 -1228097.460187))')
)
)

st_geometrytype

ST_Polygon
(1 row)

Qgis: latest release-1_7 branch
OS: Debian Squeeze
Geos: 3.2.0-1


@qgib
Copy link
Contributor Author

qgib commented Apr 16, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.7.4 to Version 1.8.0

@qgib
Copy link
Contributor Author

qgib commented Sep 4, 2012

Author Name: Paolo Cavallini (@pcav)


  • fixed_version_id was changed from Version 1.8.0 to Version 2.0.0

@qgib
Copy link
Contributor Author

qgib commented Jan 11, 2013

Author Name: Nathan Woodrow (@NathanW2)


  • assigned_to_id removed Nathan Woodrow

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.0.0 to Future Release - Lower Priority

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


  • regression was configured as 0
  • easy_fix was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Mar 9, 2019

Author Name: Giovanni Manghi (@gioman)


End of life notice: QGIS 2.18 LTR
*
Source:*
http://blog.qgis.org/2019/03/09/end-of-life-notice-qgis-2-18-ltr/


  • resolution was changed from to end of life
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 9, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Digitizing Related to feature digitizing map tools or functionality labels May 24, 2019
@qgib qgib added this to the Future Release - Lower Priority milestone May 24, 2019
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
Projects
None yet
Development

No branches or pull requests

1 participant