Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7218 closed (invalid)

GIS: ogrinspect sometimes gets field types wrong

Reported by: jdunck Owned by: nobody
Component: GIS Version: gis
Severity: Keywords: ogr gdal shp shapefile geometry
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Using census state, a multipolygon field is reported as polygon; similarly, tnris streets reports linestring for multilinestring.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by jbronn

  • Component changed from Uncategorized to GIS
  • Keywords ogr gdal shp shapefile geometry added

comment:2 Changed 6 years ago by jbronn

  • Resolution set to invalid
  • Status changed from new to closed

Marking this as invalid because it can't be fixed without scanning every feature in the shapefile. This is because the OGR driver can't differentiate between the formats:

"Note that when reading a Shapefile of type SHPT_ARC, the corresponding layer will be reported as of type wkbLineString, but depending on the number of parts of each geometry, the actual type of the geometry for each feature can be either OGRLineString or OGRMultiLineString. The same applies for SHPT_POLYGON shapefiles, reported as layers of type wkbPolygon, but depending on the number of parts of each geometry, the actual type can be either OGRPolygon or OGRMultiPolygon."

This is because the shapefile specification itself doesn't differentiate between Polygon and MultiPolygon.

comment:3 Changed 6 years ago by jdunck

Maybe make a --robust flag?

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.