[postgis-devel] GEOS <-> PostGIS

Paul Ramsey pramsey at cleverelephant.ca
Sat Aug 23 20:53:26 PDT 2008


I saw an entry bemoaning the cost of this conversion (not that, in the
grand scheme, it's that much, we have bigger performance fish to fry
still). If we really want to go after it with a baseball bat, there is
the CoordinateSequence interface (not sure how it's implemented on the
C++ side) which should allow us to construct a GEOS geometry with a
pointer into the PostGIS geometry.  A much lighter approach than the
current PostGIS<->EWKB<->GEOS twice-copying route, but certainly with
some extreme care required in the implementation.

P.



More information about the postgis-devel mailing list