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

v.distance: add JSON support #3942

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kritibirda26
Copy link
Contributor

Using parson, add JSON support to v.distance module.

The output looks like as follows:

[
    {
        "from_cat": 1,
        "to_cat": 33,
        "distances": [
            {
                "value": 54371.188688694157,
                "name": "dist"
            },
            {
                "value": "Zebulon",
                "name": "to_attr"
            }
        ]
    },
    {
        "from_cat": 8,
        "to_cat": 18,
        "distances": [
            {
                "value": 284.67149902717813,
                "name": "dist"
            },
            {
                "value": "RFD #14",
                "name": "to_attr"
            }
        ]
    }
]

I will add tests and update documentation once the JSON format is finalized.

@github-actions github-actions bot added vector Related to vector data processing C Related code is in C module labels Jun 29, 2024
@echoix echoix added this to the 8.5.0 milestone Jun 30, 2024
@echoix echoix changed the title v.distance: add json support Jul 10, 2024
Copy link
Contributor

@cwhite911 cwhite911 left a comment

Choose a reason for hiding this comment

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

@kritibirda26 please add tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C module vector Related to vector data processing
3 participants