NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

topology question

Hello,

Tan Ka Ju wrote:
Hello.

Is their in Java any method to know is a line contains or inside an
arbitrary polygon or shape?

I'll let someone else answer this (as I'm not quite sure if VisAD can do exactly what you want.) See further below...

Or is the any algorithm or mathematics
formula that can solve this problem?

Yes, there are.

Better, still, there is the JTS: "The JTS Topology Suite is an API of 2D spatial predicates and functions."

http://www.vividsolutions.com/JTS/jts_frame.htm

Hope this helps.


Thanks.
KJ

Cheers,

Ugo


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: