Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
correction: for issue #7
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsbrentjens committed Sep 11, 2014
1 parent 8553a75 commit 92d3ac1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 46 deletions.
45 changes: 9 additions & 36 deletions src/aq-report/output/dataflow-B.xml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/aq-report/templates/dataflow-B.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
</am:name>
{# Thijs: do this later, since this is a bit more work for multipolygons #}
<am:geometry>
{{ macros_gml.render_multipolygon2d(globs.srs_name, feature.geometry.coordinates, 'geometry-' + globs.namespace + '-' + feature.properties.zone_code) }}
{% set gml_id = 'geometry-' + globs.namespace + '-' + feature.properties.zone_code %}
{{ feature.geometry | geojson2gml(source_crs=4326, target_crs=4258, gml_id=gml_id, gml_format='GML3', gml_longsrs='YES') }}
</am:geometry>
{# Thijs: how to match the zone_type? The value comes from the CSV-file for the Zones. A macro could be the best, but would be nice if we could use the vocabulary directly.
Expand Down
9 changes: 0 additions & 9 deletions src/aq-report/templates/macros-gml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,3 @@
{{ content }}
</{{tag}}>
{%- endmacro %}

{# Macro that renders a MultiPolygon element #}
{# Thijs: a stub for now, Just will work on this #}
{% macro render_multipolygon2d(srs_name, coordinates, gml_id) -%}
<!-- Rendered by macro render_multipolygon2d(). NOTE: this is an invalid geometry for now -->
<gml:MultiSurface srsName="{{ srs_name }}" gml:id="{{ gml_id }}">
{{ coordinates }}
</gml:MultiSurface>
{%- endmacro %}

0 comments on commit 92d3ac1

Please sign in to comment.