@Test public void testConvertGeoshapePolygonToWktString() throws BackendException { GeometryFactory gf = new GeometryFactory(); Geoshape p1 = Geoshape.polygon(Arrays.asList(new double[][] {{35.4, 48.9}, {35.6, 48.9}, {35.6, 49.1}, {35.4, 49.1}, {35.4, 48.9}})); Geoshape p2 = HELPER.geoshape(gf.createPolygon(gf.createLinearRing(new Coordinate[] { new Coordinate(10,10), new Coordinate(20,10), new Coordinate(20,20), new Coordinate(10,20), new Coordinate(10,10)}), new LinearRing[] { gf.createLinearRing(new Coordinate[] { new Coordinate(13,13), new Coordinate(17,13), new Coordinate(17,17), new Coordinate(13,17), new Coordinate(13,13)})})); String wkt1 = "POLYGON ((35.4 48.9, 35.6 48.9, 35.6 49.1, 35.4 49.1, 35.4 48.9))"; String actualWkt1 = GeoToWktConverter.convertToWktString(p1); assertEquals(wkt1, actualWkt1); String wkt2 = "POLYGON ((10 10, 20 10, 20 20, 10 20, 10 10), (13 13, 17 13, 17 17, 13 17, 13 13))"; String actualWkt2 = GeoToWktConverter.convertToWktString(p2); assertEquals(wkt2, actualWkt2); }
public static String convertToWktString(Geoshape fieldValue) throws BackendException { return fieldValue.toString(); }
GeoToWktConverter { public static String convertToWktString(Geoshape fieldValue) throws BackendException { return fieldValue.toString(); } }
GeoToWktConverter { public static String convertToWktString(Geoshape fieldValue) throws BackendException { return fieldValue.toString(); }  }
GeoToWktConverter { public static String convertToWktString(Geoshape fieldValue) throws BackendException { return fieldValue.toString(); }  static String convertToWktString(Geoshape fieldValue); }
GeoToWktConverter { public static String convertToWktString(Geoshape fieldValue) throws BackendException { return fieldValue.toString(); }  static String convertToWktString(Geoshape fieldValue);  }