geotools/geotools — pull request #62 by jive (2012-11-27 13:10:57+00:00)
Title: Construct ReferencedEnvelope or ReferencedEnvelope3D based on CoordinateReferenceSystem

https://jira.codehaus.org/browse/GEOT-4325

I am chasing down GEOS-5474, where the ContentDataStore methods to calculate bounds have not been informed of the difference between ReferncedEnvelope and ReferencedEnvelope3D yet.

I kind of expect this is a widespread issue, since the ReferencedEnvelope constructor is now willing to fail (not even a warning just fail).

This first pull request just introduced a factory method: ReferencedEnvelope.reference( CoordinateReferenceSystem).

The next step will be using Oracle data store as an excuse to review how ReferencedEnvelope is handled by JDBCDataStore and friends.