grass icon indicating copy to clipboard operation
grass copied to clipboard

r.profile: add JSON support

Open kritibirda opened this issue 1 year ago • 0 comments

Use parson to add json output format support to the r.profile module.

The output format is as follows:

[
    {
        "easting": <float>,
        "northing": <float>,
        "distance": <float>,
        "elevation": <float>,
        "red": <int>,
        "green": <int>,
        "blue": <int>
    },
    {
        "easting": <float>,
        "northing": <float>,
        "distance": <float>,
        "elevation": <float>,
        "red": <int>,
        "green": <int>,
        "blue": <int>
    },
...
]

Note that the elevation field is the name of the input and red, green, blue fields are only included if the colors flag is specified.

kritibirda avatar Jun 17 '24 14:06 kritibirda