Blah; It has been a long time - I thought at least one of these classes used to 
be a Geometry and got a transform method thrown in for free.

Closest i can find is the subclass:
- 
http://svn.osgeo.org/geotools/trunk/modules/library/opengis/src/main/java/org/opengis/geometry/BoundingBox.java

It has a BoundingBox.toBounds( targetCRS ) method.

However this is a bit off topic; basically do we want to use a factory rather 
than hard code GeneralEnvelope everywhere; this would give us the freedom to 
fix the class used in one spot going forward.

-- 
Jody Garnett
> The method you're referring to does not exist:
> http://svn.osgeo.org/geotools/trunk/modules/library/opengis/src/main/java/org/opengis/geometry/Envelope.java
> 
> It's not there in Envelope, nor in GeneralEnvelope (thought it would be nice 
> to have it there)
> 
> For reference the ReferencedEnvelope transformation methods are not part
> of any interface and have more parameters, to control bursa-wolf missing
> params leniency and number of densification points:
> 
> public ReferencedEnvelope transform(CoordinateReferenceSystem
> targetCRS, boolean lenient)
> 
> public ReferencedEnvelope transform(final CoordinateReferenceSystem targetCRS,
>  final boolean lenient, final int numPointsForTransformation)
> 
> Cheers
> Andrea
> 
> -- 
> -------------------------------------------------------
> Ing. Andrea Aime
> GeoSolutions S.A.S.
> Tech lead
> 
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> 
> phone: +39 0584 962313
> fax: +39 0584 962313
> 
> http://www.geo-solutions.it
> http://geo-solutions.blogspot.com/
> http://www.youtube.com/user/GeoSolutionsIT
> http://www.linkedin.com/in/andreaaime
> http://twitter.com/geowolf
> 
> -------------------------------------------------------

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to