Closed zoink closed 4 years ago
Hey,
check out how rs extract
handles roads here:
https://github.com/mapbox/robosat/blob/1d0cf506cde4600ab7063c238f7f9e25d65ba611/robosat/osm/road.py
we define some heuristics for road width such as road class, number of lanes, and so on. Based on this we come up with a road width and buffer the linestring by that amount of meters:
You could either just use rs extract
with the road handler or use the code in that handler as inspiration to buffer your linestring geometries.
Hope that helps.
I'm trying to doing
rs cover
to generate tiles from a list of roads, where the .geojson file contains LineStrings (not Polygons).As a result I've been running into the following error:
Is there some simple tool I can use to convert LineString to Polygon with some defined width? Thanks so much!