@Test public void testConvertGeoshapeMultiPolygonToWktString() throws BackendException { GeometryFactory gf = new GeometryFactory(); Geoshape g = HELPER.geoshape(gf.createMultiPolygon(new Polygon[] { gf.createPolygon(new Coordinate[] {new Coordinate(0,0), new Coordinate(0,10), new Coordinate(10,10), new Coordinate(0,0)}), gf.createPolygon(new Coordinate[] {new Coordinate(20,20), new Coordinate(20,30), new Coordinate(30,30), new Coordinate(20,20)})})); String wkt1 = "MULTIPOLYGON (((0 0, 0 10, 10 10, 0 0)), ((20 20, 20 30, 30 30, 20 20)))"; String actualWkt1 = GeoToWktConverter.convertToWktString(g); assertEquals(wkt1, actualWkt1); }
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);  }