getEnvelopeInternal method
Gets an {@link Envelope} containing
the minimum and maximum x and y values in this Geometry
.
If the geometry is empty, an empty Envelope
is returned.
The returned object is a copy of the one maintained internally, to avoid aliasing issues. For best performance, clients which access this envelope frequently should cache the return value.
@return the envelope of this Geometry
.
@return an empty Envelope if this Geometry is empty
Implementation
Envelope getEnvelopeInternal() {
if (envelope == null) {
envelope = computeEnvelopeInternal();
}
return Envelope.fromEnvelope(envelope!);
}