-
Notifications
You must be signed in to change notification settings - Fork 261
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
Support GeoJSON MultiPolygon #217
Comments
Change in diff --git a/scripts/convert_xml.py b/scripts/convert_xml.py
index f2a0b34..47ea57a 100644
--- a/scripts/convert_xml.py
+++ b/scripts/convert_xml.py
@@ -68,7 +68,7 @@ for source in sources:
if geometry:
bounds = ET.SubElement(entry, "bounds")
- for ring in geometry['coordinates']:
+ for ring in geometry['coordinates'] if geometry['type'] != 'MultiPolygon' else [ring for rings in geometry['coordinates'] for ring in rings]:
shape = ET.SubElement(bounds, "shape")
for p in ring:
point = ET.SubElement(shape, "point") |
@andrewharvey @bhousel |
No reason.. I'd actually prefer for the geometries be proper GeoJSON multipolygons. |
Then I assume you are happy about #857 |
Implemented with #1450 |
@tyrasd in #206 (comment):
The text was updated successfully, but these errors were encountered: