geotools-gt2-users

 [Geotools-gt2-users] intersecting n-number of polygons? From: Imran Rajjad - 2009-11-17 05:06:56 Attachments: Message as HTML ```Hi, Im trying to get the intersection of more than two polygons at a time? is this possible using geotools/jts? curently im geting intersection between two polygons but is there a method that takes more than one polygons and intersect them all ? any suggestions? regards, Imran -- I.R ```
 Re: [Geotools-gt2-users] intersecting n-number of polygons? From: Michael Bedward - 2009-11-17 08:00:34 ```Hi Imran, Interesting question :) JTS doesn't provide any equivalent to the UnaryUnionOp class for intersection. I guess this is because, unlike union, intersect can be an order dependent operation. Even if you can guarantee that it is order independent in your case, ie. there is some common region that all input polygons contain, I'm not sure if there is a better way to find it than sequentially intersecting pairs. I just did a very quick search of the JTS list archive but didn't find anything directly relevant. However, you might like to post your question to the JTS list. Michael ```
 Re: [Geotools-gt2-users] intersecting n-number of polygons? From: Imran Rajjad - 2009-11-17 08:16:24 Attachments: Message as HTML ```Hi Micheal, kindly provid me with that mailing list address.. i guess I`ll need to put the process into a loop or somthing like that..anyway thanks regards, Imran On Tue, Nov 17, 2009 at 1:00 PM, Michael Bedward wrote: > Hi Imran, > > Interesting question :) > > JTS doesn't provide any equivalent to the UnaryUnionOp class for > intersection. I guess this is because, unlike union, intersect can be > an order dependent operation. > > Even if you can guarantee that it is order independent in your case, > ie. there is some common region that all input polygons contain, I'm > not sure if there is a better way to find it than sequentially > intersecting pairs. > > I just did a very quick search of the JTS list archive but didn't find > anything directly relevant. However, you might like to post your > question to the JTS list. > > Michael > -- I.R ```
 Re: [Geotools-gt2-users] intersecting n-number of polygons? From: Michael Bedward - 2009-11-17 08:30:33 ```Hi Imran, You can search the archive of the JTS list here: http://n2.nabble.com/jts-devel-f219725.html And join the list to post on it here: http://lists.refractions.net/mailman/listinfo/jts-devel Michael ```