URI
<gridMathAnalyst_uri>/{id}[.<format>]
Supported methods
Parent resource
Introduction
The result resource of the grid algebra. You can get the result of grid algebra.
Supported Methods:
- GET: Get the result data of grid algebra.
- HEAD: Checks whether gridMathResult resource exists, or whether it can be accessed.
Supported output formats: rjson, json, html, xml.
Resource hierarchy
HTTP request methods
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/datasets/JingjinTerrain@Jingjin/mathanalyst.rjson
GET request
Get the result data of grid algebra.
Response structure
The response code would be 200 in a normal situation.
Field | Type | Description |
succeed | boolean | Whether the analysis is successful. |
message |
String | The message returned while the analysis failed. |
dataset | String | The identifier of the result dataset. |
recordset | Recordset | The result recordset used to store spatial object information. |
Response example
Performing a GET request on http://localhost:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/datasets/JingjinTerrain@Jingjin/mathanalyst/6b7fe42a934c49fa93fe5b8b7541d2db_5fe86d5324c74d4e88344c29ca89f36f.rjson can retrieve detailed information on the gridMathResult.
{
"dataset": "test1@Jingjin",
"message": null,
"recordset": null,
"succeed": true
}
HEAD request
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the gridMathResult resource exists, or if the gridMathResult resource can be accessed by clients. It can also determine if the gridMathResult resource supports an output format <format> if performed on a URI with .<format> included.