Skip to content

Properties in root #166

Open
Open

Description

@mtugnoli

Hi,

is it possible to add properties in root element ?

ex:

{
"type": "FeatureCollection",
"properties": {
"Creator": "Me",
"records": 1,
"label": "Track 1"
},
"features": [
{
"type": "Feature",
"properties": {
"name": "trk1"
},
"geometry": {
"type": "LineString",
"coordinates": [
[
44.43613529205322,
11.499595642089844,
62.3203125
],
[
44.43568468093872,
11.499295234680176,
62.46875
],
[
44.43199396133423,
11.496570110321045,
62.10546875
]
]
}
}
]
}

Activity

  1. xfischer commented on May 15, 2023

    @xfischer
    Member

    Hi ! There is no properties member for FeatureCollection. The RFC states that it is forbidden to use the same properties for that purpose, (https://datatracker.ietf.org/doc/html/rfc7946#section-6)
    RFC also states that it is possible to extend the model, so you may have an "additionalProperties" members for instance.

    Not sure how to implement this in a proper way (dynamic objects maybe ?)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions