[QGIS-trac] [Quantum GIS] #1245: QgsFeature.setGeometry() does not
work properly for MultiPolygons
Quantum GIS
qgis at qgis.org
Sun Aug 24 10:55:30 EDT 2008
#1245: QgsFeature.setGeometry() does not work properly for MultiPolygons
-------------------------------------------------------+--------------------
Reporter: cfarmer | Owner: jef
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.0.0
Component: Vectors | Version: HEAD
Keywords: setGeometry(), QgsFeature, MultiPolygon | Platform_version:
Platform: Linux | Must_fix: Yes
Status_info: 0 |
-------------------------------------------------------+--------------------
Using the following test, I get an unknown wkbType:
geom = feat.geometry()
multi_geom = QgsGeometry()
if geom.isMultipart():
multi_geom = geom.asMultiPolygon()
temp_geom = QgsGeometry.fromMultiPolygon(multi_geom)
#temp_geom has a wkbType of 6 (MultiPolygon)
outfeat.setGeometry(temp_geom)
check_geom = outfeat.geometry()
#check_geom has a wkbType of 7 (Unknown)
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1245>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list