Sunburned Surveyor a écrit :
> Is there existing code in GeoTools that performs conversion of
> coordinates in Latitude/Longitude/Ellipsoid Height to Earth-Centered
> Earth-Fixed coordinates?
There is no class specifically for 3D, because the existing class should be
generic enough. You can get a 3D GeographicCRS from the EPSG database using the
EPSG:4327 code, which defines (latitude, longitude, height) axis. You can also
create a GeographicCRS manually by direct instantiation of classes. The CRS is
3D if the underlying CoordinateSystem is 3D. Example using some of the
pre-defined Geotools constants:
Datum datum = DefaultGeodeticDatum.WGS84;
CoordinateSystem cs = DefaultEllipsoidalCS.GEODETIC_3D;
GeographicCRS crs = new DefaultGeographicCRS("Some name", datum, cs);
For geocentric CRS, you can use the following predefined constant:
DefaultGeocentricCRS.CARTESIAN;
You should be able to get the MathTransform using CRS.findMathTransform(...),
or
FactoryFinder.getCoordinateOperationFactory(hints).createOperation(...).
> This code will also be able to compute the distances along
> the surface of an ellipsoid between two points, and pssibly even the
> surface area of shapes on the ellipsoid.
For the distance between two points on the ellipsoid, take a look at
org.geotools.referencing.GeodeticCalculator. You may also take a look at
DefaultEllipsoid.orthodromicDistance.
There is nothing for area of shapes at this time. If some could about that can
be added to GeodeticCalculator, it would be nice :).
> [1] Who should I speak to at the GeoTools project about making sure my
> code grafts well with existing classes?
It is on a module-by-module basis. Regarding the referencing module, as suggest
that you contact me (Martin).
> [2] What steps would I need to go through to get functional code
> contributed to GeoTools?
We suggest to open a JIRA task with a patch attached. After a little bit of
experience in coding for Geotools, If you plan to work more extensively, we
grant Geotools access :).
Please let me know if there is issues with the GeographicCRS / GeocentricCRS
procedure, and welcome aboard if you have some volunter time for geotools
coding!
Martin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel