The reality is that GeoTools lack a number of niceties around these  
kinds of practical problems.  If you pull the geometries out of the  
feature you'll find they are JTS geometries, which you can run  
Intersection() on, and if you put in two lines you should get out a  
point back out.  But remember you'll have to check for special cases  
like nulls, empty geometries, and even lines (if the two lines in  
fact have a co-linear part).

P

On 7-Sep-06, at 9:02 AM, Jody Garnett wrote:

> David R Robison wrote:
>> Is there any "easy" way with geotools to find the coordinates  
>> where two
>> features intersect? For example, if I have two features that  
>> represent
>> roads, can I find the coordinates (x,y) where the two roads  
>> intersect?
>> Thanks, David
>>
>>
> you can use geometry functions, as an example check out the validaiton
> tests (they have one to find all the cases in a single feature source
> where features interact) - a really scary for loop at the end of  
> the day.
>
> Jody
>
>
> ---------------------------------------------------------------------- 
> ---
> 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


-------------------------------------------------------------------------
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

Reply via email to