[geos-devel] Exposing Precision model through C-API

Sandro Santilli strk at keybit.net
Thu Feb 13 10:16:47 PST 2014

On Thu, Feb 13, 2014 at 09:54:27AM +0100, Rémi Cura wrote:
> I'm Captain obvious here,
> but maybe you should take a look at CGAL, which is the reference lib
> regarding to precision issue. (I'm not speaking of the exact kernel.)
> Also Geos is a port of JTS, but I don't know if everything was ported (like
> this?
> http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/PrecisionModel.html
> ).

PrecisionModel is there from the very first release of GEOS.
It's just not exposed via the C-API.

> All in all, exposing precision model is not a design or interface problem,
> but an algorithmic problem with no solution (except going the exact
> precision way), thus it is a matter of compromises and balance, because
> precise output cannot be guaranteed (if you chain operations like
> buffer(buffer(...buffer(geom)...)), enforcing precision is very difficult ).

In this case is just an interface design problem.
We want to expose what's available, and need to find a good way to expose it.


More information about the geos-devel mailing list