On Wed, Sep 27, 2017 at 11:15 AM, Even Rouault <[email protected]>
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
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to