Search in sources :

Example 6 with LinearRing

use of de.micromata.opengis.kml.v_2_2_0.LinearRing 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();
}
Also used : Placemark(de.micromata.opengis.kml.v_2_2_0.Placemark) InputStream(java.io.InputStream) Kml(de.micromata.opengis.kml.v_2_2_0.Kml) LinearRing(de.micromata.opengis.kml.v_2_2_0.LinearRing) BeforeClass(org.junit.BeforeClass)

Aggregations

LinearRing (de.micromata.opengis.kml.v_2_2_0.LinearRing)6 Kml (de.micromata.opengis.kml.v_2_2_0.Kml)4 Placemark (de.micromata.opengis.kml.v_2_2_0.Placemark)4 InputStream (java.io.InputStream)4 Polygon (de.micromata.opengis.kml.v_2_2_0.Polygon)2 BeforeClass (org.junit.BeforeClass)2 Test (org.junit.Test)2 BalloonStyle (de.micromata.opengis.kml.v_2_2_0.BalloonStyle)1 Boundary (de.micromata.opengis.kml.v_2_2_0.Boundary)1 IconStyle (de.micromata.opengis.kml.v_2_2_0.IconStyle)1 LineStyle (de.micromata.opengis.kml.v_2_2_0.LineStyle)1 PolyStyle (de.micromata.opengis.kml.v_2_2_0.PolyStyle)1 Style (de.micromata.opengis.kml.v_2_2_0.Style)1 Point2D (java.awt.geom.Point2D)1 ArrayList (java.util.ArrayList)1 ProfilePlacemark (se.trixon.mapollage.profile.ProfilePlacemark)1