## jts-topo-suite-user — JTS Users and Developers

You can subscribe to this list here.

 2009 2010 2011 2012 2013 2014 2015 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 (42) Jan (27) Feb (6) Mar (10) Apr (14) May (25) Jun (6) Jul (25) Aug (3) Sep (22) Oct (12) Nov (34) Dec (15) Jan (24) Feb (20) Mar (11) Apr May (37) Jun (24) Jul (17) Aug (10) Sep (1) Oct Nov Dec
S M T W T F S
1

2
(10)
3
(14)
4

5

6
(4)
7

8
(4)
9

10

11
(5)
12

13
(11)
14
(4)
15

16
(3)
17

18
(1)
19
(2)
20

21

22
(1)
23
(1)
24
(4)
25

26
(5)
27

28
(2)
29
(4)
30
(3)

Showing results of 78

1 2 3 4 > >> (Page 1 of 4)
 Re: [Jts-topo-suite-user] Computing Spatial Relations From: Brian Sanjeewa Rupasinghe - 2012-04-30 19:42:24 Attachments: Message as HTML ```Thanks. Yes, small polygons are inside the larger one. On Mon, Apr 30, 2012 at 11:08 AM, Brian Sanjeewa Rupasinghe < jinkabs@...> wrote: > Hi, > > I have a larger square polygon in which there are some smaller square > polygons. > Some of these smaller polygons are totally inside the larger one and some > exactly > touch the boundary of Larger one. Using JTS spatial function: touch, i > tried to filetr > out the small polygons that touch the boundary of larger polygon. But it > did not work > out and the result i obtained is False. Do i need to create a small minus > buffer of the > larger polygon and then use that with the intersection function? If any > other short-cut > available, please let me know. > > Brian. > ```
 Re: [Jts-topo-suite-user] Computing Spatial Relations From: Martin Davis - 2012-04-30 17:31:51 Attachments: Message as HTML ```Are the ones touching the boundary also inside the large polygon? If so, touches won't work in this case, since it is always false if the interiors of the arguments intersect. One thing you can do is to test whether the boundaries of the polygons intersect (using getBoundary). Or you can try to construct an appropriate DE-9IM matrix and then use Geometry.relate(). Constructing these matrices is a bit of an art, and is dependent on the exact geometric situation you are testing. Refer to the JTS Geometry predicates Javadoc for examples, or the OGC SFS specification for more info. You can test them out in the JTS TestBuilder too. On Mon, Apr 30, 2012 at 3:08 AM, Brian Sanjeewa Rupasinghe < jinkabs@...> wrote: > Hi, > > I have a larger square polygon in which there are some smaller square > polygons. > Some of these smaller polygons are totally inside the larger one and some > exactly > touch the boundary of Larger one. Using JTS spatial function: touch, i > tried to filetr > out the small polygons that touch the boundary of larger polygon. But it > did not work > out and the result i obtained is False. Do i need to create a small minus > buffer of the > larger polygon and then use that with the intersection function? If any > other short-cut > available, please let me know. > > Brian. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > ```
 [Jts-topo-suite-user] Computing Spatial Relations From: Brian Sanjeewa Rupasinghe - 2012-04-30 10:08:34 Attachments: Message as HTML ```Hi, I have a larger square polygon in which there are some smaller square polygons. Some of these smaller polygons are totally inside the larger one and some exactly touch the boundary of Larger one. Using JTS spatial function: touch, i tried to filetr out the small polygons that touch the boundary of larger polygon. But it did not work out and the result i obtained is False. Do i need to create a small minus buffer of the larger polygon and then use that with the intersection function? If any other short-cut available, please let me know. Brian. ```
 Re: [Jts-topo-suite-user] Create segments From: Stefan Steiniger - 2012-04-29 23:18:12 ```not that I know. You would need to parse the coordinates and sort first - I think. stefan Am 29.04.12 17:04, schrieb Brian Sanjeewa Rupasinghe: > Hi, > > I have some points aligned along a kind of a grid as shown below. I want > to create LineStrings between each two points > that are in line. Is there any short method to do that in JTS? > > *. . . .* > * > * > * . . . .* > * > * > * . . . . .* > * > * > Brian. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user ```
 [Jts-topo-suite-user] Create segments From: Brian Sanjeewa Rupasinghe - 2012-04-29 21:04:26 Attachments: Message as HTML ```Hi, I have some points aligned along a kind of a grid as shown below. I want to create LineStrings between each two points that are in line. Is there any short method to do that in JTS? *. . . .* * * * . . . .* * * * . . . . .* * * Brian. ```
 Re: [Jts-topo-suite-user] Exterior Ring From: Martin Davis - 2012-04-29 15:01:16 Attachments: Message as HTML ```No, it is not a method on MultiPolygon. On Sun, Apr 29, 2012 at 5:53 AM, Brian Sanjeewa Rupasinghe < jinkabs@...> wrote: > Hi, > > I have two detached polygons. When i union these two i get a Multipolygon > geometry. > Is it possible to use getExteriorRing method in Polygon class to get the > exterior > ring of this Multipolygon? > > > ```
 [Jts-topo-suite-user] Exterior Ring From: Brian Sanjeewa Rupasinghe - 2012-04-29 12:53:11 Attachments: Message as HTML ```Hi, I have two detached polygons. When i union these two i get a Multipolygon geometry. Is it possible to use getExteriorRing method in Polygon class to get the exterior ring of this Multipolygon? Brian. ```
 Re: [Jts-topo-suite-user] Remove null geometries From: Martin Davis - 2012-04-28 14:26:18 ```No, you'll have to iterate over the array and build a new one. On 4/28/2012 4:32 AM, Brian Sanjeewa Rupasinghe wrote: > Hi Dr. Martin > > I have a Geometry array of Line strings, where there are some Null > geometries exist. > I cannot union all these Line string using GeometryCollection class > because of these > null geometries. Is there any short-cut method to remove these Null > geometries from > the Geometry[]? > > ```
 [Jts-topo-suite-user] Remove null geometries From: Brian Sanjeewa Rupasinghe - 2012-04-28 11:32:16 Attachments: Message as HTML ```Hi Dr. Martin I have a Geometry array of Line strings, where there are some Null geometries exist. I cannot union all these Line string using GeometryCollection class because of these null geometries. Is there any short-cut method to remove these Null geometries from the Geometry[]? Cheers, Brian. ```
 Re: [Jts-topo-suite-user] Splitting a L-shaped Polygon From: Martin Davis - 2012-04-26 20:00:22 Attachments: Message as HTML ```No, not really. You'll have to try and deduce the split line from the configuration of the edges, and then introduce it manually. To reform the polygons you could extract line segments and then use Polygonizer. On Thu, Apr 26, 2012 at 12:43 PM, Brian Sanjeewa Rupasinghe < jinkabs@...> wrote: > Hi, > > I have a L-shaped polygon with sides right-angled and I need to separate > it into two rectangular polygons. > Is any short method available in JTS? > > Cheers, Brian. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > ```
 [Jts-topo-suite-user] Splitting a L-shaped Polygon From: Brian Sanjeewa Rupasinghe - 2012-04-26 19:43:48 Attachments: Message as HTML ```Hi, I have a L-shaped polygon with sides right-angled and I need to separate it into two rectangular polygons. Is any short method available in JTS? Cheers, Brian. ```
 [Jts-topo-suite-user] Polygon splitting From: Brian Sanjeewa Rupasinghe - 2012-04-26 19:19:19 Attachments: Message as HTML ```Hi, I have a Double L-Shaped polygon as follows: . . . . . . . . . . . . . . . . . ```
 Re: [Jts-topo-suite-user] Merging detached polygons into a single polygon From: Andrea Aime - 2012-04-26 12:12:57 Attachments: Message as HTML ```On Thu, Apr 26, 2012 at 1:06 PM, Brian Sanjeewa Rupasinghe < jinkabs@...> wrote: > Hi Dr Martin, > > I have two polygon geometries having following coordinates: > > Polygon 1: [(0,0) (10,0) (10,10) (0,10) (0,0)] > > Polygon2: [(15,0) (19,0) (19,10) (15,10) (15,0)] > > These two are rectangles aligned each other but detached. > > I need to merge these two to come out with a single polygon. I used > Geometrycollection and union method. > However, result is a multipolygon of these two (see below). > > Result: > Aggregated Geometry: MULTIPOLYGON (((0 0, 10 0, 10 10, 0 10, 0 0)), ((15 > 0, 19 0, 19 10, 15 10, 15 0))). > The result is correct, since the two polygons do not touch at all (they are 5 units apart on the y axis), there is no way to represent them correctly as a single polygon afaik (the external hull would touch itself, which makes the polygon invalid). Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ```
 [Jts-topo-suite-user] Merging detached polygons into a single polygon From: Brian Sanjeewa Rupasinghe - 2012-04-26 11:06:54 Attachments: Message as HTML ```Hi Dr Martin, I have two polygon geometries having following coordinates: Polygon 1: [(0,0) (10,0) (10,10) (0,10) (0,0)] Polygon2: [(15,0) (19,0) (19,10) (15,10) (15,0)] These two are rectangles aligned each other but detached. I need to merge these two to come out with a single polygon. I used Geometrycollection and union method. However, result is a multipolygon of these two (see below). Result: Aggregated Geometry: MULTIPOLYGON (((0 0, 10 0, 10 10, 0 10, 0 0)), ((15 0, 19 0, 19 10, 15 10, 15 0))). Any idea? Best Brian. ```
 Re: [Jts-topo-suite-user] New release? From: Nick Dimiduk - 2012-04-24 06:23:43 Attachments: Message as HTML ```Good to know. Thanks Andrea! -n On Mon, Apr 23, 2012 at 11:15 PM, Andrea Aime wrote: > On Tue, Apr 24, 2012 at 5:51 AM, Martin Davis wrote: > >> Not that I can think of. >> > > I may be wrong, but afaik it won't build due to some test failures, but it > should work. > The issue is in the changes to the geometry.equals method occurred in > 1.12, GeoTools 2.7.x > is bound to 1.11 and won't be upgraded further (its development should > stop in a few > months anyways, when the 8.0 series is released as stable). > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > 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] New release? From: Andrea Aime - 2012-04-24 06:16:00 Attachments: Message as HTML ```On Tue, Apr 24, 2012 at 5:51 AM, Martin Davis wrote: > Not that I can think of. > I may be wrong, but afaik it won't build due to some test failures, but it should work. The issue is in the changes to the geometry.equals method occurred in 1.12, GeoTools 2.7.x is bound to 1.11 and won't be upgraded further (its development should stop in a few months anyways, when the 8.0 series is released as stable). Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 mob: +39 339 8844549 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ```
 Re: [Jts-topo-suite-user] New release? From: Martin Davis - 2012-04-24 03:49:57 ```Not that I can think of. On 4/23/2012 7:23 PM, Nick Dimiduk wrote: > > Martin, > > Do you see any incompatibilities with the pending jts-1.13 and the > current geotools stable release (2.7.4, I believe)? > > Thanks, > -n > > ```
 Re: [Jts-topo-suite-user] New release? From: Nick Dimiduk - 2012-04-24 02:23:29 Attachments: Message as HTML ```Martin, Do you see any incompatibilities with the pending jts-1.13 and the current geotools stable release (2.7.4, I believe)? Thanks, -n On Apr 22, 2012 10:08 PM, "Martin Davis" wrote: > Well, yes, JTS 1.13 really needs to get released. I'll be making that a > priority - hopefully in the next month. > > On Sun, Apr 22, 2012 at 3:01 PM, Taras Tielkes wrote: > >> Hi, >> >> The current trunk has a nice collection of improvements and bug fixes >> compared to the latest official release. >> Is there a plan to create a new release in the coming month or so? If >> not, I can always create a "private" release to use in our production >> deployment, but obviously the less work I can do the better :) >> >> Thanks, >> -tt >> >> >> ------------------------------------------------------------------------------ >> For Developers, A Lot Can Happen In A Second. >> Boundary is the first to Know...and Tell You. >> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! >> http://p.sf.net/sfu/Boundary-d2dvs2 >> _______________________________________________ >> Jts-topo-suite-user mailing list >> Jts-topo-suite-user@... >> https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user >> > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > _______________________________________________ > 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] New release? From: Martin Davis - 2012-04-23 05:08:29 Attachments: Message as HTML ```Well, yes, JTS 1.13 really needs to get released. I'll be making that a priority - hopefully in the next month. On Sun, Apr 22, 2012 at 3:01 PM, Taras Tielkes wrote: > Hi, > > The current trunk has a nice collection of improvements and bug fixes > compared to the latest official release. > Is there a plan to create a new release in the coming month or so? If > not, I can always create a "private" release to use in our production > deployment, but obviously the less work I can do the better :) > > Thanks, > -tt > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > ```
 [Jts-topo-suite-user] New release? From: Taras Tielkes - 2012-04-22 22:01:56 ```Hi, The current trunk has a nice collection of improvements and bug fixes compared to the latest official release. Is there a plan to create a new release in the coming month or so? If not, I can always create a "private" release to use in our production deployment, but obviously the less work I can do the better :) Thanks, -tt ```
 Re: [Jts-topo-suite-user] Decimation added to ShapeWriter From: Martin Davis - 2012-04-19 16:36:22 Attachments: Message as HTML ```Great, thanks for this - definitely a good improvement. On 4/19/2012 1:06 AM, Alexis "Agemen" wrote: > Hi Martin, > > We've studied the work you've made for including decimation in > ShapeWriter, and it appears it is used only for polygons. Considering > it can be useful for lines too, we added it here (cf attachment). We > have basically added a test for decimation in the > > toShape(LineString lineString) > > method. We basically use the same technique as for polygons. > > I hope this change is relevant and that it may be useful to you and to > the JTS library. > > Best wishes, > > Alexis. > > PS : juste on note : the package won't match... we have included > ShapeWriter directly in OrbisGIS in order to make this test, and we > wanted to be able to use this version rather than yours, basically to > test it :-p > > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > > ----- > No virus found in this message. > Checked by AVG - http://www.avg.com > Version: 2012.0.1913 / Virus Database: 2411/4944 - Release Date: 04/18/12 ```
 Re: [Jts-topo-suite-user] Decimation added to ShapeWriter From: Alexis \Agemen\ - 2012-04-19 08:06:52 Attachments: ShapeWriter.java ```Hi Martin, We've studied the work you've made for including decimation in ShapeWriter, and it appears it is used only for polygons. Considering it can be useful for lines too, we added it here (cf attachment). We have basically added a test for decimation in the toShape(LineString lineString) method. We basically use the same technique as for polygons. I hope this change is relevant and that it may be useful to you and to the JTS library. Best wishes, Alexis. PS : juste on note : the package won't match... we have included ShapeWriter directly in OrbisGIS in order to make this test, and we wanted to be able to use this version rather than yours, basically to test it :-p -- OrbisGIS supporter. ```
 Re: [Jts-topo-suite-user] Polygon constructed out of inner polygons From: kumaran ramu - 2012-04-18 16:40:58 Attachments: Message as HTML ```Hi Michael, Martin, I followed your guidance & was able to achieve what i need. Here is what i did: 1) Union all inner polygons. 2) Check the final Geometry of the union; if it is of type Polygon then get the exteriorRing & create new polygon out of it; because, union returns MultiPolygon if there is a hole which makes the result geometry as 'split'. It works for me! Since i am new to JTS, it took a while for me to grasp your guidelines. Thanks again for your time! KR ```
 Re: [Jts-topo-suite-user] Sanitizing odd polygons From: Martin Davis - 2012-04-16 17:41:43 Attachments: Message as HTML ```Actually the "line" really is a line! The two line segments forming it are in fact identical. This fact makes it easier to remove with existing tools. The simplest way is just to do a buffer(0) on the geometry. A more complex way, but safer in general use, is to run around the polygon and remove any duplicated line segments. Probably the simplest way to do this now is to extract all the line segments, remove ones which occur more than once, and then polygonize the remaining segments. There's no simple operations to accomplish this, but it's not too hard to write this code. Two futher questions: - why did you think the "line" was actually distinct segments? Is the geometry in the msg really the one you were looking at? - how does this situation occur in the first place? Is this geometry a result of a JTS overlay operation - and in that case can you post the inputs and the code being run on them (since this really should not happen). Ultimately it would be nice to have a good polygon rectifier operation in JTS, to fix this kind of problem. On Mon, Apr 16, 2012 at 10:03 AM, Andrea Aime wrote: > Hi, > I have a geometries procedure that, after a few intersections, gives me > this polygon: > > MULTIPOLYGON (((-117.91699 33.58229, -117.917 33.60001, -118.09199 33.6, > -118.09199 33.7, -118.1650427111975 33.70000208716069, -118.15983676266332 > 34.24999, -118.09201 34.24999, -118.092 34.19999, -117.74201 34.2, > -117.74201 33.50001, -117.79999 33.50001, -117.79999 33.55001, -117.91699 > 33.55001, -117.91699 33.58229, -118.52087465648619 34.00000119340894, > -118.67499 34.00001, -118.67499 34.35, -118.51974989131303 > 34.3499966756583, -118.5209685 34.051617, -118.5207705 34.0268535, > -118.52087465648619 34.00000119340894, -117.91699 33.58229))) > > (see attachment for its visual representation). > > Eww... is there any automated way to remove that "line" connecting the two > polygons? (not actually a line I know, two > very close but separate lines in fact) > > Cheers > Andrea > > -- > ------------------------------------------------------- > Ing. Andrea Aime > GeoSolutions S.A.S. > Tech lead > > Via Poggio alle Viti 1187 > 55054 Massarosa (LU) > Italy > > phone: +39 0584 962313 > fax: +39 0584 962313 > mob: +39 339 8844549 > > http://www.geo-solutions.it > http://geo-solutions.blogspot.com/ > http://www.youtube.com/user/GeoSolutionsIT > http://www.linkedin.com/in/andreaaime > http://twitter.com/geowolf > > ------------------------------------------------------- > > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 > > _______________________________________________ > Jts-topo-suite-user mailing list > Jts-topo-suite-user@... > https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user > > ```
 [Jts-topo-suite-user] Sanitizing odd polygons From: Andrea Aime - 2012-04-16 17:04:02 Attachments: Message as HTML     polygons.png

Showing results of 78

1 2 3 4 > >> (Page 1 of 4)