[geos-devel] Envelope of empty Polygon

strk at refractions.net strk at refractions.net
Fri Mar 31 12:56:02 EST 2006


On Fri, Mar 31, 2006 at 12:21:44PM +0200, strk at refractions.net wrote:

> Also, for Geometry, check out  getEnvelopeInternal().
> That should return a pointer to internal cache, thus caller
> wouldn't need to free the result.
> JTS getEnvelope() is really what getEnvelopeInternal() is for
> GEOS.
> I'd drop the copying one and rename the *Internal() one.

ERRATA CORRIGE.

getEnvelopeInternal *is* a JTS method.
It returns a cached Envelope.
Always, never a NULL pointer
(rather its NULL representation for EMPTY geoms).

Note that a NULL pointer, in this case
is used to detect a not-yet-computed
cache.

--strk;



More information about the geos-devel mailing list