use of org.geojson.LngLatAlt in project geojson-jackson by opendatalab-de.
the class PolygonTest method itShouldReplaceExteriorRing.
@Test
public void itShouldReplaceExteriorRing() throws Exception {
Polygon polygon = new Polygon(Arrays.asList(new LngLatAlt(0, 0), new LngLatAlt(1, 0), new LngLatAlt(1, 1), new LngLatAlt(0, 1), new LngLatAlt(0, 0)));
polygon.setExteriorRing(MockData.EXTERNAL);
assertEquals(MockData.EXTERNAL, polygon.getExteriorRing());
assertEquals(0, polygon.getInteriorRings().size());
}
Aggregations