spatialanalyst


URI

<root_uri>/spatialanalyst[.<format>]

With SuperMap iServer launched, the spatial analysis service can be accessed through the default URI for the corresponding REST service: http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst.

Supported methods

GET, HEAD

Parent resource

root

Child resources

datasets, geometry

Introduction

The spatialAnalyst resource is the root resource for spatial analysis functions. All interfaces supported by spatial analysis on the server of SuperMap iServer can be retrieved through performing a GET request on the spatialAnalyst resource.

Supported methods:

Supported output formats: rjson, json, html, xml.

GIS Services Resource Hierarchy

HTTP request methods

Below is an example of performing an HTTP request on a URI with rjson as the output format. supermapiserver in the URI is the name of the server.

http://supermapiserver:8090/server/services/spatialanalyst-sample/restjsr/spatialanalyst.rjson

GET request

Lists all the child resources supported by spatial analysis.

Response structure

A list of child resources is returned after a GET request is performed on the spatialAnalyst resource:  

Field Type Description

ChildResourceInfo

List<ChildResourceInfo>

Information about the child resources.

Example usage

Below is the returned representation in RJSON format after a GET request is performed on resource: http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst.rjson:

[

  {

    "name": "datasets",

    "path": "http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/datasets",

    "resourceConfigID": null,

    "resourceType": null,

    "supportedMediaTypes": null

  },

  {

    "name": "geometry",

    "path": "http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/geometry",

    "resourceConfigID": null,

    "resourceType": null,

    "supportedMediaTypes": null

  }

]

HEAD request

Returns the same HTTP response header as GET does, but no response entity is included. HEAD request can be used to get metadata from the response message header without transporting the entire response content. Metadata includes information about the media type, character encoding, compression encoding, the length of the entity content, etc.

HEAD request can be used to check if the spatialAnalyst resource exists, or if the resource can be accessed by clients. It can also determine if the spatialAnalyst resource supports an output format <format> if performed on a URI with .<format> included.

See