<br>Thank you all for your help and oppinion. I did it as Martin told. I extended the linestring to exceed the polygon. Then I did a polygon with an additional point, which  I reduced with polygon intersection methods.<br><br>Martin, I think many people will be happy to have this function in JTS. We wish that you will have time to implement it soon...:)<br><br>Thank you again<br>Baris<br><p>
                <hr size=1>Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman1/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com">Make PC-to-Phone Calls</a> to the US (and 30+ countries) for 2¢/min or less.