[geos-devel] [GEOS] #284: Improve constness of linearref code

2009-08-14 Thread GEOS
#284: Improve constness of linearref code -+-- Reporter: novalis | Owner: geos-devel@lists.osgeo.org Type: enhancement | Status: new Priority: major| Milestone: 3.2

Re: [geos-devel] C API and Coordinates

2009-08-14 Thread Paul Ramsey
Speaking from the PostGIS side, the CAPI is mostly an outgrowth of meeting our use cases, which are build-geometries-and-run-a-test and build-geometries-and-get-a-new-geometry. All our fine-grained access to geometry internals is done back in PostGIS land, not against the GEOS objects. Hence, no CA

[geos-devel] C API and Coordinates

2009-08-14 Thread David Turner
It looks like the C API doesn't really support Coordinates. The only way I can figure out to pass Coordinates is to use Geometry* as a parameter, and use dynamic_cast to ensure that the Geometry is Point. This leads to long-winded code -- not to mention a lack of compile-time type-checking. I'v