use of de.micromata.opengis.kml.v_2_2_0.Placemark in project ddf by codice.
the class KmlModelToJtsPointConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlModelToJtsPointConverterTest.class.getResourceAsStream("/kmlModel.kml");
Kml kml = Kml.unmarshal(stream);
testKmlModel = ((Model) ((Placemark) kml.getFeature()).getGeometry());
}
use of de.micromata.opengis.kml.v_2_2_0.Placemark in project ddf by codice.
the class KmlPlacemarkToJtsGeometryConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlPlacemarkToJtsGeometryConverterTest.class.getResourceAsStream("/kmlPoint.kml");
Kml kml = Kml.unmarshal(stream);
testKmlPlacemark = (Placemark) kml.getFeature();
}
use of de.micromata.opengis.kml.v_2_2_0.Placemark in project ddf by codice.
the class KmlToJtsCoordinateConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlToJtsCoordinateConverterTest.class.getResourceAsStream("/kmlLinearRing.kml");
Kml kml = Kml.unmarshal(stream);
LinearRing kmlLinearRing = ((LinearRing) ((Placemark) kml.getFeature()).getGeometry());
testKmlCoordinates = kmlLinearRing.getCoordinates();
}
use of de.micromata.opengis.kml.v_2_2_0.Placemark in project ddf by codice.
the class KmlToJtsLineStringConverterTest method setupClass.
@BeforeClass
public static void setupClass() {
InputStream stream = KmlToJtsLineStringConverterTest.class.getResourceAsStream("/kmlLineString.kml");
Kml kml = Kml.unmarshal(stream);
testKmlLineString = ((LineString) ((Placemark) kml.getFeature()).getGeometry());
}
use of de.micromata.opengis.kml.v_2_2_0.Placemark in project ddf by codice.
the class KmlTransformationsTest method encloseDoc.
@Test
public void encloseDoc() {
final Placemark placemark = new Placemark();
final Style style = new Style();
final String docId = "1";
final String docName = "myDocName";
final Document document = KmlTransformations.encloseDoc(placemark, style, docId, docName);
assertThat(document.getId(), is(docId));
assertThat(document.getName(), is(docName));
assertThat(document.getStyleSelector(), hasSize(1));
assertThat(document.getFeature(), hasSize(1));
}
Aggregations