shahzad Khaskheli

shahzad Khaskheli

  • NA
  • 26
  • 8.5k

i have a kml file and have to display tags of that kml file in asp.net using c# code behind. please help me.

Jul 20 2012 1:35 AM
I have this file. i have to display only name, longitude and latitude from kml file into asp.net page.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"

xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2"

xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
    <name>poi111.kml</name>
    <Style id="s_ylw-pushpin">
       

<IconStyle>
            <scale>1.1</scale>
            <Icon>
               

<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
            </Icon>
           

<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
        </IconStyle>
    </Style>
    <Style id="s_ylw-

pushpin_hl">
        <IconStyle>
            <scale>1.3</scale>
            <Icon>
               

<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
            </Icon>
           

<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
        </IconStyle>
    </Style>
    <StyleMap id="m_ylw-

pushpin">
        <Pair>
            <key>normal</key>
            <styleUrl>#s_ylw-pushpin</styleUrl>
   

    </Pair>
        <Pair>
            <key>highlight</key>
            <styleUrl>#s_ylw-

pushpin_hl</styleUrl>
        </Pair>
    </StyleMap>
    <Placemark>
                <LookAt>
    

<longitude>67.2302651511</longitude>
        <latitude>24.02362541</latitude>               

<altitude>0</altitude>
            <heading>-3.551731603903435</heading>
            <tilt>0</tilt>
           

<range>1061.257717069211</range>
            <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode>
       

</LookAt>
        <styleUrl>#m_ylw-pushpin</styleUrl>
        <Point>
           

<coordinates>67.03857407832709,24.82564747822379,0</coordinates>
        </Point>
    </Placemark>
</Document>


Answers (1)