[geos-devel] using geos C Api

Rémi Cura remi.cura at gmail.com
Thu Oct 16 00:55:24 PDT 2014


Thanls Strk !
I ended doing all the things you said
(manual shortcut, no rectangle).

Indeed this C api is easy to use one has understood how it works.
Would you agree to put on the wiki a simple tutorial ?
I would write it like : how to read a geom, make a buffer, write a geom,
 from scratch.
It would be very short (30 lines)

Cheers,
Rémi-C

2014-10-15 19:09 GMT+02:00 Sandro Santilli <strk at keybit.net>:

> On Sun, Oct 12, 2014 at 03:04:52PM +0200, Rémi Cura wrote:
> > Ok,
> > I'll try tomorow using exclusively functions from geos_c.h.
> > Is there some kind of example/tutorial arround?
>
> I'm afraid not. All docs are in the header file.
>
> > Another 2 quick questions :
> > I would like to perform a polygon/polygon intersection.
> >   I can't find if there is a shortcut for the case where the two geometry
> > are disjoint (in which case the intersection would be empty geom)
> >   Shall I put myself this kind of shortcut before calling intersection?
>
> You should put yourself this kind of shortcut.
>
> > About the new rectangle shortcuts . Are the rectangle bbox (north/South
> > East-West oriented), or are they real rectangle (oriented bbox)?
>
> The rectangle shortcut in Geometry::intersection is disabled at compile
> time.
> Rectangle would not be oriented, anyway, for RectangleIntersection.
>
> --strk;
>
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20141016/b0e94115/attachment.html>


More information about the geos-devel mailing list