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

Handle units in vector processes #330 #436

Merged
merged 3 commits into from
May 4, 2023
Merged

Handle units in vector processes #330 #436

merged 3 commits into from
May 4, 2023

Conversation

m-mohr
Copy link
Member

@m-mohr m-mohr commented May 2, 2023

Closes #330 as discussed there and in #414.

I tried to make this as future-proof as possible so that we can decide to allow more than meters in the future.

A general question came up (how to encode values with units), please chime in here: #436 (comment)

@m-mohr m-mohr added the vector label May 2, 2023
@m-mohr m-mohr added this to the 2.0.0 milestone May 2, 2023
@m-mohr m-mohr linked an issue May 2, 2023 that may be closed by this pull request
Copy link
Contributor

@LukeWeidenwalker LukeWeidenwalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

proposals/vector_buffer.json Outdated Show resolved Hide resolved
proposals/vector_to_regular_points.json Outdated Show resolved Hide resolved
m-mohr and others added 2 commits May 4, 2023 16:45
Co-authored-by: Daniel Thiex <60705209+dthiex@users.noreply.github.com>
@m-mohr m-mohr merged commit 32ec399 into draft May 4, 2023
2 checks passed
@m-mohr m-mohr deleted the vector-units branch May 4, 2023 15:51
@@ -22,7 +22,7 @@
},
{
"name": "distance",
"description": "The distance of the buffer in the unit of the spatial reference system. A positive distance expands the geometries and results in outward buffering (dilation) while a negative distance shrinks the geometries and results in inward buffering (erosion).",
"description": "The distance of the buffer in meters. If the unit of the spatial reference system is not meters, a `UnitMismatch` error is thrown. Use ``vector_reproject()`` to convert the geometries to a suitable spatial reference system.\n\nA positive distance expands the geometries and results in outward buffering (dilation) while a negative distance shrinks the geometries and results in inward buffering (erosion).",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too late since it is already merged, but the wording could be:

A positive distance expands the geometries, resulting in outward buffering (dilation), while a negative distance shrinks the geometries, resulting in inward buffering (erosion).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can still integrate that later, thanks :-)

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

Successfully merging this pull request may close these issues.

Unit in vector processes
7 participants