mapbox / robosat

Semantic segmentation on aerial and satellite imagery. Extracts features such as: buildings, parking lots, roads, water, clouds
MIT License
2.02k stars 382 forks source link

rs extract: implement generic feature validation in base handler #136

Open daniel-j-h opened 5 years ago

daniel-j-h commented 5 years ago

At the moment the rs extract handlers are responsible to walk over OpenStreetMap and collect and extract GeoJSON features for the training dataset. Every handler has to start from scratch with OpenStreetMap data validation e.g. making sure polygons are closed ways, or that ways have more than a single node *.

We should write a base handler which already provides reasonable guarantees for the input data to work on.

This base handler could also provide functionality to batch-write features; see https://github.com/mapbox/robosat/issues/120.

* Which is not always the case, e.g. see https://www.openstreetmap.org/way/5699705