zoukankan      html  css  js  c++  java
  • ArcGIS server Manager配置map服务

    ArcGIS Desktop是桌面级应用,所以两者并无关联,因此直接安装ArcGIS Server即可

    安装与配置方法网上较多

    配置map服务

    登陆:用户名是 计算机名称/在GIS post install中设置过的名称,默认为ArcGisWebServices

    如:zhxyu\arcgiswebservices

    说下较少提到的配置ArcGis Server Manager配置方法。

    1 进入Manage Services

    2 add new Services

    3 type选择Map Servicse-->next

    4 Map Document:这个是重点,需要共享地图(.mxd)所在的硬盘,并且以本机地址形式给出。如:\\ZHXYU\map\ArcGISMaps\World\World.mxd

    其他的默认---->next

    5 剩下的一路next到底。但是注意在Capabilities这一步的时候,会看到一个URL,记得复制下来(当然配置好以后也可以复制),形如:http://zhxyu/ArcGIS/services/zxyMap/MapServer,这个地址稍作修改就可以在浏览器中访问了,它代表了map服务的地址。

    6 修改5中的地址为:http://zhxyu/ArcGIS/rest/services/zxyMap/MapServer,看到了吧,多了一个rest,这样就能够直接访问rest服务了。

    修订权限

    本地用户和组--组--agsadmin--添加当前用户进来(假设用户名admin123

    VS开发

    添加控件,MapResourceManager--Edit Resource--添加--Information--definition-

    type:ArcGis Server Local
    Data source:zhxyu (机器名)
    Resource:自己选择service和dataframe

    或者

    type:ArcGis Server Internet
    Data source:http://IP/ArcGIS/services [注意这行没有rest]
    还有登陆server manager的用户名和密码
    Resource:自己选择service和dataframe

    添加控件,Map--MapResourceManager-MapResourceManager1

    项目上右键--Add ArcGis Indentity (重要,否则通过地址不能访问,只能调试下访问)

    username:admin123 (刚才添加的当前用户名)

    password:登陆系统密码

    Domain or Machine name:zhxyu (机器名)

    注:不能用vs的虚拟web服务器访问,加端口号会不出图,必须发布在iis 上(web服务器上),(我没有找到在虚拟服务器访问的方法)

  • 相关阅读:
    MySQL 存储过程
    linux iptables 相关设置
    Ubuntu iptables 设置
    Mac OS 10.12
    解决:cc1.exe: sorry, unimplemented: 64-bit mode not compiled in
    go get golang.org/x/net 安装失败的解决方法!
    Ubuntu16.04
    Ubuntu16.04
    Ubuntu16.04
    在Ubuntu16.04里面安装Gogland!
  • 原文地址:https://www.cnblogs.com/cuihongyu3503319/p/2178626.html
Copyright © 2011-2022 走看看