[Qgis-developer] Geometry precision model
Sandro Mani
manisandro at gmail.com
Mon Sep 14 05:12:39 PDT 2015
On 14.09.2015 10:44, Nyall Dawson wrote:
>
>
> On 14 Sep 2015 5:47 pm, "Hugo Mercier" <hugo.mercier at oslandia.com
> <mailto:hugo.mercier at oslandia.com>> wrote:
>
> >
> > - using the C++ GEOS API instead of the C API that exposes precision
> models.
> >
> > I am not sure yet about what possibility to implement. Is there anything
> > that prevent us from using the C++ GEOS API ? Having it in the C API may
> > also benefit to other projects (PostGIS) ...
> > Or am I totally missing other problems ?
> >
>
> Check out pr #2302 - this is being tackled by manisandro currently.
>
Right, for the geometry checking plugins I've been using the C++ GEOS
API, but I've wrapped the additional precision related functionality in
a C API, see
https://github.com/manisandro/QGIS/blob/geometry_plugins/src/core/geosextra/geos_extra/geos_c_extra.cpp
https://github.com/manisandro/QGIS/blob/geometry_plugins/src/core/geosextra/geos_extra/geos_c_extra.h
Such an API was proposed upstream early this year [1], but the
discussion stalled. So perhaps that discussion could be revived.
Sandro
[1] http://lists.osgeo.org/pipermail/geos-devel/2015-January/007080.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150914/56d7fd7a/attachment.html>
More information about the Qgis-developer
mailing list