use of ogc.schema.opengis.gml.v_2_1_2.LineStringMemberType in project ddf by codice.
the class TestWfs10JTStoGML200Converter method extractLineStringMemberCoordinates.
private String extractLineStringMemberCoordinates(JAXBElement element1) throws JAXBException, SAXException, IOException, ParseException, NullPointerException {
assertThat(Wfs10Constants.LINESTRING_MEMBER.getLocalPart().equals(element1.getName().getLocalPart()), is(Boolean.TRUE));
LineStringMemberType lsMemberType1 = (LineStringMemberType) element1.getValue();
JAXBElement geometry1 = lsMemberType1.getGeometry();
LineStringType lineStringType = (LineStringType) geometry1.getValue();
return lineStringType.getCoordinates().getValue().replaceAll("\n", "").trim();
}
Aggregations