azavea / osmesa

OSMesa is an OpenStreetMap processing stack based on GeoTrellis and Apache Spark
Apache License 2.0
79 stars 26 forks source link

Compute area statistics for multipolygon geometries #196

Closed CloudNiner closed 3 years ago

CloudNiner commented 4 years ago

We'd like to be able to compute area statistics from multipolygons, which requires parsing and including relation geometries in OSMesa.

We added relation geojson to osm-replication-streams in https://github.com/azavea/osm-replication-streams/pull/4 and deployed a new stream that is writing relation objects in addition to nodes and ways using https://github.com/azavea/overpass-diff-publisher.

This task is to ensure that when we compute area statistics as implemented in #194 that we're also including areas from multipolygon relations in addition to just polygon ways. This requires that OSMesa is able to read relations from the geojson augmented diffs and add them to the stream for processing.

CloudNiner commented 4 years ago

A separate task would be responsible for deployment and comprehensive testing of this feature on a staging cluster.

CloudNiner commented 3 years ago

Verified that OSMesa already successfully parses multipolygon relations included in the augmented-diff-publisher generated geojson, they just have to be there, which they are now thanks to https://github.com/azavea/osm-replication-streams/pull/4.