On 14.09.2015 10:44, Nyall Dawson wrote:
On 14 Sep 2015 5:47 pm, "Hugo Mercier" <hugo.merc...@oslandia.com
<mailto:hugo.merc...@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
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer