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 query option --geometry (-g) #80

Open
clarisma opened this issue Jan 2, 2023 · 0 comments
Open

Add query option --geometry (-g) #80

clarisma opened this issue Jan 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@clarisma
Copy link
Owner

clarisma commented Jan 2, 2023

Applies geometric transformations to geometries retrieved by a query.

Proposed format: -g=<command>+

Where command can be one or more of the following:

  • buffer(m): Buffers each geometry by a given distance (in meters)

  • simplify(m): Generalizes each geometry with a given tolerance

  • densify(m): Adds points to each geometry to ensure points are no more than m meters apart

  • rotate(deg): Rotates each geometry

  • scale(factor): Scales each geometry

  • translate(xd,yd): Moves each geometry by the given distance in meters.

  • project(srid): Projects each geometry

  • validate: Checks geometries for validity, turns them into empty geometries if invalid.

  • fix: Checks geometries for validity and attempts to fix invalid ones (e.g. node self-intersecting polygons)

  • flip / mirror ?

  • command to set winding order

Open issues

  • Should this be called --transform (-t) instead to apply non-geometric transformations (e.g. change tags?)
  • Does it make sense to offer union, intersection, difference?
    • If so, what are the features? What happens to the tags?
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

1 participant