GNS-Science / solvis-graphql-api

solvis-graphql-api
GNU Affero General Public License v3.0
1 stars 0 forks source link

Feature: Improved rupture information #53

Open chrisdicaprio opened 1 month ago

chrisdicaprio commented 1 month ago

When downloading a single rupture from the rupture explorer users want more information about a rupture and a json schema that is easier to parse.

NB: the additional fields are not explicity in the GeoJSON specification, but they are not disallowed

https://datatracker.ietf.org/doc/html/rfc7946#page-15

Members not described in this specification ("foreign members") MAY be used in a GeoJSON document. Note that support for foreign members can vary across implementations, and no normative processing model for foreign members is defined. Accordingly, implementations that rely too heavily on the use of foreign members might experience reduced interoperability with other implementations.

For example, in the (abridged) Feature object shown below

{ "type": "Feature", "id": "f1", "geometry": {...}, "properties": {...}, "title": "Example Feature" }

the name/value pair of "title": "Example Feature" is a foreign member. When the value of a foreign member is an object, all the descendant members of that object are themselves foreign members.