Hi Jody,
Yes, I have looked at the wiki! The wiki only mentions the "touches"
relationship. It doesn't show you how to extract this "touches" property in
the shapefile. So, I need to know how to find out from a shapefile if two
polygons are touching. This is the question that I am trying to answer.

Another question, what is the difference between a 4 points ploygon and a 5?

Polygon p1 = createPolygon("0 0,1 1,2 2,0 0");// 4 points
Polygon p2 = createPolygon("0 0,5 0,5 5,0 5,0 0"); // 5 points

Thanks,
Ahmed

On Tue, Mar 23, 2010 at 8:23 AM, Jody Garnett <[email protected]>wrote:

> Have a look at the graph page in the wiki; you can define your own
> relationship test when building the graph; and in this case you may want to
> use geometry.touches( geometry2 ) ?
> On 23/03/2010, at 3:55 PM, Ahmed Abdeen Hamed wrote:
>
> > Hello friends,
> > I am composing a graph from a shapefile and trying to connect the nodes
> via edges that represent "adjacent_to" or "neighbor_of" relationships. I
> believe this information is already built-in the map but do I have to infer
> it to compose the graph? Are there some examples that can be looked at? My
> features are read as MultiPolygon.
> > Thanks very much!
> > Ahmed
> >
> ------------------------------------------------------------------------------
> > Download Intel&#174; Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> >
> http://p.sf.net/sfu/intel-sw-dev_______________________________________________
> > Geotools-gt2-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to