public void testGetType() throws Exception { kmlPoint = createSimplePoint(); assertNotNull(kmlPoint); assertNotNull(kmlPoint.getGeometryType()); assertEquals("Point", kmlPoint.getGeometryType()); }
public void testPointAltitude() throws Exception { //test point without altitude kmlPoint = createSimplePoint(); assertNotNull(kmlPoint); assertNull(kmlPoint.getAltitude()); //test point with altitude kmlPoint = createSimplePointWithAltitudes(); assertNotNull(kmlPoint); assertNotNull(kmlPoint.getAltitude()); assertEquals(kmlPoint.getAltitude(), 100.0); } }
public void testGetKmlGeometryObject() throws Exception { kmlPoint = createSimplePoint(); assertNotNull(kmlPoint); assertNotNull(kmlPoint.getGeometryObject()); assertEquals(kmlPoint.getGeometryObject().latitude, 0.0); assertEquals(kmlPoint.getGeometryObject().longitude, 50.0); }