Let project -G accept increment unit and +n modifier #5984
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
The distance increment set in project has long been required to be in km, whereas most places in GMT we can specify what unit we want (e.g., 30n for 30 nautical miles or 2d for 2 spherical degrees) but not so in project. We were also unable to specify the number of points, which is pretty handy when you give a start and stop point and want to generate intermediate points. Thus, this PR:
All tests pass except an undetected error in ellipses.sh where -Q was not passed so -G10 was interpreted (as it should be) as degrees. The script was updated to use -Q.