Hi all,

 

I'm using OpenMap to present my GIS data and I'm using Geotools to read
in my shapefile data. And Geotools uses JTS to calculate the
intersection between two geometries. In a previous post I asked how to
write such filter. I have succeeded but now I want more. My current
problem is that I need to use a real distances (as angular distance in
decimal degrees) as a radius of my area and JTS is not aware of the real
distances. 

 

In OpenMap the distance between two coordinates can be computed with the
following statement:

Length.Decimal_Degrees.fromRadians(latlonPoint1.distance(latlonPoint2));

 

This value is of a similar magnitude to the value I get when I use
geometry's that have the same coordinates as the above two points:

geometry1.distance(geometry2)

 

However, I would like it to be more similar :-) Is it possible in
Geotools or JTS to use a filter that uses the distances from geographic
coordinates?

 

Kind regards,

 

Jeroen

-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to