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

Feature: Improved rupture information #53

Open
2 tasks
chrisdicaprio opened this issue Jun 18, 2024 · 0 comments
Open
2 tasks

Feature: Improved rupture information #53

chrisdicaprio opened this issue Jun 18, 2024 · 0 comments
Labels
API for project filtering enhancement New feature or request solvis-graphql-api for project filtering

Comments

@chrisdicaprio
Copy link
Collaborator

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.

  • add the following to the top of the FeatureCollection:
{
    "type": "FeatureCollection",
    "id": "('CRU', 3)",
    "magnitude": 7.238,
    "mean rate (1/yr)": 0.000010125880180567037,
    "area (km^2)": 1090,
    "length (km)": 35,
    "features": [
        {
...
  • "mean rate (1/yr)" is the "rate_weighted_mean" (key is changed to make it's meaning obvious to users).

  • Units added to aid user.

  • remove the id relating to ruptures (e.g., "('CRU', 3)") from the Featuress. Note (as in the example above) it should be added to the top FeatureCollection.

@chrisdicaprio chrisdicaprio added API for project filtering solvis-graphql-api for project filtering labels Jun 18, 2024
@chrisdicaprio chrisdicaprio added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API for project filtering enhancement New feature or request solvis-graphql-api for project filtering
Projects
None yet
Development

No branches or pull requests

1 participant