[GRASS-user] OpenFileGDB input error

Markus Metz markus.metz.giswork at gmail.com
Wed Sep 27 01:17:03 PDT 2017


On Mon, Sep 25, 2017 at 7:26 PM, Even Rouault <even.rouault at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170927/31f5c750/attachment.html>


More information about the grass-user mailing list