<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 14.09.2015 10:44, Nyall Dawson
wrote:<br>
</div>
<blockquote
cite="mid:CAB28Asg=wfD1eH8w4Uh4qsHyhTVeEzG8EqYse3xHHmN0ZUJ_+g@mail.gmail.com"
type="cite">
<p dir="ltr"><br>
On 14 Sep 2015 5:47 pm, "Hugo Mercier" <<a
moz-do-not-send="true" href="mailto:hugo.mercier@oslandia.com"><a class="moz-txt-link-abbreviated" href="mailto:hugo.mercier@oslandia.com">hugo.mercier@oslandia.com</a></a>>
wrote:</p>
<p dir="ltr">><br>
> - using the C++ GEOS API instead of the C API that exposes
precision models.<br>
><br>
> I am not sure yet about what possibility to implement. Is
there anything<br>
> that prevent us from using the C++ GEOS API ? Having it in
the C API may<br>
> also benefit to other projects (PostGIS) ...<br>
> Or am I totally missing other problems ?<br>
></p>
<p dir="ltr">Check out pr #2302 - this is being tackled by
manisandro currently.</p>
</blockquote>
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<br>
<br>
<a class="moz-txt-link-freetext" href="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.cpp</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/manisandro/QGIS/blob/geometry_plugins/src/core/geosextra/geos_extra/geos_c_extra.h">https://github.com/manisandro/QGIS/blob/geometry_plugins/src/core/geosextra/geos_extra/geos_c_extra.h</a><br>
<br>
Such an API was proposed upstream early this year [1], but the
discussion stalled. So perhaps that discussion could be revived.<br>
<br>
Sandro<br>
<br>
<br>
[1]
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/pipermail/geos-devel/2015-January/007080.html">http://lists.osgeo.org/pipermail/geos-devel/2015-January/007080.html</a>
</body>
</html>