[geos-devel] Using the C API

Richard Frith-Macdonald richard at tiptree.demon.co.uk
Thu Mar 14 22:56:17 PDT 2013

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)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20130315/87d3449f/attachment.pgp>

More information about the geos-devel mailing list