use of de.micromata.opengis.kml.v_2_2_0.GroundOverlay in project ddf by codice.
the class KmlFeatureToJtsGeometryConverterTest method testConvertKmlGroundOverlayFeature.
@Test
public void testConvertKmlGroundOverlayFeature() {
InputStream stream = KmlFeatureToJtsGeometryConverterTest.class.getResourceAsStream("/kmlGroundOverlay.kml");
Kml kml = Kml.unmarshal(stream);
assertThat(kml, notNullValue());
GroundOverlay kmlGroundOverlay = (GroundOverlay) kml.getFeature();
assertThat(kmlGroundOverlay, notNullValue());
Geometry geometry = KmlFeatureToJtsGeometryConverter.from(kmlGroundOverlay);
assertThat(geometry, notNullValue());
assertFeature(kmlGroundOverlay, geometry);
}
use of de.micromata.opengis.kml.v_2_2_0.GroundOverlay in project ddf by codice.
the class KmlGroundOverlayToJtsGeometryConverterTest method testConvertEmptyKmlGroundOverlayReturnsNullPoint.
@Test
public void testConvertEmptyKmlGroundOverlayReturnsNullPoint() {
Geometry jtsGeometry = KmlGroundOverlayToJtsGeometryConverter.from(new GroundOverlay());
assertThat(jtsGeometry, nullValue());
}
use of de.micromata.opengis.kml.v_2_2_0.GroundOverlay in project ddf by codice.
the class KmlGroundOverlayToJtsGeometryConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlGroundOverlayToJtsGeometryConverterTest.class.getResourceAsStream("/kmlGroundOverlay.kml");
Kml kml = Kml.unmarshal(stream);
testKmlGroundOverlay = ((GroundOverlay) kml.getFeature());
}
use of de.micromata.opengis.kml.v_2_2_0.GroundOverlay in project ddf by codice.
the class KmlLatLonBoxToJtsGeometryConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlLatLonBoxToJtsGeometryConverterTest.class.getResourceAsStream("/kmlGroundOverlay.kml");
Kml kml = Kml.unmarshal(stream);
GroundOverlay groundOverlay = ((GroundOverlay) kml.getFeature());
testKmlLatLonBox = groundOverlay.getLatLonBox();
}
Aggregations