[geos-devel] Using the C API

Sandro Santilli strk at keybit.net
Fri Mar 15 03:32:00 PDT 2013

A patch to expose GEOSNearestPoints in the C-API will be welcome
for the 3.4.0 version. Please don't forget unit tests.


On Fri, Mar 15, 2013 at 05:56:17AM +0000, Richard Frith-Macdonald wrote:
> I'm not a C+ programmer, all the code I work with is ObjectiveC (occasionally Java) so I'm really interested in the C API.
> Clearly the C API only exposes a tiny subset of the C++ API , but what decides which functions are exposed?
> I have a need to get the nearest points of two geometries, but there's nothing in the C API to do that, though there is a function to get the distance between the two.
> It would make more sense to me for it to be the other way round (you can easily derive the distance from the nearest points, but you can't derive the nearest points from the distance), but better would be to provide a C function to get the nearest points as well as the function to get the distance between geometries.
> Would a patch to do that be acceptable (if/when I can get it working)?

More information about the geos-devel mailing list