On Mon, Sep 25, 2017 at 7:26 PM, Even Rouault <even.roua...@spatialys.com> wrote: > > On lundi 25 septembre 2017 19:19:26 CEST Markus Metz wrote: > > > [...] OGR calls these > > > geometries multi-surfaces. > > > > Actually it is defined by > > OpenGIS Simple Feature Access Part 1 : Common Architecture,v 1.2.1 : > > http://portal.opengeospatial.org/files/?artifact_id=25355 > > > > > Investigating a bit more, I found curve-polygons > > > within these multi-surfaces. Curve-polygons are in turn not ordinary > > > polygons, but defined by curves, and v.in.ogr (most GIS software in > > > general) does not support curves. > > > > > > > The relevant GDAL RFC is > > https://trac.osgeo.org/gdal/wiki/rfc49_curve_geometries > > Support for curves in FileGDB is more recent. > > > > You can force a curve geometry to its linearized version (curves are approximated with segments) with: > > > > hGeom = OGR_G_ForceTo(hGeom, OGR_GT_GetLinear(OGR_G_GetGeometryType(hGeom))) > Thanks for the hint!
I'm looking for a way to support non-linear geometries in v.in.ogr. Is there any advantage of using OGR_G_ForceTo() instead of OGR_G_GetLinearGeometry()? Thanks, Markus M > > Even > > > > -- > > Spatialys - Geospatial professional services > > http://www.spatialys.com
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-user