symbolLib


URI

<symbolLibs_uri>/symbolLib[.<format>]

支持的方法

GETHEAD

父资源

symbolLibs

介绍

symbolLib资源用于获取某个具体标号库的信息。

支持的方法:

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

资源层次

HTTP 请求方法

对如下 URI 执行 HTTP 请求,以 json 输出格式为例加以说明,其中,supermapiserver 是服务器名,libID,即标号库ID。

http://supermapiserver:8090/iserver/services/plot-JY/rest/plot/symbolLibs/{symbolLibID}.json

GET 请求

获取具体某个标号库信息。

响应结构

名称 类型 含义
algoCount int 线面标号个数
libID int 标号库ID
symbolLibName String 标号库名称
classFication String 标号库密级
modifyTime String 修改时间
createTime String 创建时间
dotCount int 点标号个数
symbolCount int 线面标号个数
rootSymbolIconUrl String 标号图片存放地址
rootSymbolLibNode SymbolLibNode 标号库根节点
version String 标号库版本

 

响应示例

对symbolLib资源:http://supermapiserver:8090/iserver/services/plot-JY/rest/plot/symbolLibs/421.json,执行GET请求,则返回的json格式表述如下:

{

    "algoCount": 5,

    "creator": "",

    "libID": 421,

    "symbolLibName": "警用标号",

    "classFication": "",

    "modifyTime": "",

    "createTime": "",

    "dotCount": 137,

    "symbolCount": 142,

    "rootSymbolIconUrl": "http://localhost:8090/iserver/output/SymbolIcon/",

    "rootSymbolLibNode": {

        "symbolCode": 100000,

        "childNodeCount": 11,

        "libID": 421,

        "symbolNodeType": "SYMBOL_GROUP",

        "childNodes": [

              ......

             {

                "symbolCode": 100000,

                "childNodeCount": 5,

                "libID": 421,

                "symbolNodeType": "SYMBOL_GROUP",

                "childNodes": [

                    {

                        "symbolCode": 311,

                        "childNodeCount": 0,

                        "libID": 421,

                        "symbolNodeType": "SYMBOL_NODE",

                        "childNodes": [],

                        "symbolName": "进攻方向",

                        "symbolType": "SYMBOL_ALGO"

                    },

                    {

                        "symbolCode": 315,

                        "childNodeCount": 0,

                        "libID": 421,

                        "symbolNodeType": "SYMBOL_NODE",

                        "childNodes": [],

                        "symbolName": "突击",

                        "symbolType": "SYMBOL_ALGO"

                    },

                    {

                        "symbolCode": 317,

                        "childNodeCount": 0,

                        "libID": 421,

                        "symbolNodeType": "SYMBOL_NODE",

                        "childNodes": [],

                        "symbolName": "钳击",

                        "symbolType": "SYMBOL_ALGO"

                    },

                    {

                        "symbolCode": 318,

                        "childNodeCount": 0,

                        "libID": 421,

                        "symbolNodeType": "SYMBOL_NODE",

                        "childNodes": [],

                        "symbolName": "多箭头",

                        "symbolType": "SYMBOL_ALGO"

                    },

                    {

                        "symbolCode": 319,

                        "childNodeCount": 0,

                        "libID": 421,

                        "symbolNodeType": "SYMBOL_NODE",

                        "childNodes": [],

                        "symbolName": "堑壕",

                        "symbolType": "SYMBOL_ALGO"

                    }

                ],

                "symbolName": "线面符号",

                "symbolType": "SYMBOL_DOT"

            }

        ],

        "symbolName": "警用标号",

        "symbolType": "SYMBOL_DOT"

    },

    "version": ""

}

HEAD 请求

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

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

请参见