Skip to content

Conversation

@sergej-singer
Copy link

@sergej-singer sergej-singer commented Jul 17, 2024

Related to #1
The usual organisation of KML with MultiGeometry looks like this:

Folder
  Placemark 1
    MultiGeometry
      LineString/Polygon/Point 1
      LineString/Polygon/Point 2
      ...
      LineString/Polygon/Point n
  Placemark 2
    LineString/Polygon/Point 

MultiGeometries can also contain MultiGeometries, but I didn't implement this yet.

MultiGeometries are implemented as Lists of LineStrings, Polygons or Points. There's also a check for cases when MultiGeometry contains more than one type of Geometry, otherwise it couldn't rendered it with jinja functions.

For every Jinja Function I've added "multi" function, which can process such lists with geometries.

I've tried to test every case I could imagine, looks like it's working.

This reverts commit 8994ebe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant