Skip to content

Commit

Permalink
Update alto to not produce Polygon tag on default blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
PonteIneptique authored Jul 5, 2024
1 parent aaf2b7a commit 597a8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kraken/templates/alto
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@
</TextBlock>
{% endif %}
<TextBlock ID="{{ entity.id }}" {% if entity.bbox %}HPOS="{{ entity.bbox[0] }}" VPOS="{{ entity.bbox[1] }}" WIDTH="{{ entity.bbox[2] - entity.bbox[0] }}" HEIGHT="{{ entity.bbox[3] - entity.bbox[1] }}"{% endif %} {% if entity.tags %}{% for type in page.region_types %}{% if type in entity.tags.values() %}TAGREFS="REGION_TYPE_{{ loop.index }}"{% endif %}{% endfor %}{% endif %}>
<Shape>
{% if entity.bbox %}<Shape>
<Polygon POINTS="{{ entity.boundary|sum(start=[])|join(' ') }}"/>
</Shape>
</Shape>{% endif %}
{%- for line in entity.lines -%}
{{ render_line(page, line) }}
{%- endfor -%}
Expand Down

0 comments on commit 597a8d9

Please sign in to comment.