use of de.micromata.opengis.kml.v_2_2_0.PhotoOverlay in project ddf by codice.
the class KmlFeatureToJtsGeometryConverterTest method testConvertKmlPhotoOverlayFeature.
@Test
public void testConvertKmlPhotoOverlayFeature() {
InputStream stream = KmlFeatureToJtsGeometryConverterTest.class.getResourceAsStream("/kmlPhotoOverlay.kml");
Kml kml = Kml.unmarshal(stream);
assertThat(kml, notNullValue());
PhotoOverlay kmlPhotoOverlay = (PhotoOverlay) kml.getFeature();
assertThat(kmlPhotoOverlay, notNullValue());
Geometry geometry = KmlFeatureToJtsGeometryConverter.from(kmlPhotoOverlay);
assertThat(geometry, notNullValue());
assertFeature(kmlPhotoOverlay, geometry);
}
use of de.micromata.opengis.kml.v_2_2_0.PhotoOverlay in project ddf by codice.
the class KmlPhotoOverlayToJtsPointConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlPhotoOverlayToJtsPointConverterTest.class.getResourceAsStream("/kmlPhotoOverlay.kml");
Kml kml = Kml.unmarshal(stream);
testKmlPhotoOverlay = ((PhotoOverlay) kml.getFeature());
}
use of de.micromata.opengis.kml.v_2_2_0.PhotoOverlay in project ddf by codice.
the class KmlPhotoOverlayToJtsPointConverterTest method testConvertEmptyKmlPhotoOverlayReturnsNullPoint.
@Test
public void testConvertEmptyKmlPhotoOverlayReturnsNullPoint() {
Point jtsPoint = KmlPhotoOverlayToJtsPointConverter.from(new PhotoOverlay());
assertThat(jtsPoint, nullValue());
}
Aggregations