Bug report #3523

export/add geometry columns does not work if shape is obtained from kml

Added by Giovanni Manghi over 9 years ago. Updated over 3 years ago.

Status:Closed
Priority:Low
Assignee:Otto Dassau
Category:Processing/QGIS
Affected QGIS version: Regression?:
Operating System:All Easy fix?:
Pull Request or Patch supplied: Resolution:wontfix
Crashes QGIS or corrupts data: Copied to github as #:13583

Description

This is not always true, but there are cases where saving a shpefile from a KML leads to a vector where the "export/add geometry columns" produce X and Y columns with just zeros. Attached an example.

teste_shp.zip (2.97 KB) Giovanni Manghi, 2011-02-24 11:43 AM

History

#1 Updated by Alexander Bruy over 9 years ago

If you examine attached shapefile with ogrinfo, you will see that it has MULTIPOINT geometry type

$ogrinfo -al teste.shp
Layer name: teste
Geometry: Multi Point
Feature Count: 50

Single MULTIPOINT geometry can contain several points, so it is impossible to extract coordinates into one row. So I think this is invalid. Any objections to close ticket?

#2 Updated by Giovanni Manghi over 9 years ago

Well spotted. We can definitely close this ticket. I believe that it would also be better to add a note to the documentation. Saving the layer as singlepart it works ok.

#3 Updated by Giovanni Manghi over 9 years ago

  • Resolution set to wontfix
  • Status changed from Open to Closed

#4 Updated by Giovanni Manghi over 3 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF