From 22f37ea8bac7f45430e56c07d46d06755297f497 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Sun, 3 Jul 2016 14:38:11 +0500 Subject: Double brackets for "POLYGON" area --- test/org/traccar/geofence/GeofencePolygonTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') 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); -- cgit v1.2.3