0

I'm trying to convert shape file to POINT geometry using QGIS 3.10.5.

Here is info of my shape file:

enter image description here

Here are my conversion settings:

enter image description here

Error that I get:

Export to vector file failed. Error: Feature write errors: Feature creation error (OGR error: Attempt to write non-multipoint (MULTIPOLYGON) geometry to multipoint shapefile.)

I can successfully load data in MSSQL server which is recognizing all shapes nicely so shape file is OK. I need to convert to POINT geometry to work with visualizations in Tableau. Any help or pointers is highly appreciated.

EDIT: My actual problem was that I had MULTIPOLYGONS which Tableau doesn't support. Tableau do support POLYGONS.

7
  • It does not go that easy but you must convert your geometries into points first. Do you aim at having one point per geometry or one point per vertex? – user30184 May 15 '20 at 9:56
  • @user30184 to be honest I don't know. Whatever will work with Tableau..can you point me on how to one point per geometry? – Harvey May 15 '20 at 10:23
  • 1
    If you should create a centroid for polygons, try RealCentroid plugin or Point on Surface processing algorithm to get one internal point for each polygon. To get all vertices of the polygon you can use Extract vertices processing algorithm. – Zoltan May 15 '20 at 10:30
  • 2
    Are you sure that you are on the right track? Tableau claims to support polygons help.tableau.com/current/pro/desktop/en-us/maps_shapefiles.htm. Perhaps your problem is in multipolygons which you should maybe convert into single part polygons. – user30184 May 15 '20 at 10:46
  • 1
    @user30184 You're right. Problem was in multipolygons. – Harvey May 19 '20 at 5:36
1

Run Centroids first:

From:

Vector> Geometry Tools> Centroids..

This will generate a point per feature, in the center of the feature.

4
  • Will I lose shapes than? – Harvey May 15 '20 at 10:39
  • Yes. They will just be points. – HeikkiVesanto May 15 '20 at 10:51
  • A small hint before using 'Centroids..', for processing Multipolygons apply additionally 'Multipart to singleparts'. – Taras May 15 '20 at 11:03
  • @Taras, that depends if they want one point per feature or one point per polygon. – HeikkiVesanto May 15 '20 at 11:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.