calculateODMatrixJob


URI

<odlinemake_uri>/{jobID}[.<format>]

支持的方法

GETHEAD

父资源

calculateODMatrix

介绍

odlineMakeJob 资源表示一个OD分析作业。通过对 odlineMakeJob 资源执行 GET 请求,可以获取一个OD分析作业详细配置信息,可通过 ID 号({jobID}) 来获取。

支持的方法:

支持的表述格式:RJSON、JSON、HTML、XML。

资源层次

HTTP 请求方法

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

http://supermapiserver:8090/iserver/services/distributedanalyst/rest/v1/jobs/spatialanalyst/odlinemake/{jobID}.rjson

GET 请求

获取一个OD分析作业详细配置信息

响应结构

对 odlineMakeJob 资源执行 GET 请求,返回操作结果的结构如下:  

字段 类型 说明
id String 应用ID。
state SparkJobState 任务状态。包括执行状态、起止时间、耗时等。
setting SparkJobSetting 列举当前OD分析任务的详细信息。

响应示例

对 odlineMakeJob 资源执行 GET 请求:http://supermapiserver:8090/iserver/services/distributedanalyst/rest/v1/jobs/spatialanalyst/odlinemake/1d8b6cd3_28d7_4dcd_91ae_26b7dc47c68b.rjson ,则返回的rjson表述结果如下:

{

    "id": "1d8b6cd3_28d7_4dcd_91ae_26b7dc47c68b",

    "state": {

        "errorStackTrace": null,

        "endState": true,

        "startTime": 1531216211033,

        "endTime": 1531216266601,

        "publisherelapsedTime": 2406,

        "runState": "FINISHED",

        "errorMsg": null,

        "elapsedTime": 51435

    },

    "setting": {

        "output": {

            "outputPath": "F:\\01_package\\20180710\\supermap_iserver_910_16309_3357_win64_deploy\\webapps\\iserver\\processingResultData\\Analyst\\1d8b6cd3_28d7_4dcd_91ae_26b7dc47c68b\\odlinemake.smwu",

            "datasourcePath": "F:\\01_package\\20180710\\supermap_iserver_910_16309_3357_win64_deploy\\webapps\\iserver\\processingResultData\\Analyst\\1d8b6cd3_28d7_4dcd_91ae_26b7dc47c68b\\6ff6df02_d89f_46aa_9ec1_2861860624f9.udb",

            "datasetName": "analystResult",

            "type": "UDB"

        },

        "args": null,

        "input": {

            "datasetName": "jasdjknasfa_airport_world_airport_10",

            "numSlices": 36,

            "specField": null,

            "datasetInfo": {

                "fieldInfos": [

                    {

                        "isRequired": true,

                        "defaultValue": "",

                        "name": "SmID",

                        "caption": "SmID",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmSdriW",

                        "caption": "SmSdriW",

                        "type": "SINGLE",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmSdriN",

                        "caption": "SmSdriN",

                        "type": "SINGLE",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmSdriE",

                        "caption": "SmSdriE",

                        "type": "SINGLE",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmSdriS",

                        "caption": "SmSdriS",

                        "type": "SINGLE",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmUserID",

                        "caption": "SmUserID",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmArea",

                        "caption": "SmArea",

                        "type": "DOUBLE",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "0",

                        "name": "SmPerimeter",

                        "caption": "SmPerimeter",

                        "type": "DOUBLE",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "0",

                        "name": "SmGeometrySize",

                        "caption": "SmGeometrySize",

                        "type": "INT32",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": true,

                        "defaultValue": "-1",

                        "name": "SmGeoPosition",

                        "caption": "SmGeoPosition",

                        "type": "INT64",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": true

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "BufferRadiusLeft",

                        "caption": "BufferRadiusLeft",

                        "type": "DOUBLE",

                        "maxLength": 8,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "ISO_CC",

                        "caption": "ISO_CC",

                        "type": "WTEXT",

                        "maxLength": 4,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "NAME",

                        "caption": "NAME",

                        "type": "WTEXT",

                        "maxLength": 100,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "ICAO",

                        "caption": "ICAO",

                        "type": "WTEXT",

                        "maxLength": 15,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    },

                    {

                        "isRequired": false,

                        "defaultValue": "",

                        "name": "IATA",

                        "caption": "IATA",

                        "type": "WTEXT",

                        "maxLength": 15,

                        "isZeroLengthAllowed": true,

                        "isSystemField": false

                    }

                ],

                "epsgCode": 4326,

                "datasetName": "world_airport_10",

                "bounds": "Left=-177.4824915999242,Bottom=-54.93310798762423,Right=178.65367521567165,Top=78.33567866386099",

                "available": true,

                "name": "jasdjknasfa_airport_world_airport_10",

                "readOnly": false,

                "datasetType": "REGION",

                "type": "UDB",

                "url": "F:\\02_Data\\ODLineabcdefghij\\airport.udb"

            }

        },

        "DEFAULT_MASTER_ADRESS": "local[*] ",

        "referToken": "nWERkior5IQsS1tPlYHbw2rNOgDkYRSmMz0UowQFjG_1RKheUV6bXmpieWe9bPDy23mGKElIZB9HVFBN7YwH6w..",

        "mainClass": null,

        "sparkLogFile": null,

        "appName": null,

        "analyst": {

            "regionNameField": "NAME",

            "coordinateFields": [

                "x_s",

                "y_s",

                "x_e",

                "y_e"

            ],

            "datasetOD": "jasdjknasfa_airport_flight100m_OD22",

            "inputOD": "{\"type\":\"udb\",\"info\":[{\"server\":\"F:\\\\02_Data\\\\ODLineabcdefghij\\\\airport.udb\",\"datasetNames\":[\"flight100m_OD22\"]}]}",

            "summaryFields": null,

            "summaryStatisticModes": null

        },

        "contextSetting": null,

        "serviceInfo": {

            "targetDataPath": "F:\\01_package\\20180710\\supermap_iserver_910_16309_3357_win64_deploy\\webapps\\iserver\\processingResultData\\Analyst\\1d8b6cd3_28d7_4dcd_91ae_26b7dc47c68b\\odlinemake.smwu",

            "targetServiceInfos": [

                {

                    "serviceType": "RESTDATA",

                    "serviceAddress": "http://192.168.120.21:8090/iserver/services/data-odlinemake5/rest"

                },

                {

                    "serviceType": "RESTMAP",

                    "serviceAddress": "http://192.168.120.21:8090/iserver/services/map-odlinemake5/rest"

                }

            ]

        },

        "referServicesAddress": "http://192.168.120.21:8090/iserver"

    }

}

HEAD 请求

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

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

请参见