Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiGeometry Support #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

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.
@sergej-singer sergej-singer reopened this Dec 13, 2024
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