andrewharvey / geojson-polygon-labels

Command line tool to generate point labels from GeoJSON polygons
ISC License
82 stars 16 forks source link

Also accept LineString #27

Open xeruf opened 2 years ago

xeruf commented 2 years ago

Thanks for the awesome tool! Through an osmium export I get features of type Point, LineString and MultiPolygon - is it possible to apply this algorithm to LineStrings as well, since these effectively represent polygons in my dataset?

andrewharvey commented 2 years ago

Not currently supported, interested to hear more detail about how that could work.

xeruf commented 2 years ago

Well, a LineString is also simply an accumulation of points, so with few tweaks it could be covered by this as well. But I don't know much about the formats, I just used them for something else and stumbled upon this ^^