]> gitweb.michael.orlitzky.com - dead/census-tools.git/blob - www/maps/maps/templates/location/index.mako
c65e7e530bb3d6c7e5ec8e7ca0ecfb598d16b098
[dead/census-tools.git] / www / maps / maps / templates / location / index.mako
1 <%inherit file="/base.mako"/>\
2
3 <%def name="scripts()">
4 </%def>
5
6 <h1>Generate KML Routes</h1>
7
8 <form method="post" action="location/route" enctype="multipart/form-data">
9 <fieldset>
10 <legend>Producer/Consumer Upload</legend>
11
12 <label for="producers">Producers File</label>
13 <input type="file" id="producers" name="producers" />
14
15 <label for="consumers">Consumers File</label>
16 <input type="file" id="consumers" name="consumers" />
17
18 <input class="submit" type="submit" value="Route" />
19 </fieldset>
20 </form>
21
22
23 <h2>File Format</h2>
24 <p>
25 Both uploaded files should have the same format. They should be
26 comma-delimited, with the first row containing three column names:
27 <em>name</em>, <em>latitude</em>, and <em>longitude</em>. The
28 <em>name</em> column, being of type string, should have its values
29 double-quoted.
30 </p>
31
32 <table class="csv" summary="Example CSV file">
33 <caption>producers-example.csv</caption>
34 <tr>
35 <th>name</th>
36 <th>latitude</th>
37 <th>longitude</th>
38 </tr>
39
40 <tr>
41 <td><q>Jack O'Neill</q></td>
42 <td>35.02135823</td>
43 <td>-76.20178512</td>
44 </tr>
45
46 <tr>
47 <td><q>Daniel Jackson</q></td>
48 <td>38.286422</td>
49 <td>-79.327437</td>
50 </tr>
51
52 <tr>
53 <td><q>Samantha Carter</q></td>
54 <td>35.9974632</td>
55 <td>-80.000000</td>
56 </tr>
57
58 <tr>
59 <td><q>Teal'c</q></td>
60 <td>45.20434632</td>
61 <td>-72.07234637</td>
62 </tr>
63
64 <tr>
65 <td><q>George Hammond</q></td>
66 <td>36.536257346</td>
67 <td>-73.263458</td>
68 </tr>
69
70 </table>