Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since you asked for guidelines, an example kml document looks like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;kml xmlns="http://www.opengis.net/kml/2.2"&gt; &lt;Document&gt; &lt;Placemark&gt; &lt;name&gt;New York City&lt;/name&gt; &lt;description&gt;New York City&lt;/description&gt; &lt;Point&gt; &lt;coordinates&gt;-74.006393,40.714172,0&lt;/coordinates&gt; &lt;/Point&gt; &lt;/Placemark&gt; &lt;/Document&gt; &lt;/kml&gt; </code></pre> <p>It seems you can keep the <code>&lt;name&gt;</code> field the same, you can combine the items in xml fields <code>&lt;city,&lt;state&gt;,&lt;country&gt;</code> to klm field <code>&lt;address&gt;city,state,country&lt;/address&gt;</code> or use it as a kml <code>&lt;description&gt;</code> tag (User-supplied content that appears in the description balloon ) as kml will use long and lat to determine a point if it is provided instead of using an address. Transform the xml <code>&lt;longitute&gt;,&lt;latitudite&gt;</code> need to be turned into a kml <code>&lt;point&gt;&lt;cordinates&gt;longitute,latatude&lt;/cordinates&gt;&lt;/point&gt;</code></p> <p>So you need to transform your klm document into something like this:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;kml xmlns="http://www.opengis.net/kml/2.2"&gt; &lt;Document&gt; &lt;Placemark&gt; &lt;name&gt;Sharon Appartments&lt;/name&gt; &lt;description&gt;Dallas, California, USA&lt;/description&gt; &lt;Point&gt; &lt;coordinates&gt;115.23412,34.734121&lt;/coordinates&gt; &lt;/Point&gt; &lt;/Placemark&gt; &lt;Placement&gt; Put item 2 details here &lt;/Placement&gt; . . . &lt;Placement&gt; Put item 20000 details here &lt;/Placement&gt; &lt;/Document&gt; &lt;/kml&gt; </code></pre> <p>I got this from the <a href="https://developers.google.com/kml/documentation/kmlreference" rel="nofollow">https://developers.google.com/kml/documentation/kmlreference</a> , </p> <p>Now for the heat map part, if you can transform your file into a list of lat and longs, you can put it into the python program on this webpage: <a href="http://jjguy.com/heatmap/" rel="nofollow">http://jjguy.com/heatmap/</a> and it will produce a kml overlay for google maps based on that data, you need to combine that overlay with your kml file for your city data to get a complete map.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload