2009: 2010: 2011: 2012: 2013: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov (3) Dec Jan (30) Feb (41) Mar (69) Apr (131) May (67) Jun (24) Jul (28) Aug (52) Sep (9) Oct (24) Nov (36) Dec (24) Jan (20) Feb (53) Mar (31) Apr (74) May (71) Jun (51) Jul (28) Aug (91) Sep (72) Oct (46) Nov (90) Dec (38) Jan (80) Feb (77) Mar (98) Apr (78) May (56) Jun (85) Jul (53) Aug (87) Sep (74) Oct (67) Nov (85) Dec (66) Jan (50) Feb (34) Mar (45) Apr (36) May (22) Jun (10) Jul (30) Aug (39) Sep (25) Oct (11) Nov (64) Dec (35)
 [Jts-topo-suite-user] vector intersect with geometry? From: Darryn Kozak - 2013-02-26 04:16 ```I have a use case where I have a jts Geometry, and a vector. I would like to know if they intersect. How can I do this? I could simulate the solution by representing the vector as a long LineString (a subclass of Geometry), and jts will calculate the intersection between the LineString and the Geometry. But was wondering if there is some way to represent the vector that can be intersected directly with a Geometry. Thanks, Woody ```

 Re: [Jts-topo-suite-user] vector intersect with geometry? From: Martin Davis - 2013-02-26 04:59 Attachments: Message as HTML ```By "vector" do you mean an infinite line in the plane? Or an infinite ray starting at the origin? In either case, there is nothing directly in JTS which will do this. You have to use the strategy that you outline - i.e. extend the line/ray to a point guaranteed to be outside the geometry envelope, and then use the existing Geometry.intersection(Geometry) method. It might be nice to provide a utility method to handle this... On Mon, Feb 25, 2013 at 8:01 PM, Darryn Kozak wrote: > I have a use case where I have a jts Geometry, and a vector. I would > like to know if they intersect. How can I do this? > > I could simulate the solution by representing the vector as a long > LineString (a subclass of Geometry), and jts will calculate the > intersection between the LineString and the Geometry. But was > wondering if there is some way to represent the vector that can be > intersected directly with a Geometry. > > Thanks, > > Woody > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > ```

 [Jts-topo-suite-user] Is there any code snippet to render polygons as arcs of points? From: David Shi - 2013-03-01 19:27 Attachments: Message as HTML ```Hello, Is there any code snippet to render polygons as arcs of points? Very much appreciate if someone can send me this. Regards. David ```

 [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: David Shi - 2013-03-04 10:41 Attachments: Message as HTML ```Hello, Is there any code snippet to render polygons as open lines? Very much appreciate if someone can send me this. Regards. David ```

 Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: Martin Davis - 2013-03-05 03:30 Attachments: Message as HTML ```You will need to define what you mean by "render" and "open lines". On 3/4/2013 2:41 AM, David Shi wrote: > > > > Hello, > > Is there any code snippet to render polygons as open lines? > > Very much appreciate if someone can send me this. > ```

 Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: David Shi - 2013-03-05 17:35 Attachments: Message as HTML ```Dear Martin, What I meant is not to use multi-polygons but to treat polygon objects as something like multi line string. The idea is to avoid closed linear ring. When we used MultiPolygon, we effectively invoke the use of closed linear ring. I just wonder whether we can do things like processing MultiPolygon, but use MultiLineString instead. This way, we can have the options of treating polygons as either "open ring" or "close ring". Regards. David ________________________________ From: Martin Davis To: jts-topo-suite-user@... Sent: Tuesday, 5 March 2013, 2:44 Subject: Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? You will need to define what you mean by "render" and "open lines". On 3/4/2013 2:41 AM, David Shi wrote: > > > > > Hello, > >Is there any code snippet to render polygons as open lines? > >Very much appreciate if someone can send me this. > > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Jts-topo-suite-user mailing list Jts-topo-suite-user@... https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user ```

 Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: Martin Davis - 2013-03-05 17:40 Attachments: Message as HTML ```Well, you can extract the LinearRings from Polygons, and these are also LineStrings. Other than that I don't really follow what your requirement is. On Tue, Mar 5, 2013 at 9:35 AM, David Shi wrote: > Dear Martin, > > What I meant is not to use multi-polygons but to treat polygon objects as > something like multi line string. > > The idea is to avoid closed linear ring. > > When we used MultiPolygon, we effectively invoke the use of closed linear > ring. > > I just wonder whether we can do things like processing MultiPolygon, but > use MultiLineString instead. > > This way, we can have the options of treating polygons as either "open > ring" or "close ring". > > Regards. > > David > > > ------------------------------ > *From:* Martin Davis > *To:* jts-topo-suite-user@... > *Sent:* Tuesday, 5 March 2013, 2:44 > *Subject:* Re: [Jts-topo-suite-user] Is there any code snippet to render > polygons as open lines? > > You will need to define what you mean by "render" and "open lines". > > On 3/4/2013 2:41 AM, David Shi wrote: > > > > > Hello, > > Is there any code snippet to render polygons as open lines? > > Very much appreciate if someone can send me this. > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > ```

 Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: David Shi - 2013-03-05 17:46 Attachments: Message as HTML ```Dear Martin, The problem is that when Polygons are re-composed.  If it is not closed LinearRings, the program crashes. How to avoid this closed linearRings? Regards. David ________________________________ From: Martin Davis To: Cc: "jts-topo-suite-user@..." Sent: Tuesday, 5 March 2013, 17:40 Subject: Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? Well, you can extract the LinearRings from Polygons, and these are also LineStrings.  Other than that I don't really follow what your requirement is. On Tue, Mar 5, 2013 at 9:35 AM, David Shi wrote: Dear Martin, > >What I meant is not to use multi-polygons but to treat polygon objects as something like multi line string. > >The idea is to avoid closed linear ring. > >When we used MultiPolygon, we effectively invoke the use of closed linear ring. > >I just wonder whether we can do things like processing MultiPolygon, but use MultiLineString instead. > >This way, we can have the options of treating polygons as either "open ring" or "close ring". > >Regards. > >David > > > > > > >________________________________ > From: Martin Davis >To: jts-topo-suite-user@... >Sent: Tuesday, 5 March 2013, 2:44 >Subject: Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? > > > >You will need to define what you mean by "render" and "open lines". > > >On 3/4/2013 2:41 AM, David Shi wrote: > > >> >> >> >> >> Hello, >> >>Is there any code snippet to render polygons as open lines? >> >>Very much appreciate if someone can send me this. >> >> > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_feb >_______________________________________________ >Jts-topo-suite-user mailing list >Jts-topo-suite-user@... >https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > >------------------------------------------------------------------------------ >Everyone hates slow websites. So do we. >Make your web apps faster with AppDynamics >Download AppDynamics Lite for free today: >http://p.sf.net/sfu/appdyn_d2d_feb >_______________________________________________ >Jts-topo-suite-user mailing list >Jts-topo-suite-user@... >https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Jts-topo-suite-user mailing list Jts-topo-suite-user@... https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user ```

 Re: [Jts-topo-suite-user] Is there any code snippet to render polygons as open lines? From: Martin Davis - 2013-03-05 17:51 Attachments: Message as HTML ```No way to do this in JTS. JTS relies on Polygon rings being closed throughout its processing. Can you force the LinearRings to be closed before forming the polygons? (I.e by adding a copy of the start vertex to the end?) On Tue, Mar 5, 2013 at 9:46 AM, David Shi wrote: > Dear Martin, > > The problem is that when Polygons are re-composed. If it is not closed > LinearRings, the program crashes. > > How to avoid this closed linearRings? > > Regards. > > David > > > ------------------------------ > *From:* Martin Davis > *To:* > *Cc:* "jts-topo-suite-user@..." < > jts-topo-suite-user@...> > *Sent:* Tuesday, 5 March 2013, 17:40 > > *Subject:* Re: [Jts-topo-suite-user] Is there any code snippet to render > polygons as open lines? > > Well, you can extract the LinearRings from Polygons, and these are also > LineStrings. Other than that I don't really follow what your requirement > is. > > On Tue, Mar 5, 2013 at 9:35 AM, David Shi wrote: > > Dear Martin, > > What I meant is not to use multi-polygons but to treat polygon objects as > something like multi line string. > > The idea is to avoid closed linear ring. > > When we used MultiPolygon, we effectively invoke the use of closed linear > ring. > > I just wonder whether we can do things like processing MultiPolygon, but > use MultiLineString instead. > > This way, we can have the options of treating polygons as either "open > ring" or "close ring". > > Regards. > > David > > > ------------------------------ > *From:* Martin Davis > *To:* jts-topo-suite-user@... > *Sent:* Tuesday, 5 March 2013, 2:44 > *Subject:* Re: [Jts-topo-suite-user] Is there any code snippet to render > polygons as open lines? > > You will need to define what you mean by "render" and "open lines". > > On 3/4/2013 2:41 AM, David Shi wrote: > > > > > Hello, > > Is there any code snippet to render polygons as open lines? > > Very much appreciate if someone can send me this. > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > ```