/src/worldwind/kml/dom/KMLPlacemark.java
http://wwj-kml.googlecode.com/ · Java · 33 lines · 19 code · 7 blank · 7 comment · 0 complexity · 79ec70f56916aa10f563256d5addc8bc MD5 · raw file
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package worldwind.kml.dom;
- /**
- *
- */
- public class KMLPlacemark extends KMLFeature {
-
- protected KMLGeometry geometry;
- public KMLGeometry getGeometry() {
- return geometry;
- }
- public void setGeometry(KMLGeometry geometry) {
- this.geometry = geometry;
- }
-
- public String toKML() {
- String s = new String();
- s += "<Placemark>\n";
- s += "<name>" + getName() + "</name>\n";
- s += "<description>" + getDescription() + "</description>\n";
- s += geometry.toKML();
- s += "</Placemark>\n";
- return s;
- }
- }