Search in sources :

Example 1 with PointMemberType

use of ogc.schema.opengis.gml.v_2_1_2.PointMemberType in project ddf by codice.

the class TestWfs10JTStoGML200Converter method extractPointMemberTypeCoordinates.

private String extractPointMemberTypeCoordinates(JAXBElement<? extends GeometryAssociationType> jaxbElement1) throws JAXBException, SAXException, IOException, ParseException, NullPointerException {
    assertThat(Wfs10Constants.POINT_MEMBER.getLocalPart().equals(jaxbElement1.getName().getLocalPart()), is(Boolean.TRUE));
    PointMemberType pointMemberType1 = (PointMemberType) jaxbElement1.getValue();
    JAXBElement<? extends AbstractGeometryType> geometry1 = pointMemberType1.getGeometry();
    assertThat(Wfs10Constants.POINT.getLocalPart().equals(geometry1.getName().getLocalPart()), is(Boolean.TRUE));
    return ((PointType) geometry1.getValue()).getCoordinates().getValue().replaceAll("\n", "").trim();
}
Also used : PointMemberType(ogc.schema.opengis.gml.v_2_1_2.PointMemberType)

Aggregations

PointMemberType (ogc.schema.opengis.gml.v_2_1_2.PointMemberType)1