views:

176

answers:

2

i want to generate some kml string to stroe into database ..

and has any simply way to generate this string ?

thanks

A: 

What do you mean kml string, isnt it an xml file like the one below?

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.2"&gt;
  <Placemark>
    <name>Stonehenge, England</name>
    <description>Stonehenge was built about 2500BC
    </description>
    <Point>
      <coordinates>-1.826752,51.179045
      </coordinates>
    </Point>
  </Placemark> 
</kml>

In which case you can use

XmlDocument xmlDoc = new XmlDocument();

etc

Charles Gargent
yes , and i want to find "KML Interactive Sampler" for google-maps(not earth)
zjm1126
What format will the string that you want to store in the database take?
Charles Gargent
A: 

Maybe try this digitizer tool

http://www.birdtheme.org/useful/googletool.html

xeondev