Riskmap distribution - mapserv.riskmap
Obtains risk contour vector data of risk maps.
JSON-RPC v2.0 is used as the execution method.
Sample Request
{
"jsonrpc": "2.0",
"method": "mapserv.riskmap",
"params": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [[
[139.25, 35.25], [139.25, 35.5], [139.625, 35.5],
[139.625, 35.25], [139.25, 35.25]
]]
},
"properties": {
"start_datetime": "2018-09-15 00:00:00",
"end_datetime": "2018-09-15 01:00:00",
"themes": ["riskmap_fujisawa"]
}
},
"id": "mapserv_riskmap"
}
Parameter
Request parameters are described in GeoJSON Feature format.
Geometry is a spatial region to be searched for. The type can be Polygon, Line, Point, or Collection of these.
For Properties, specify the following parameters:
Parameter Name | Data Type | Details | Default Value |
---|---|---|---|
start_datetime | string | Date and Time ("YYYY-MM-DD hh:mm:ss+TZ") | Required |
end_datetime | string | Date and Time ("YYYY-MM-DD hh:mm:ss+TZ") | start_datetime + 1 seconds |
themes | [string, [string,...] | Target risk map | Required |
target_theme_mesh_degree | int | Mesh degree of Target risk map | optional (1~5) |
Output Sample
Return Values
GeoJSON (FeatureCollection) is returned. Each record of event data is stored as a Feature.
Each feature's geometry
is the GeoJSON representation of the geom.
In the properties
, the risk map name will be stored in theme
, the risk value in risk
and the datetime in datetime
.
Description
Obtains risk contour polygon data of risk maps.
Returns the risk polygon contour data in the period specified by start_datetime
and end_datetime
and in the map(s) specified by themes
that intersect
the region(s) specified in the geometry part of the request GeoJSON.
When the target period, number of target risk maps and geometry parts are large, an extremely large GeoJSON may be returned.
This API returns only risk values in addition to the spatio-temporarl attributes. Use Prediction map distribution
API when other attributes values are needed.
If the request includes target_theme_mesh_degree, the risk map for the most recent time since the time specified in start_datetime will be returned.