diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-04 00:28:33 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 00:28:33 +1200 |
commit | bd21690b702b6aeae07b53ac255b8157d07e8f40 (patch) | |
tree | eea4238487e1418e9590070e8bf253f741be6c30 /test | |
parent | ebb43a1d910595462b384e3d1bd6375672da5b84 (diff) | |
parent | 22f37ea8bac7f45430e56c07d46d06755297f497 (diff) | |
download | traccar-server-bd21690b702b6aeae07b53ac255b8157d07e8f40.tar.gz traccar-server-bd21690b702b6aeae07b53ac255b8157d07e8f40.tar.bz2 traccar-server-bd21690b702b6aeae07b53ac255b8157d07e8f40.zip |
Merge pull request #2072 from Abyss777/master
Double brackets for POLYGON area
Diffstat (limited to 'test')
-rw-r--r-- | test/org/traccar/geofence/GeofencePolygonTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/org/traccar/geofence/GeofencePolygonTest.java b/test/org/traccar/geofence/GeofencePolygonTest.java index 8711a3696..e3d6aaa29 100644 --- a/test/org/traccar/geofence/GeofencePolygonTest.java +++ b/test/org/traccar/geofence/GeofencePolygonTest.java @@ -9,7 +9,7 @@ public class GeofencePolygonTest { @Test public void testPolygonWKT() { - String test = "POLYGON (55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165)"; + String test = "POLYGON ((55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165))"; GeofenceGeometry geofenceGeometry = new GeofencePolygon(); try { geofenceGeometry.fromWkt(test); @@ -21,7 +21,7 @@ public class GeofencePolygonTest { @Test public void testContainsPolygon() { - String test = "POLYGON (55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165)"; + String test = "POLYGON ((55.75474 37.61823, 55.75513 37.61888, 55.7535 37.6222, 55.75315 37.62165))"; GeofenceGeometry geofenceGeometry = new GeofencePolygon(); try { geofenceGeometry.fromWkt(test); |