Debian Codegraph @

examples/basics/10_jinja2_templating/output/cities-gjson.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 <!-- bbox present in geojson input -->
27 <gml:boundedBy>
28 <gml:Box>
29 <gml:coord>
30 <gml:X>4.88</gml:X>
31 <gml:Y>41.88</gml:Y>
32 </gml:coord>
33 <gml:coord>
34 <gml:X>12.52</gml:X>
35 <gml:Y>53.98</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:population>779808</cities:population>
44 <cities:geometry>
45 <gml:Point srsName="urn:ogc:def:crs:EPSG::4258" gml:id="point-1"><gml:pos>4.89483636363636 52.3730454545455</gml:pos></gml:Point>
46 </cities:geometry>
47 </cities:City>
48 </gml:featureMember>
49 <gml:featureMember>
50 <cities:City>
51 <cities:name>Bonn</cities:name>
52 <cities:population>327913</cities:population>
53 <cities:geometry>
54 <gml:Point srsName="urn:ogc:def:crs:EPSG::4258" gml:id="point-2"><gml:pos>7.09981818181818 50.7345545454545</gml:pos></gml:Point>
55 </cities:geometry>
56 </cities:City>
57 </gml:featureMember>
58 <gml:featureMember>
59 <cities:City>
60 <cities:name>Rome</cities:name>
61 <cities:population>2753000</cities:population>
62 <cities:geometry>
63 <gml:Point srsName="urn:ogc:def:crs:EPSG::4258" gml:id="point-3"><gml:pos>12.52 41.88</gml:pos></gml:Point>
64 </cities:geometry>
65 </cities:City>
66 </gml:featureMember>
67
68 </cities:FeatureCollection>