[GRASS-user] OpenFileGDB input error

Markus Metz markus.metz.giswork at gmail.com
Thu Sep 28 10:40:17 PDT 2017


On Wed, Sep 27, 2017 at 11:15 AM, Even Rouault <even.rouault at spatialys.com>
wrote:
>
>
>
> > > 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()?
>
>
>
> Ah, I just forgot the existence of OGR_G_GetLinearGeometry(). Might be
indeed more obvious to use. Both use ultimately the same mechanisms for
linear approximation.
>
> The main difference being that OGR_G_GetLinearGeometry() returns a new
object, whereas OGR_G_ForceTo() transforms in place.

As of trunk r71513, v.in.ogr converts any curve types to linear equivalents
with OGR_G_GetLinearGeometry().

Thanks for the feedback, Even!

Markus M
>
>
>
> Evven
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20170928/bd87fe7a/attachment.html>


More information about the grass-user mailing list