geometryThiessenPolygonResult


URI

<geometryThiessennResults_uri>/thiessenpolygon/{geometryThiessenPolygonResultID}[.<format>]

支持的方法

GETHEAD

父资源

geometryThiessenPolygonResults

介绍

生成泰森多边形的结果资源。

支持的方法:

支持的表述格式:rjson、json、html、xml、FlatGeobuf。

资源层次

HTTP 请求方法

对如下 URI 执行 HTTP 请求,以 rjson 输出格式为例加以说明,其中,supermapiserver 是服务器名。

http://supermapiserver:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/geometry/thiessenpolygon/n8zmmavh_36ccd0a04b3b40399a0627ee0fb6ff0f.rjson

GET 请求

返回生成泰森多边形结果资源的描述信息。

请求参数

对 geometryThiessenPolygonResult 资源执行 GET 请求,需要在 URI 中包含一些参数,如下:

名称 类型 含义
withIndex boolean 当使用 FlatGeobuf 表述时该参数可选。表示返回的表述为 FlatGeobuf 的结果是否包含空间索引,默认为true。

响应结构

字段 类型 说明
datasetName String 生成的泰森多边形数据集名称。
datasourceName String 数据源名称。
regions Point2D[] 分析得到的多边形面数组。

响应示例

对结果资源 http://localhost:8090/iserver/services/spatialanalyst-sample/restjsr/spatialanalyst/geometry/thiessenpolygon/n8zmmavh_36ccd0a04b3b40399a0627ee0fb6ff0f.rjson 执行 GET 请求,则返回的 rjson 表述如下:

{

  "datasetName": null,

  "datasourceName": null,

  "regions": [

    {

      "center": {

        "x": 13.009288861053733,

        "y": 75.06070342814624

      },

      "id": 1,

      "parts": [5],

      "points": [

        {

          "x": 14.503183555956955,

          "y": 50.121406856292495

        },

        {

          "x": 0,

          "y": 51.26497232273451

        },

        {

          "x": 0,

          "y": 100

        },

        {

          "x": 37.533971888257994,

          "y": 100

        },

        {

          "x": 14.503183555956955,

          "y": 50.121406856292495

        }

      ],

      "style": null,

      "type": "REGION"

    },

    {

      "center": {

        "x": 8.828889753975085,

        "y": 43.00578581747521

      },

      "id": 2,

      "parts": [5],

      "points": [

        {

          "x": 14.503183555956955,

          "y": 50.121406856292495

        },

        {

          "x": 17.855382285737367,

          "y": 42.560065825327555

        },

        {

          "x": 0,

          "y": 34.746599312215906

        },

        {

          "x": 0,

          "y": 51.26497232273451

        },

        {

          "x": 14.503183555956955,

          "y": 50.121406856292495

        }

      ],

      "style": null,

      "type": "REGION"

    },

    {

      "center": {

        "x": 36.867585791868564,

        "y": 64.73065755693459

      },

      "id": 3,

      "parts": [7],

      "points": [

        {

          "x": 57.67926506572063,

          "y": 34.76058721324454

        },

        {

          "x": 56.49452340771155,

          "y": 29.461315113869173

        },

        {

          "x": 17.855382285737367,

          "y": 42.560065825327555

        },

        {

          "x": 14.503183555956955,

          "y": 50.121406856292495

        },

        {

          "x": 37.533971888257994,

          "y": 100

        },

        {

          "x": 46.37524621152552,

          "y": 100

        },

        {

          "x": 57.67926506572063,

          "y": 34.76058721324454

        }

      ],

      "style": null,

      "type": "REGION"

    },

    {

      "center": {

        "x": 28.174712218881393,

        "y": 21.280032912663778

      },

      "id": 4,

      "parts": [6],

      "points": [

        {

          "x": 56.49452340771155,

          "y": 29.461315113869173

        },

        {

          "x": 55.97201283159079,

          "y": 0

        },

        {

          "x": 0,

          "y": 0

        },

        {

          "x": 0,

          "y": 34.746599312215906

        },

        {

          "x": 17.855382285737367,

          "y": 42.560065825327555

        },

        {

          "x": 56.49452340771155,

          "y": 29.461315113869173

        }

      ],

      "style": null,

      "type": "REGION"

    },

    {

      "center": {

        "x": 78.20909182508353,

        "y": 25.156962713135517

      },

      "id": 5,

      "parts": [6],

      "points": [

        {

          "x": 100,

          "y": 0

        },

        {

          "x": 55.97201283159079,

          "y": 0

        },

        {

          "x": 56.49452340771155,

          "y": 29.461315113869173

        },

        {

          "x": 57.67926506572063,

          "y": 34.76058721324454

        },

        {

          "x": 100,

          "y": 50.313925426271034

        },

        {

          "x": 100,

          "y": 0

        }

      ],

      "style": null,

      "type": "REGION"

    },

    {

      "center": {

        "x": 76.01362781931154,

        "y": 67.38029360662227

      },

      "id": 6,

      "parts": [5],

      "points": [

        {

          "x": 100,

          "y": 50.313925426271034

        },

        {

          "x": 57.67926506572063,

          "y": 34.76058721324454

        },

        {

          "x": 46.37524621152552,

          "y": 100

        },

        {

          "x": 100,

          "y": 100

        },

        {

          "x": 100,

          "y": 50.313925426271034

        }

      ],

      "style": null,

      "type": "REGION"

    }

  ]

}

HEAD 请求

返回跟 GET 请求一样的 HTTP 响应头,但是没有响应实体。可以在不必传输整个响应内容的情况下,获取包含在响应消息头中的元数据信息。元数据信息包括媒体类型,字符编码,压缩编码,实体内容长度等。

HEAD 请求可以用来判断 geometryThiessenPolygonResult 资源是否存在,或者客户端是否有权限访问 geometryThiessenPolygonResult 资源。通过对加.<format>的 URI 执行 HEAD 请求,还可以快速判断 geometryThiessenPolygonResult 资源是否支持<format>格式的表述。

请参见