[geotk] Envelope/bbox transformation

sorel johann johann.sorel at geomatys.fr
Thu Mar 10 03:07:22 EST 2011


Hello aaron,

You can find several utility methods in the CRS class.

to transform an envelope you can use :
CRS.transform( Envelope, CRS )

If you have downloaded the geotoolkit-pending project you can find 
several code samples in the demo module.
We can also create more samples if you can pinpoint cases which are not 
in there.

johann sorel

Le 10/03/2011 05:37, Aaron Braeckel a écrit :
> Hello,
>
> are there any existing methods for transforming an entire Envelope 
> into another CRS?  This is not a trivial process given the potential 
> non-linear relationships between different CRSs.  We have previously 
> dealt with this by subsampling along the edges of the envelope, 
> applying a number of tests (like isNAN() on each point, and ensuring 
> the edges of the subsampled polygon do not cross one another) getting 
> the min/max of these coordinates, and so on.  Before I head off and 
> re-implement it, does anything like this exist in Geotk right now?
>
> Thanks,
> Aaron
> _______________________________________________
> Geotoolkit mailing list
> Geotoolkit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geotoolkit
>
>



More information about the Geotoolkit mailing list