Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffering lines for segmentation #11

Open
aliFrancis opened this issue Sep 6, 2022 · 1 comment
Open

Buffering lines for segmentation #11

aliFrancis opened this issue Sep 6, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@aliFrancis
Copy link

Hi there,

Great tool!

I'm using it to make some segmentation masks for land cover analysis. I notice that a significant drawback in segmentation mode is that almost all highway=* attributes are lines, not polygons. This means that they are left blank in the segmentation labels. Is there any way around this? Otherwise the labels have large gaps where all the roads are. Given that at higher zoom levels, roads are actually extended objects several pixels wide, it would be good to be able to label these. Example below:

14 8584 5593

Thanks!

@bobleegogogo bobleegogogo added the enhancement New feature or request label Sep 11, 2022
@bobleegogogo
Copy link
Contributor

Hi @aliFrancis,

Thanks for reaching out!

Unfortunately, the current segmentation model deals only OSM polygon features. Actually, we had also though about the scenario you mentioned above, while still it is not possible to decide a proper pixel buffer for all polyline features in OSM, for instance, roads and water streams might have different widths.

I marked this as a wanted enrichment feature, while not sure to which extent this feature can be integrated into existing main branch, given the buffer of road might still be a very specific case and need potential user input of their desired buffer size?

Another workaround is to do preprocessing (polyline buffering into polygon) separately before you run ohsome2label label ..., while this might be just a hot fix.

Best Regards,

Hao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants