developmentseed / moz-datapipeline

Mozambique Road Planning data pipeline
MIT License
4 stars 1 forks source link

Use lineSplit to generate weighted averages #19

Closed olafveerman closed 6 years ago

olafveerman commented 6 years ago

This is a slightly different approach to generate weighted averages for the indicators. It uses @turf/line-split to split the ways by the area polygons, which are then used to generate the averages.

It should handle the following (edge) cases:

We should probably not call this proximity, but something else. Not sure what though.