assertEquals("[12,34.23,12,54.56,-0.01,0]", jo.get("coordinates").toString());
}
public void testPolygon() throws MarshallException {
GeometrySerializer ser = new GeometrySerializer();
GeometryFactory factory = new GeometryFactory(new PrecisionModel(100.0), 31300);
CoordinateArraySequence coords = new CoordinateArraySequence(new Coordinate[] {
new Coordinate(12.0, 34.23), new Coordinate(12.000, 54.555), new Coordinate(7, 8),
new Coordinate(12.0, 34.23)});
LinearRing ring = new LinearRing(coords, factory);
Polygon p = new Polygon(ring, new LinearRing[] {}, factory);