Debian Codegraph @

examples/basics/10_jinja2_templating/output/cities.gml

raw
1 <?xml version='1.0' encoding='utf-8'?>
2 <cities:FeatureCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xmlns:cities="http://cities.maptools.org/"
4 xmlns:gml="http://www.opengis.net/gml"
5 xsi:schemaLocation="http://cities.maptools.org/ ../gmlcities.xsd http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd">
6
7 <!--
8 Generated with a Jinja2 template. The 'globs' variables come from the file globals.json containing global
9 variables/structures. The actual/dynamic data (cities) comes from the input CSV file cities.json.
10 Also a file with macros templates/macros.tpl.xml is imported, allowing reuse for common structures like INSPIRE id's.
11 -->
12
13
14 <gml:description>
15 This example tests GML generation with Jinja2 templating, including the use of Jinja2 globals., such as for this description. Globals provide more or less constant/semi static information like point of contacts, global names, id-prefixes etc.
16 </gml:description>
17
18
19
20 <!-- Rendered by macro render_name() -->
21 <gml:name>
22 Test for GML generation via Jinja2 templating
23 </gml:name>
24
25
26 <!-- Rendered by macro render_bounded_by() -->
27 <gml:boundedBy>
28 <gml:Box>
29 <gml:coord>
30 <gml:X>4.9</gml:X>
31 <gml:Y>41.9</gml:Y>
32 </gml:coord>
33 <gml:coord>
34 <gml:X>12.5</gml:X>
35 <gml:Y>52.4</gml:Y>
36 </gml:coord>
37 </gml:Box>
38 </gml:boundedBy>
39
40 <gml:featureMember>
41 <cities:City>
42 <cities:name>Amsterdam</cities:name>
43 <cities:geometry>
44 <gml:Point srsName="EPSG:4326">
45 <gml:coordinates>4.9, 52.4</gml:coordinates>
46 </gml:Point>
47 </cities:geometry>
48 </cities:City>
49 </gml:featureMember>
50 <gml:featureMember>
51 <cities:City>
52 <cities:name>Bonn</cities:name>
53 <cities:geometry>
54 <gml:Point srsName="EPSG:4326">
55 <gml:coordinates>7.1, 50.7</gml:coordinates>
56 </gml:Point>
57 </cities:geometry>
58 </cities:City>
59 </gml:featureMember>
60 <gml:featureMember>
61 <cities:City>
62 <cities:name>Rome</cities:name>
63 <cities:geometry>
64 <gml:Point srsName="EPSG:4326">
65 <gml:coordinates>12.5, 41.9</gml:coordinates>
66 </gml:Point>
67 </cities:geometry>
68 </cities:City>
69 </gml:featureMember>
70
71 </cities:FeatureCollection>