Andrea Aime a écrit :
> I'm wondering, given a 3d coordinate reference system such as:
>
> GEOGCS["WGS 84 (geographic 3D)",
> DATUM["World Geodetic System 1984",
> SPHEROID["WGS 84", 6378137.0, 298.257223563,
> AUTHORITY["EPSG","7030"]],
> AUTHORITY["EPSG","6326"]],
> PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
> UNIT["DMS", 0.00000484813681109536],
> AXIS["Geodetic longitude", EAST],
> AXIS["Geodetic latitude", NORTH],
> AXIS["Ellipsoidal height", UP],
> AUTHORITY["EPSG","4327"]]
>
> expressed as a CoordinateReferenceSystem object, is
> there any way to get the correspondent 2D version of it,
> that is, something that looks like 4326?
This is exactly the work to be completed in CRS.getHorizontalCRS(...) as
discussed in last week thread: get the CoordinateSystem, scan through the axis,
ommit the vertical one, create a new EllipsoidalCS, create a new GeographicCRS
using that CS and the same datum, deal with FactoryException.
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