Sebastien Arbogast a écrit :
- Is there a public maven repository for geotools ?
There is a brand new Maven 2 snapshot repository! Current adress is:
http://maven.espace.ird.nc/
However this adress is temporary. We are trying to setup a
http://maven.geotools.org adress right now, but still have some
technical problem. In the maintime, the above-cited adress should work.
- What dependencies should I declare in my POM to download them
automatically when my project is built ?
For the GeodeticCalculator class, the following should be enough:
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt2-referencing</artifactId>
<version>2.2-SNAPSHOT</version>
</dependency>
I would be very interrested to know if you encounter any issue. Since
this repository is new, we are still getting experience about its use.
- What is the typical use case for calculating such a distance ?
GeodeticCalculator gc = new GeodeticCalculator();
gc.setAnchorPoint(longitude, latitude);
gc.setDestinationPoint(longitude, latitude);
double dist = gc.getOrthodromicDistance();
Note that if you use any other coordinate reference system than the
standard Geographic CRS on WGS84 ellipsoid, you can specify yours CRS in
the constructor. GeodeticCalculator will then applies the coordinate
transformations for you (if you uses the method expecting Position
argument).
Martin.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users