OpenSidewalks / OpenSidewalks-Schema

Repository for the draft proposal of the OpenSidewalks schema
https://sidewalks.washington.edu
43 stars 8 forks source link

Accept/ignore additional top-level GeoJSON keys #7

Open nbolten opened 1 year ago

nbolten commented 1 year ago

Our typing of the top-level GeoJSON object is currently very strict, requiring that the type and features keys, and only those keys, are defined. Real-world GeoJSON files often have additional top-level keys, such as crs (to specify an alternative coordinate system), bounds or bbox for the extent of the dataset, name to create a named layer, and so on.

To my knowledge, we don't really care whether there is additional information at that top level. At most, we may want to set restrictions on certain optional keys. For example, we do want the crs to have a value of WGS84, if it's defined.

This is a list of (currently) suggested changes (and whether they have been implemented):