<div dir="ltr"><div>Hi,</div><div><br></div><div>I want to ask a question for the mapinfo(mitab) driver. When i try to open a .tab file whose geometry type is polygon, OGRFeatureDefn::GetGeomType method for layer object return wkbUnknown instead of wkbPolygon. When i search for the mitab_tabfile.cpp for the geometry type parsing code, i encounter with this block of code in the TABFile::Open method .</div>
<div><br></div><div><div> int numPoints=0, numRegions=0, numTexts=0, numLines=0;</div><div><br></div><div> GetFeatureCountByType( numPoints, numLines, numRegions, numTexts);</div><div><br></div><div> numPoints += numTexts;</div>
<div> if( numPoints > 0 && numLines == 0 && numRegions == 0 )</div><div> m_poDefn->SetGeomType( wkbPoint );</div><div> else if( numPoints == 0 && numLines > 0 && numRegions == 0 )</div>
<div> m_poDefn->SetGeomType( wkbLineString );</div><div><span style="white-space:pre"> </span>else</div><div> /* we leave it unknown indicating a mixture */;</div></div><div><br></div><div>
the case for the "numPoints == 0 && numLines == 0 && numRegions > 0" is missing. So polygon support is missing. When i add this case to code and set the geomtype as polygon, the driver works fine for polygon files. Is this a bug or is it intentionally missing?</div>
<div><br></div><div>Thanx.</div><div><br></div><div>cemal.</div></div>