iServer 8C(2017)新增BaiduREST服务接口说明

作者:MR.

    SuperMap iServer 8C(2017),即iServer 8.1.0版本新增了很多服务接口类型,比如:ArcGISREST、BaiduREST、GoogleREST、OSMREST、TMSREST。
    这里就相对使用较多的BaiduREST接口的使用做下相关介绍。
###一、服务发布方式
    iServer管理页面快速发布:

发布一

    选择需要的服务类型:

发布二

**注意:**该服务类型首先需要SuperMap iServer分发服务许可模块,其次需要数据来源支持该服务类型。
另外:BaiduREST接口只支持墨卡托投影(EPSG Code:3857或相近投影)

    已有服务添加支持该服务接口,在服务组件配置:

服务组件一

或者:

服务组件二

###二、BaiduREST服务接口使用说明
    支持的操作及参数如下表:

百度资源iServer资源URL支持参数不支持的参数
-mapshttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest--
-maphttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest/China--
静态图staticimagehttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest/China/staticimage/v2width, height, center, zoom, scale, bboxak, mcode, copyright, markers, markerStyles, labels, labelStyles, paths, pathStyle
瓦片地图tilehttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest/China/tileqt, x, y, z, scalerstyles, udt, p
Placeplacehttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest/China/place/v2/searchquery(q), scope, coord_type, page_size, output, bounds(bds), location, radius®tag, filter, page_num, ak, sn, timestamp, region, city_limit
Place Suggestionsuggestionhttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/baidurest/China/place/v2/suggestionquery(q), location, outputregion, ak, sn, timestamp

另:googleREST服务接口支持的操作和参数

Google资源iServer资源URL支持参数不支持的参数
-mapshttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest--
-maphttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China--
静态地图staticmaphttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China/maps/api/staticmapcenter, zoom, size, format, scalemaptype, language, region, markers, path, visible, style, key, signature
瓦片地图tilehttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China/maps/vtx, y, z, scale, formatlyrs, gl, hl, s
附近地点搜索nearbysearchhttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China/maps/api/place/nearbysearch/{output}location, radius, rankby, keywordkey, language, minprice, maxprice, name, opennow, types, pagetoken, zagatselected
文本搜索textsearchhttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China/maps/api/place/textsearch/{output}query, location, radiuskey, language, minprice, maxprice, opennow, types, pagetoken, zagatselected
雷达搜索radarsearchhttp://192.168.17.22:9999/iserver/services/map-arcgis-China400/googlerest/China/maps/api/place/radarsearch/{output}location, radius, keywordkey, minprice, maxprice, name, opennow, types, zagatselected

注:{output}取值为json或xml

###三、BaiduREST服务接口使用示例

    以iServer自带的map-chian400为例,添加BaiduREST服务接口后,可以找到该REST资源的地图列表及地图描述信息:

BaiduREST1
BaiduREST2

    接下来以获取瓦片为例,验证该服务的可用性:

服务地址操作参数结果
http://192.168.15.90:8090/iserver/services/map-china400/baidurest/China/tileGETqt=tile&x=10000&y=10000&z=10&scaler=1256x256(像素)瓦片
http://192.168.15.90:8090/iserver/services/map-china400/baidurest/China/tileGETqt=tile&x=10000&y=10000&z=10&scaler=2512x512(像素)瓦片

    我们可以自己按照瓦片行列号、比例尺级别将瓦片拼接成一张地图,比如扩展一个图层,使之可以在SuperMap iClient for JavaScript上显示。不过既然是BaiduREST服务,那么自然可以在BaiduSDK里使用,可以参考Baidu Android SDk帮助文档:
http://lbsyun.baidu.com/index.php?title=androidsdk/guide/basicmap#.E7.93.A6.E7.89.87.E5.9B.BE.E5.B1.82

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值