Changes between Initial Version and Version 1 of Ticket #6246, comment 2


Ignore:
Timestamp:
Mar 18, 2016, 6:11:54 AM (8 years ago)
Author:
meier

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6246, comment 2

    initial v1  
    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?
     1Hmm, 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.