geotools/geotools — pull request #69 by jive (2012-11-30 09:38:53+00:00)
Title: Jdbc referenced envelope 3d

OracleDialect / JDBCDataStore support for ReferencedEnvelope3D

See https://jira.codehaus.org/browse/GEOT-4331 for details.

With GEOT-4325 factory method available JDBCDataStore base classes can now support the use of ReferencedEnvelope3D. The OracleDialect in particular needs to avoid the use of geometry.getEnvelopeInternal and process the coordinate array by hand to produce a correct 3D bounds.

This method adds a JTS.bounds( Geometry ) method that can return a ReferencedEnvelope3D. This is used by the OracleDialect to return the correct ReferencedEnvelope3D on request.

The base JDBC class needs to use the ReferencedEnvelope factory method for this to work, this change (while scary) does not introduce any further possibility for error - as it already fails when presented with a 3D CoordinateReferenceSystem.

The 2D CoordinateReferenceSystem story remains unaffected by this pull request.