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

Formatter: Add shape option #40

Open
clarisma opened this issue Jan 12, 2024 · 0 comments
Open

Formatter: Add shape option #40

clarisma opened this issue Jan 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@clarisma
Copy link
Owner

shape would allow user to specify a function that supplies the geometry for a given feature; this could be used to apply various transformations, e.g.:

features.geojson(shape=lambda f: f.shape.simplify(100))

(See clarisma/gol-tool#80)

  • shape must be a function that takes a Feature and returns a Geometry

  • If shape function is provided, mercator is ignored; coordinates are output as-is (only precision applies)

@clarisma clarisma added the enhancement New feature or request label Jan 12, 2024
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