{# Show the use of globals, more or less static content. #}
{{ globs.description }}
{# Show the use of macro's, a very powerful reuse mechanism, e.g. for common elements and structures like INSPIRE id. #}
{% import 'templates/macros.jinja2' as macros %}
{# {{ macros.render_element('gml:description', globs.description) }} #}
{{ macros.render_name(globs.name) }}
{{ bbox[0] }}
{{ bbox[1] }}
{{ bbox[2] }}
{{ bbox[3] }}
{% for feature in features %}
{{ feature.properties.CITY_NAME }}
{# get population from reference data in globals struct #}
{{ refdata.city_population[feature.properties.CITY_NAME] }}
{# Generate gml id #}
{% set gml_id = 'point-%d' % loop.index %}
{# Generate a Point (or any other) GML geometry from a GeoJSON geometry using the geojson2gml
Jinja2 custom Filter.
By specifying a target_crs we can even reproject from the source CRS.
The gml_format=GML2|GML3 determines the general GML form: e.g. pos/posList or coordinates. gml_longsrs=YES|NO
determines the srsName format like EPSG:4326 or urn:ogc:def:crs:EPSG::4326 (long).
#}
{{ feature.geometry | geojson2gml(source_crs=crs, target_crs=4258, gml_id=gml_id, gml_format='GML3', gml_longsrs='YES') }}
{% endfor %}