i'm working in a project where i have to process a dataset with spatial data represented by coordinates in (long,lat) format (initially).
With this coordinates i've to process them ir order to obtain spatial relationships betwen them, represented by the distance and angle of orientation.
I was trying to use geotools for calculating this relationship. I think in first transforming the coordinates in (long, lat) to values (x,y) in the plane. And betwen the last use JTS for calculate de distances and angles.
The values about the distance that i obtained, have a great different with real values.
1). what's wrong in the code? (the .java is attached)
2). it's ok the definition of the Mercator proyection? I want a projection with the axis over de ecuator and greenwich meridian.
3).could be the reason about difference in the values an approximation error?
thanks,
Mariano Kohan
PD: here is the code
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
Probalo ya!
ProyectedRelationCalculator.java
Description: 1654788735-ProyectedRelationCalculator.java
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
