jsoliveira / javaapiforkml

Automatically exported from code.google.com/p/javaapiforkml
0 stars 0 forks source link

de.micromata.opengis is lost. 选项 #38

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello Reader 
  I want to import KML file, in wwj for that which class I have to 
use. 
In my system I have Google earth while double clicking newyork.kml 
file it directly opens google earth and point out the place.In same 
way how to import KML in worldwind  also. 
   I download a direct example from http://labs.micromata.de/display/jak/HelloKML+%28Quickstart%29 
, then when i imported eclipse, it's wrong, so what can i do next? 

package de.micromata.jak.examples; 

import java.io.File; 
import java.io.FileNotFoundException; 

import de.micromata.opengis.kml.v_2_2_0.Kml; 

public class HelloKML { 

        /** 
         * HelloKML Sample project 
         */ 
        public static void main(String[] args) throws FileNotFoundException { 
                final Kml kml = new Kml(); 
                kml.createAndSetPlacemark() 
                   .withName("London, UK").withOpen(Boolean.TRUE) 
                                .createAndSetPoint().addToCoordinates(-0.126236, 51.500152); 
                //marshals to console 
                kml.marshal(); 
                //marshals into file 
                kml.marshal(new File("HelloKml.kml")); 
        } 

} 

It's warned de.micromata.opengis is lost. 

Waiting for your reply..  Thank you very much. 

Original issue reported on code.google.com by linbojin...@gmail.com on 10 Mar 2012 at 1:33

Attachments: