Project

General

Profile

Bug #6058

Problem importing shapefile

Added by Pavneet Kaur almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
21/06/2018
Due date:
% Done:

100%

Close

Description

there is an issue importing the V-ROAD-CURB------E shapefile into GISAF. I am attaching a screenshot of the error message. I am following the same procedure as i did for other shapefiles such as V-ROAD-UPVD------E though i didnt face this issue.

Screenshot (2).png View (122 KB) Pavneet Kaur, 21/06/2018 14:00

3909

Associated revisions

Revision ea448dc7 (diff)
Added by Philippe May almost 6 years ago

Fixes #6058: add checks and detail errors on geometry types while importing shapefiles

History

#1 Updated by Philippe May almost 6 years ago

The error is quite clear: the geometries should be "polygons", whereas the shapefile you're trying to import defines "multipolygons".

This page explains the difference:

https://gis.stackexchange.com/questions/225368/understanding-difference-between-polygon-and-multipolygon-for-shapefiles-in-qgis

I'll dig a bit more in this example.

#2 Updated by Philippe May almost 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#3 Updated by Philippe May almost 6 years ago

Added explicit error message for this case.

In the shapefile given as example, that's geometry 24, which has 2 parts.

By the way, QGis can display the number of parts in each geometry, using the formula: "num_geometries($geometry)". This can help.

#4 Updated by Pavneet Kaur almost 6 years ago

Could upload it now! thanks!

#5 Updated by Pavneet Kaur over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF