Digital humanities


Author: Helena Bermúdez Sabel (helena.bermudez@usc.es) Maintained by: David J. Birnbaum (djbpitt@gmail.com) [Creative Commons BY-NC-SA 3.0 Unported License] Last modified: 2015-09-29T18:49:47+0000


KML resources

KML code samples

Simplest KML

<kml xmlns="http://www.opengis.net/kml/2.2">
    <Placemark>
        <name>You are here</name>
        <Point>
            <coordinates>-79.953177, 40.444625</coordinates>
        </Point>
    </Placemark> 
</kml>

Multiple placemarks

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
    <Document>
        <name>Ulysses map: Lotus Eaters</name>
        <Placemark>
            <name>Sir John Rogerson’s Quay</name>
            <description>“By lorries along sir John Rogerson's quay Mr Bloom walked soberly, 
                 past Windmill lane, Leask's the linseed crusher, the postal telegraph 
                 office” (68).</description>
            <Point>
                <coordinates>-6.244,53.34641</coordinates>
            </Point>
        </Placemark>
        <Placemark>
            <name>All Hallow’s Church</name>
            <description>“He had reached the open backdoor of All Hallows. Stepping into the porch he
                 doffed his hat, took the card from his pocket and tucked it again behind the leather headband” (77).
                 “The cold smell of sacred stone called him. He trod the worn steps, pushed the swingdoor and entered
                 softly through the rere” (77). </description>
            <Point>
                <coordinates>-6.2536437,53.3416362</coordinates>
            </Point>
        </Placemark>
        <Placemark>
            <name>Turkish and Warm Baths</name>
            <description>“Time to get a bath round the corner. Hammam. Turkish. Massage” (81).</description>
            <Point>
                <coordinates>-6.2536437,53.3416362</coordinates>
            </Point>
        </Placemark>
    </Document>
</kml>

Information taken from the project Walking Ulysses: Joyce’s Dublin today.

Paths

<Placemark>
    <description>Bloom’s journey during the chapter “Lotus Eaters”</description>
    <LineString>
      <coordinates>-6.244,53.3464036,0.0 -6.2434996,53.3463739,0.0 -6.243718,53.3454667,0.0 -6.243815,53.3450279,0.0 
           -6.2438851,53.3447876,0.0 -6.2462481,53.3450724,0.0 -6.2473384,53.34525,0.0 -6.2484502,53.3454404,0.0 
           -6.2500491,53.342830600000006,0.0 -6.2506609,53.34204940000001,0.0 -6.2510429,53.3421042,0.0 -6.2515644,53.3421922,0.0 
           -6.2524935,53.3418446,0.0 -6.2528339,53.3418557,0.0 -6.253641,53.3416442,0.0
      </coordinates>
    </LineString>
</Placemark>

Time

 <Placemark>
    <name>Sir John Rogerson’s Quay</name>
    <description>“By lorries along sir John Rogerson's quay Mr Bloom walked soberly, 
       past Windmill lane, Leask's the linseed crusher, the postal telegraph 
       office” (68).</description>       
    <TimeStamp>
        <when>1904-06-16T09:30:00Z</when>
    </TimeStamp>
    <Point>
        <coordinates>-6.244,53.34641</coordinates>
    </Point>
</Placemark>
<Placemark>
    <name>D. Dinis</name>
    <description>Court of King Denis of Portugal</description>
    <TimeSpan>
        <begin>1279-02-06</begin>
        <end>1325-01-07</end>
    </TimeSpan>
    <Point>
        <coordinates>-9.1334,38.7167</coordinates>
    </Point>
</Placemark>

Customization

Placenames quoted in the medieval Portuguese secular poetry
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
   <Document>
      <name>Topónimos cantigas lírica profana galego-portuguesa</name>
      <Placemark>
         <name>Acre</name>
         <description><![CDATA[
                <ul>
                    <li><strong>Cantiga:</strong> <em>Pero non fui a Ultramar</em></li>
                    <li><strong>Autor:</strong> Martin Soarez</li>
                </ul>
            ]]></description>
         <Style>
            <IconStyle>
               <Icon>
                  <href>http://www.obdurodon.org/~heb43/escarnho.png</href>
               </Icon>
            </IconStyle>
         </Style>
         <Point>
            <coordinates>35.0829, 32.94</coordinates>
         </Point>
      </Placemark>
      <Placemark>
         <name>Alanquer</name>
         <description><![CDATA[
                <ul>
                    <li><strong>Cantiga:</strong> <em>Meu senhor, se vus aprouguer</em></li>
                    <li><strong>Autor:</strong> Roi Paez de Ribela</li>
                </ul>
            ]]></description>
         <Style>
            <IconStyle>
               <Icon>
                  <href>http://www.obdurodon.org/~heb43/escarnho.png</href>
               </Icon>
            </IconStyle>
         </Style>
         <Point>
            <coordinates>-5.9833, 37.3833</coordinates>
         </Point>
      </Placemark>
      <!-- Other placemarks-->
   </Document>
</kml>

KML tools