File: extendeddata.kml

package info (click to toggle)
libkml 1.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,660 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 17
file content (53 lines) | stat: -rw-r--r-- 1,976 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
  <Schema name="TrailHeadType" id="TrailHeadTypeId">
    <SimpleField type="string" name="TrailHeadName">
      <displayName><![CDATA[<b>Trail Head Name</b>]]></displayName>
    </SimpleField>
    <SimpleField type="double" name="TrailLength">
      <displayName><![CDATA[<i>The length in miles</i>]]></displayName>
    </SimpleField>
    <SimpleField type="int" name="ElevationGain">
      <displayName><![CDATA[<i>change in altitude</i>]]></displayName>
    </SimpleField>
  </Schema>
  <Placemark id="foo" targetId="bar">
    <name>__NAME__</name>
    <address>__ADDRESS__</address>
    <Snippet>__SNIPPET__</Snippet>
    <description>__DESCRIPTION__</description>
    <Style>
      <BalloonStyle>
        <!--
        XHTML in CDATA must conform to the HTML Compatibility guidelines as
        detailed in http://www.w3.org/TR/xhtml1/#guidelines. See in particular section
        C2, which requires <br /> over <br>.
        -->
        <text><![CDATA[
          <b>$[name]</b><br /><br />
          <i>$[description]<i><br /><br />
          The $[TrailHeadType/TrailHeadName/displayName] is
          <i>$[TrailHeadType/TrailHeadName]</i><br />
          The trail is $[TrailHeadType/TrailLength] miles<br />
          The climb is $[TrailHeadType/ElevationGain] meters<br /><br />
          $[geDirections]
        ]]></text>  <!-- TODO: decide on $[geDirections -->
      </BalloonStyle>
    </Style>
    <ExtendedData>
      <Data name="holeNumber">
        <value>1</value>
      </Data>
      <Data name="holeYardage">
        <value>234</value>
      </Data>
      <SchemaData schemaUrl="#TrailHeadTypeId">
        <SimpleData name="TrailHeadName">Mount Everest</SimpleData>
        <SimpleData name="TrailLength">347.45</SimpleData>
        <SimpleData name="ElevationGain">10000</SimpleData>
      </SchemaData>
    </ExtendedData>
  </Placemark>
</Document>
</kml>