1 | | Hmm, this can be a tricky issue because it depends on the plane of the vector's projection [to the best of my knowledge]. If the vector resides within a plane, casting into OGRPolygon or OGRMultiPolygon is all right, but if it doesn't, then it might be a polyhedral surface. This is unfortunately not handled by the OGR core as of yet [You can check http://www.gdal.org/classOGRGeometry.html]. A temporary workaround is to check if polylines are 3D and cast them into OGRMultiPolygon or OGRPolygon if they aren't. |
2 | | |
3 | | PS: I had trouble viewing your test file. Is the file corrupt? |
| 1 | Hmm, this can be a tricky issue because it depends on the plane of the vector's projection [to the best of my knowledge]. If the vector resides within a plane, casting into OGRPolygon or OGRMultiPolygon is all right, but if it doesn't, then it might be a polyhedral surface. This is unfortunately not handled by the OGR core as of yet [You can check http://www.gdal.org/classOGRGeometry.html]. A temporary workaround is to cast geometries into OGRMultiPolygon if they are of type polygon mesh or polyface mesh. |