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

You can subscribe to this list here.

 2009 2010 2011 2012 2013 2014 2015 2016 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 (3) Oct (15) Nov (21) Dec (20) Jan (30) Feb (15) Mar Apr May Jun (1) Jul (20) Aug Sep (12) Oct (1) Nov (4) Dec
S M T W T F S

1
(3)
2
(2)
3

4

5

6

7

8
(6)
9
(7)
10
(3)
11
(3)
12

13
(4)
14
(2)
15
(1)
16
(3)
17
(4)
18
(4)
19

20

21

22
(6)
23
(3)
24
(2)
25

26

27

28

29

30
(2)
31
(1)

Showing 3 results of 3

 Re: [Jts-topo-suite-user] Polygon touch From: Martin Davis - 2012-05-23 20:21:16 ```The semantics of "touches" are explained in the JTS Javadoc: http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html#touches(com.vividsolutions.jts.geom.Geometry) In your case, the reason for the false result is that the interiors intersect. It depends what you mean by "touching" polygons. If you want to get a true result for the case you present, "intersects" will suffice. On Wed, May 23, 2012 at 11:54 AM, Brian Sanjeewa Rupasinghe wrote: > Hi, > > I have two polygons that touch each other by one point having (0,0) > as shown below. However, poly2 is inside poly1 > > Geometry poly1 = reader.read("POLYGON((0 0, 20 0, 20 10, 0 10, 0 0))"); > Geometry poly2 = reader.read("POLYGON((0 0, 10 2, 7 8, 2 8, 0 0))"); > > When i use boolean value poly1.touches(poly2), it gives false, could you > explain why? Any other method to catch touching polygons? > ```
 [Jts-topo-suite-user] Polygon touch From: Brian Sanjeewa Rupasinghe - 2012-05-23 18:54:44 Attachments: Message as HTML ```Hi, I have two polygons that touch each other by one point having (0,0) as shown below. However, poly2 is inside poly1 Geometry poly1 = reader.read("POLYGON((0 0, 20 0, 20 10, 0 10, 0 0))"); Geometry poly2 = reader.read("POLYGON((0 0, 10 2, 7 8, 2 8, 0 0))"); When i use boolean value *poly1.touches(poly2)*, it gives *false*, could you explain why? Any other method to catch touching polygons? Cheers Brian. ```
 Re: [Jts-topo-suite-user] Fwd: Point inside polygon (geo fence) From: Simon Greener - 2012-05-23 00:04:38 ```See Contains/Within for SpatiaLite at http://www.gaia-gis.it/gaia-sins/spatialite-sql-3.0.0.html#p12 S On Wed, 23 May 2012 05:07:07 +1000, Stefan Steiniger wrote: > well, then you should look for "SpatialLite" and what they have for > descriptions/guides. > > http://www.gaia-gis.it/gaia-sins/ > > A JTS guide comes also when you download it from: > http://sourceforge.net/projects/jts-topo-suite/files/jts/ > > hope that helps a bit. So I guess you need time to study that stuff > first. Maybe, on Spatiallite you could also find some blog entries etc. > > stefan > > Am 22.05.12 11:06, schrieb Imóveis Nacionais: >> Hi >> >> My database is SQLite. >> >> I am thinking to use JTS as a library. >> >> Like this: There is a thread listen to GSM modem. When a new SMS arrives >> the SMS contains a point in meters units. Then the thread call the JTS >> lib supplying a poligon and the point and the lib tells me in the point >> is inside or outside. Then the thread stores the pont in table of points >> and the inside/outside in other database table. It is just this. >> >> >> >> Please, tell me just how to create an JTS java object configured for >> coordinates in meters or degrees (the earth) and How do I use it passing >> a polygon and a point to find out if point is in or out polygon. >> >> Thanks a lot >> >> Alex >> >> >> >> ---------- Forwarded message ---------- >> From: *Imóveis Nacionais* > > >> Date: Tue, May 22, 2012 at 8:56 AM >> Subject: Re: Point inside polygon (geo fence) >> To: jts-topo-suite-user@... >> >> >> >> Hi, and thank you >> >> Data (polygons) is stored in a database. Points are comming/arriving >> through SMS or GPRS and I would like to test each point that ariives to >> the server to see if any point is outside fence (poligon) or not. If so, >> I fire an alarm (store it also in database) and user will see alarms >> when it access server (servlets) using browser >> >> Alex >> >> >> >> >> On Tue, May 22, 2012 at 1:00 AM, Imóveis Nacionais >> > wrote: >> >> I all, my first contact with JTS Topology Suite >> Please, I would like to execute the following client side code with >> similar code at server side, probably using JTS Topology Suite. >> Please, can you help me on this? My server side technology is servlets. >> >> I have a polygon and a point. I would like to find out if point is >> inside polygon or not. >> >> Here is the client side (openlayers) code: >> var lat=1.852; //in meters >> var longi=111.120 //in meters >> var p = new OpenLayers.Geometry.Point(longi, lat); >> ... >> if(map.layers[1].features[0].geometry.containsPoint && >> map.layers[1].features[0].geometry.containsPoint(p)) >> { >> alert('yes, point contained'); >> } >> else >> { >> alert('no, point not contained or containsPoint-method not defined'); >> } >> >> How to do the same with JTS Topology Suite? >> >> Thanks a lot >> Alex >> >> >> >> >> >> ------------------------------------------------------------------------------ >> 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 > > ------------------------------------------------------------------------------ > 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 > -- Holder of "2011 Oracle Spatial Excellence Award for Education and Research." SpatialDB Advice and Design, Solutions Architecture and Programming, Oracle Database 10g Administrator Certified Associate; Oracle Database 10g SQL Certified Professional Oracle Spatial, SQL Server, PostGIS, MySQL, ArcSDE, Manifold GIS, FME, Radius Topology and Studio Specialist. 39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia. Website: http://www.spatialdbadvisor.com Email: simon@... Voice: +61 362 396397 Mobile: +61 418 396391 Skype: sggreener Longitude: 147.20515 (147° 12' 18" E) Latitude: -43.01530 (43° 00' 55" S) GeoHash: r22em9r98wg NAC:W80CK 7SWP3 ```

Showing 3 results of 3