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

Response format for parcel is broken #47

Closed
koenedaele opened this issue Apr 19, 2017 · 0 comments · Fixed by #49
Closed

Response format for parcel is broken #47

koenedaele opened this issue Apr 19, 2017 · 0 comments · Fixed by #49
Assignees
Milestone

Comments

@koenedaele
Copy link
Member

In version 0.6.0:

{
    "percid": "11372_A_0005_P_000_00",
    "sectie": {
        "afdeling": {
            "naam": "AARTSELAAR  2 AFD",
            "id": 11372,
            "gemeente": {
                "naam": "Aartselaar",
                "id": 11001
            }
        },
        "id": "A"
    },
    "capakey": "11372A0005/00P000",
    "bounding_box": "{\"coordinates\":[[[149254.71962500364,204170.85500000045],[149328.96400000155,204170.85500000045],[149328.96400000155,204255.58281249925],[149254.71962500364,204255.58281249925],[149254.71962500364,204170.85500000045]]],\"type\":\"Polygon\",\"crs\":{\"type\":\"link\",\"properties\":{\"href\":\"http://www.opengis.net/def/crs/EPSG/0/31370\"}}}",
    "centroid": "{\"coordinates\":[149291.84181250259,204213.21890624985],\"type\":\"Point\",\"crs\":{\"type\":\"link\",\"properties\":{\"href\":\"http://www.opengis.net/def/crs/EPSG/0/31370\"}}}",
    "id": "0005/00P000"
}

In version 0.5.1:

{
    "percid": "11372_A_0005_P_000_00",
    "sectie": {
        "afdeling": {
            "naam": "AARTSELAAR  2 AFD",
            "id": 11372,
            "gemeente": {
                "naam": "Aartselaar",
                "id": 11001
            }
        },
        "id": "A"
    },
    "capakey": "11372A0005/00P000",
    "bounding_box": [
        149254.719625004,
        204170.855,
        149328.964000002,
        204255.582812499
    ],
    "centroid": [
        149291.841812503,
        204213.21890625
    ],
    "id": "0005/00P000"
}

The API of version 0.5 should be maintained. This might also mean that the problem is present in CRABpy 0.8.0 and that we've broken the API there as well. Should be fixed before we start integrating the new version in exsiting applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants