This service is used to find spatial clusters in a data set

post

/spatialviewer/api/v1/clusteringJob

The service uses a distributed version of the K-means algorithm.

Request

Supported Media Types
  • application/json
Query Parameters
asynchronous
Type: boolean
if true the operation is runned asynchronously.
Body Parameter
Job details
Root Schema : ClusteringJobInfo
Type: object

Response

Supported Media Types
  • application/json
200 Response
Successful request.

The response contains the location of the results in HDFS.

When the job finish the results will be saved in the folder clustering_results contained in the SpatialViewer local working directory (see SpatialViewer configuration). The result can be used as data source of the Map API VectorLayer (OM.layer.VectorLayer) for display.
Body
Root Schema : ClusteringJobResponse
Type: object
202 Response
accepted asynchronous request.

The response contains the resource manager web application URL to track the job.

Additionally When the job finishes the results will be saved in the folder clustering_results contained in the SpatialViewer local working directory (see SpatialViewer configuration). The result can be used as data source of the Map API VectorLayer (OM.layer.VectorLayer) for display.
Body
Root Schema : AsyncClusteringJobResponse
Type: object