ArcGIS Server SOE(一):https://www.cnblogs.com/2008nmj/p/13896020.html
开发环境:Visual Studio 2012+ArcGIS Server 10.2
How to use
See How to use ArcGIS samples for help running the sample.
- Log in to ArcGIS Server Manager and click Site.
- Click Extensions.
- Click Add Extension.
- Click Browse and navigate to the .soe file, which by default is located at <ArcGIS DeveloperKit install location>\Samples\ArcObjectsNet\ServerSimpleRESTSOE\CSharp\SimpleRESTSOE\bin\Debug\NetSimpleRESTSOE.soe.
- Click OK.
- Start ArcMap and click File > Open.
- Browse to or type the location of USA.mxd, which is located in <ArcGIS Developer Kit Location>\Samples\data\Usa.
- Click File > Share As > Service.
- Click Save a service definition and click Next.
- Choose "No available connection" and check "Include data in service definition when publishing".
- Change the Server type to ArcGIS Server.
- Leave the Service name as USA and click Next.
- Choose a location where you want to save the service definition, then click Continue.
- Click Stage to create the service definition. In the success message, note the path of your service definition (.sd).
- Copy the USA.sd file to the machine running ArcGIS Server Manager.
- On the machine running ArcGIS Server Manager, log in to Manager and click Services.
- If necessary, click the Manage Services tab.
- Click Publish Service.
- Click Browse, browse to the location of USA.sd on the local machine, and click Open. Then click Next.
- Accept the default properties for the service by clicking Next.
- Click Publish. This creates the USA map service.
- On the Services tab of Manager, select the USA map service and select Capabilities. In the list of available capabilities, find ".Net Simple REST SOE" and check the box to enable it. If there is a list of available operations allowed, select all of them.
- Click the Save and Restart button to restart the service.
- Open a browser and navigate to the root REST services endpoint for ArcGIS Server (for example: http://<server name>:6080/arcgis/rest/services). You'll see a list of services, including the USA map service created in the previous section.
- Click the USA map service created in the previous section and scroll to the bottom of the map service description page. The section titled Supported Extensions includes the SOE NetSimpleRESTSOE. If you don't see the extension, you can attempt to hit its URL directly at http://<server name>:6080/arcgis/rest/services/<name of service>/MapServer/exts/NetSimpleRESTSOE.
- Click the SOE name. The REST SOE description page displays one subresource called layers and one operation called getLayerCountByType.
- Click the subresource called layers and view all layers in the host map service. Click the back button.
- Click the getLayerCountByType operation and type in either "feature", "raster" or "all" and click either the echo (GET) or echo (POST) button. The operation will return the number of layers of the type you specified.
参考1:https://wenku.baidu.com/view/09136f9b58fb770bf68a5518.html(强大的服务器端扩展SOE)
参考2:https://younghappy.blog.csdn.net/article/details/105431604(SOE入坑指南)
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2017-03-08 基于单数码相机的三维摄影测量理论与关键技术研究