Andrea Aime a écrit :
> as you may know, 4327 is 4326 evil brother, in that is
> has the ellipsoidal height as a third axis.
> 
> Now, let's say somewhere in the code I want to flatten
> data and their CRS. Removing the z from the data is the
> easy part, how do I shave off the 3rd dimension
> from the crs and get a 2d representatio of it?
> What I'm looking for is an api like:
> 
> CoordinateReferenceSystem 2d = CRS.flatten(3d);
> 
> Is there anything like that?

We have:

   CRS.getHorizontalCRS(3d);

which tries to extract the horizontal part - this is not necessarly the 2 first 
dimensions, it could be anywhere in a n-D CRS. It should work for every kind of 
vertical height except ellipsoidal... In other words it will work for many EPSG 
code but not 4327.

Conceptually we should make it work for 3D ellipsoids as well - I just didn't 
had the time to extend this method to this case yet.

        Martin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to