Ticket #3100 (closed defect: fixed)
Type 51 of geometry in Personal Geodatabase/shape
| Reported by: | fare | Owned by: | chaitanya |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | OGR_SF | Version: | 1.6.1 |
| Severity: | normal | Keywords: | PGEO |
| Cc: |
Description
Similar like in tickets #1484 and #2643 reported nShapeType = 50 here is report of nShapeType = 51. It seems that this type is simply polygon.
Supplied pgeo has two object (1'st is type 51 and second regular polygon type).
If you try to convert supplied pgeo to mapinfo tab you will get empty geometry for objectid=1. If you convert to shape again you get empty geometry for objectid=1 and will you will get objectid=2 geometry converted to polyline(incorrectly).
Adding this code after existing code that handles assigning type 50 to line to function createFromShapeBin in ogrpgeolayer.cpp seems to solve problem
if( nSHPType == 51 )
nSHPType = SHPT_POLYGON;
Now both mi tab and shape contains two polygons.

