Skip to content

Let shrink length for geovector be accepted in any valid map unit - #6155

Merged
PaulWessel merged 1 commit into
masterfrom
shrink-vec-units
Dec 27, 2021
Merged

PaulWessel merged 1 commit into
masterfrom
shrink-vec-units

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

The +nnorm modifier for geovectors was hardwired to be understood as km, while for Cartesian vectors the norm could be given with any plot unit (c|i|p). This limitation is not helpful when you want to specify a length of 1 spherical degree, having to do head-math to get 111.195079734 or similar. This PR does four things:

  1. Allows valid map units (arc units like d,m,s and distance units like e,k,n,M, etc.)
  2. Checks if a confused user specified the length in plot units and gives appropriate error message
  3. Updates the usage synopsis listed in plot and plot3 (they missed the new [/min] extension)
  4. Updates the vector attribute documentation to discuss the units.

No tests affected. I may add a new test via another PR when as I am examining a possible issue related to shrinking heads.

The +nnorm modifier for geovector was hardwired to be understood as km.  This is not that useful when you want to specify a length of 1 spherical degree, having to do head-math to get 111.195079734 or similar.  This PR does three things

1. Allows valid map units (arc units like d,m,s and e,k,n,M etc)
2. Checks if a confused user specifies the length in plot units and gives an error
3. Updates the usage syntax listed in plot and plot3
4. Updates the documentation to discuss the units.
@PaulWessel PaulWessel added documentation Improve documentation enhancement Improving an existing feature labels Dec 26, 2021
@PaulWessel PaulWessel added this to the Future release milestone Dec 26, 2021
@PaulWessel PaulWessel self-assigned this Dec 26, 2021
@PaulWessel
PaulWessel merged commit 93ab6b5 into master Dec 27, 2021
@PaulWessel
PaulWessel deleted the shrink-vec-units branch December 27, 2021 00:13
@maxrjones maxrjones added the add-changelog Add PR to the changelog label Jan 25, 2022
@seisman seisman removed this from the Future release milestone Jan 7, 2024

This branch was previously deployed

1 inactive deployment
Preview — a01d50b1 Deployed Dec 26, 2021 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog documentation Improve documentation enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants