Search in sources :

Example 1 with LineStringMemberType

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();
}
Also used : JAXBElement(javax.xml.bind.JAXBElement) MultiLineStringType(ogc.schema.opengis.gml.v_2_1_2.MultiLineStringType) LineStringType(ogc.schema.opengis.gml.v_2_1_2.LineStringType) LineStringMemberType(ogc.schema.opengis.gml.v_2_1_2.LineStringMemberType)

Aggregations

JAXBElement (javax.xml.bind.JAXBElement)1 LineStringMemberType (ogc.schema.opengis.gml.v_2_1_2.LineStringMemberType)1 LineStringType (ogc.schema.opengis.gml.v_2_1_2.LineStringType)1 MultiLineStringType (ogc.schema.opengis.gml.v_2_1_2.MultiLineStringType)1