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

[FEATURE] Line-to-point geometry transformations #890

Closed
quincylvania opened this issue May 22, 2024 · 2 comments · Fixed by #945
Closed

[FEATURE] Line-to-point geometry transformations #890

quincylvania opened this issue May 22, 2024 · 2 comments · Fixed by #945

Comments

@quincylvania
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, there are transformations like polygon_centroid which convert areas to points. However, there does not seem to be a corresponding method for converting lines to points. This would be helpful for points of interest in OpenStreetMap that people often map as lines, such as benches, dams, and billboards (example).

Describe the solution you'd like
Add one or more geometry types for layer definitions that convert lines to points. Perhaps one that chooses the centroid and one that puts the point on the line.

Describe alternatives you've considered
We can output lines directly and render them as points if desired. However, this adds unnecessary bloat if we don't care about the exact geometry. Short lines are also likely to be dropped at lower zoom levels, which may be unexpected when we just want to display point icons.

@msbarry
Copy link
Contributor

msbarry commented Jul 2, 2024

Sorry for the delay here! Should be fixed in #945

@quincylvania
Copy link
Contributor Author

@msbarry Thank you!!

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

Successfully merging a pull request may close this issue.

2 participants