-
Notifications
You must be signed in to change notification settings - Fork 7
pygeoapi query samples
Joost van Ulden edited this page Mar 31, 2021
·
16 revisions
Note: these samples are written in Elasticsearch query syntax
{
"query": {
"range": {
"properties.MHn_Intensity": {
"gte": 0.59,
"lte": 0.60
}
}
}
}
{
"query": {
"range": {
"properties.MHn_Intensity": {
"gte": 0.59
}
}
}
}
{
"query": {
"match": {
"properties.MHt_Concrete" : 4.0
}
}
}
WFi < 1.0 AND ername = 'Kootenay'
{
"query": {
"bool" : {
"must_not" : {
"range": {
"properties.WFi": { "gt": 1.0 }
}
},
"must" : {
"match" : {
"properties.ername" : "Kootenay"
}
}
}
}
}
Identify all the places where at least considerable building damage could occur, considering earthquake, flood, fire or cyclone.
Eqt_PGAt > 0.18 OR FLt_500 > 1.0 OR WFi > 2000 OR CYi_500 > 154
{
"query": {
"query_string": {
"query": "(properties.Eqt_PGAt > 0.18) OR (properties.FLt_500 > 1.0) OR (properties.WFi > 2000) OR (properties.CYi_500 > 154)"
}
}
}
{
"query": {
"geo_shape": {
"geometry": {
"shape": {
"type": "circle",
"radius": "20km",
"coordinates": [ -118, 49 ]
}
}
}
}
}
{
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
"geo_shape": {
"geometry": {
"shape": {
"type": "envelope",
"coordinates": [ [ -118.7, 50 ], [ -118.4, 49.9 ] ]
},
"relation": "intersects"
}
}
}
}
}
}
Wikis: data | model-factory | opendrr-api | opendrr | python-env | riskprofiler-cms