#7218: GIS: ogrinspect sometimes gets field types wrong
-------------------------------+--------------------------------------------
          Reporter:  jdunck    |         Owner:  nobody                         
            Status:  closed    |     Milestone:                                 
         Component:  GIS       |       Version:  gis                            
        Resolution:  invalid   |      Keywords:  ogr gdal shp shapefile geometry
             Stage:  Accepted  |     Has_patch:  0                              
        Needs_docs:  0         |   Needs_tests:  0                              
Needs_better_patch:  0         |  
-------------------------------+--------------------------------------------
Changes (by jbronn):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 Marking this as invalid because it can't be fixed without scanning every
 feature in the shapefile.  This is because the
 [http://www.gdal.org/ogr/drv_shapefile.html 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
 [http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf shapefile
 specification] itself doesn't differentiate between `Polygon` and
 `MultiPolygon`.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7218#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to