-
Notifications
You must be signed in to change notification settings - Fork 14
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
Access to top-level members in a GeoJSON feature #82
Comments
Meeting 2023-08-21: We still think that we still have a preference for keeping the current approach, but with a new recommendation to also include the information in the properties object in cases where it is expected that the data may also be used in clients that do not support access to new members outside of the properties object. @cportele will create a pull request. |
While working on the text in #95 I also had another thought: We already have the GeoJSON compatibility "mode" for the "geometry" member. Should we tie the recommendation to that mode only, i.e., if the "compatibility" media type parameter is set? |
Meeting 2023-09-18: The PR #95 covers what we have decided previously, but we should discuss the previous comment on the use of the compatibility mode in the next meeting where we have more participation (eg Singapore). |
We decided to merge the pull request, but keep the issue open to discuss whether the recommendation to include the top-level members also in the "properties" member should apply only in the "GeoJSON compatibility mode" (i.e., if the "compatibility" media type parameter is set). |
This issue was discussed in the meeting on 2023-05-15.
In OGC API Records there is a discussion whether
time
etc. should be a top-level member in the GeoJSON feature object or whether it should be inside theproperties
container object (see the discussion starting with opengeospatial/ogcapi-records#168 (comment)).While the reasoning for
time
,featureType
,coordRefSys
, etc. as top-level members likeid
orgeometry
, separate from the domain/application-specific values inproperties
still seems justified, this can make it hard(er) to use the data in clients. OpenLayers was mentioned as one example, where access is to the id, the geometry and the properties object, but "custom" top-level members cannot be accessed. Other tools likely will be using a similar approach.Options include:
properties
to simplify access in existing tools supporting GeoJSON, likely using special names as$time
,$featureType
or$crs
to highlight their special role and reduce naming conflicts.After some back and forth between those options, there was a preference for keeping the current approach, but with a new recommendation to also include the information in the properties object in cases where it is expected that the data may also be used in clients that do not support access to new members outside of the properties object.
We will keep this issue open for some time to see, if there is any additional feedback or experience. We should also monitor the discussion in OGC API Records.
In the discussion, we also noted that other GeoJSON extensions have also made use of top-level members (STAC, for example, uses
conformsTo
(see also #70),assets
,links
orstac_version
as top-level members.The text was updated successfully, but these errors were encountered: