-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
[Feat] Add JSON output to v.colors.out #4660
Comments
We should consider moving some of the common functionality with r.colors.out to library to avoid duplication. |
Sure, I will create a PR since both grass/raster/r.colors.out/raster_main.c Lines 108 to 109 in 69b20cf
grass/vector/v.colors.out/main.c Lines 109 to 110 in 69b20cf
|
Hey @petrasovaa, should I move the common functionality to a library and add JSON output to |
To answer this, you can think about if there would be a problem with the PR and it would need to be reverted, would it also remove some other new functionality? If so, it's probably because it would have been better to be in separate PRs. |
Add JSON output for easy parsing of v.colors.out output.
Describe the solution you'd like
Add an option for format, such as
format=plain
for the current output format andformat=json
for the JSON output. Additionally, include thecolor_format
option to specify the color format to be printed in JSON. The available options forcolor_format
includergb
,hex
,hsv
, andtriplet
.A possible JSON layout could be:
The text was updated successfully, but these errors were encountered: