`
skying8603
  • 浏览: 35871 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

ArcCatalog本地地图发布

阅读更多
1、  安装配置好ArcGIS server后,如果利用Maneger发布成功后,下面就可以使用ArcCatalog进行地图发布啦!

2、  首先启动ArcCatalog,在GIs servers中点击Add ArcGISServer,如图所示




3、  选择Manage GIS Services


  之后下一步,出现如下的对话框,成功与否就看这个对话框里面的填写的东西对不对。


说明:Server URL:为本机的服务地址,HTTP://localhost/arcgis/services,此地址如果在安装配置时,全部按照默认名称则不会出错。其中arcgis为实例名,在安装server时一般默认为arcgis(如果没修改)。

4、  输入完成后,点击Finish即可发布一个GIS Server,名称为:计算机名(admin)


5、  发布服务:可以在服务上右键,选择Add New Server或者在ArcMap等保存的文档上面右键Publish to Arcgis Server,进入如下对话框(服务上右键,选择Add New Server):

   

下一步后,选择Map document位置,其他可以使用默认配置,直至完成发布。完成后就可以在zy(admin)下面看到一个地图服务。


至此完成服务的发布!以下是对这一服务的使用!

6、  在服务上右键property

 

可以看到服务地址:

http://localhost/arcgis/services/zy/MapServer

其引用方法为:

http://localhost/ArcGIS/rest/services/zy/MapServer,可以将该地址复制到浏览器地址查看是否正确,成功后的页面为:

下面代码是在Server API for Flex中使用该服务:
    <esri:Map id="myMap">
    <esri:ArcGISDynamicMapServiceLayer url="http://localhost/ArcGIS/rest/services/zy/MapServer">
    </esri:ArcGISDynamicMapServiceLayer>
    </esri:Map>


Server API for JavaScript



<html>

<head>

  <title>ArcGIS JavaScript API: zy</title>

  <link href='/ArcGIS/rest/ESRI.ArcGIS.Rest.css' rel='stylesheet' type='text/css'>

<style type="text/css">

  @import "http://serverapi.arcgisonline.com/jsapi/arcgis/1/js/dojo/dijit/themes/tundra/tundra.css";

</style>

<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis?v=1"></script>

<script type="text/javascript">

  dojo.require("esri.map");

  var map;

  function Init() {

    map = new esri.Map("map");

    var layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost/ArcGIS/rest/services/zy/MapServer");

    map.addLayer(layer);

  }

  dojo.addOnLoad(Init);

</script>

</head>

<body class="tundra">

<table style="width:100%;height:100%;">

<tr height="5%">

<td>

<table id="navTable" width="100%">

<tbody>

<tr valign="top">

<td id="breadcrumbs">

ArcGIS JavaScript API: zy

</td>

<td align="right" id="help">

Built using the  <a href="http://resources.esri.com/arcgisserver/apis/javascript/arcgis">ArcGIS JavaScript API</a>

</td>

</tr>

</tbody>

</table>

</td>

</tr>

<tr height="95%">

<td>

<div id="map" style="position:relative;width:99%; height:99%;border:1px solid #000;"></div>

</td>

</tr>

</table>

</body>

</html>


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/wufeishimeng/archive/2009/03/09/3973295.aspx
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics