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

Add command for generating "point radius" polygons #14

Open
worace opened this issue Sep 21, 2018 · 0 comments
Open

Add command for generating "point radius" polygons #14

worace opened this issue Sep 21, 2018 · 0 comments
Labels
hacktoberfest help wanted Extra attention is needed

Comments

@worace
Copy link
Owner

worace commented Sep 21, 2018

Something like:

echo 34.0,-118.0 | geoq point-radius 50

Where 50 indicates meters.

And get out a polygon (probably default to GeoJSON) approximating the circle of that radius at that point.

Optionally we could take an argument to specify the number of points used for the circle-ish polygon, but I think for starters it's fine to just pick a number.

Eventually it would be cool to support a general-purpose buffer command for all geometries, but the implementation of that is somewhat complex (JTS version is here for reference) and it doesn't look like there is an existing rust implementation of it yet. So starting with just points seems fine and still useful.

@worace worace added help wanted Extra attention is needed hacktoberfest labels Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant