assertEquals( Arrays.asList(-180.0, -90.0), box.getLowerCorner() );
assertEquals( Arrays.asList(180.0, 90.0), box.getUpperCorner() );
}
public void testEncode() throws Exception {
BoundingBoxType bbox = Ows11Factory.eINSTANCE.createBoundingBoxType();
bbox.setLowerCorner(Arrays.asList(-180.0, -90.0));
bbox.setUpperCorner(Arrays.asList(180.0, 90.0));
bbox.setCrs("EPSG:4326");
Document d = encode(bbox, OWS.BoundingBox);
Node bboxNode = d.getChildNodes().item(0);
assertEquals("-180.0 -90.0", bboxNode.getChildNodes().item(0).getTextContent());
assertEquals("180.0 90.0", bboxNode.getChildNodes().item(1).getTextContent());