PageRenderTime 23ms CodeModel.GetById 19ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 6package worldwind.kml.dom;
 7
 8/**
 9 *
10 */
11public class KMLPlacemark extends KMLFeature {
12    
13    protected KMLGeometry geometry;
14
15    public KMLGeometry getGeometry() {
16        return geometry;
17    }
18
19    public void setGeometry(KMLGeometry geometry) {
20        this.geometry = geometry;
21    }
22    
23    public String toKML() {
24        String s = new String();
25        s += "<Placemark>\n";
26        s += "<name>" + getName() + "</name>\n";
27        s += "<description>" + getDescription() + "</description>\n";
28        s += geometry.toKML();
29        s += "</Placemark>\n";
30        return s;
31    }
32
33}