/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

  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package worldwind.kml.dom;
  6. /**
  7. *
  8. */
  9. public class KMLPlacemark extends KMLFeature {
  10. protected KMLGeometry geometry;
  11. public KMLGeometry getGeometry() {
  12. return geometry;
  13. }
  14. public void setGeometry(KMLGeometry geometry) {
  15. this.geometry = geometry;
  16. }
  17. public String toKML() {
  18. String s = new String();
  19. s += "<Placemark>\n";
  20. s += "<name>" + getName() + "</name>\n";
  21. s += "<description>" + getDescription() + "</description>\n";
  22. s += geometry.toKML();
  23. s += "</Placemark>\n";
  24. return s;
  25. }
  26. }