arcgis杂记

本文记录了在使用ArcGIS过程中遇到的三个问题:1) mxd图层数据源修改后发布的错误,解决方案是删除缓存文件夹;2) Windows系统安装ArcGIS for Java后访问REST服务出现404错误,关闭防火墙可以解决;3) 修改计算机名后ArcGIS Server连接失败,需要更新Server.dat文件中的机器名。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.mxd图层数据源修改
打开ArcCatalog 找到mxd文件 右键单击mxd->set DataSource(s)
[img]http://dl.iteye.com/upload/attachment/306007/630c642c-153a-3290-a86c-9f444d1b764d.png[/img]

发布mxd出现如下错误
例如:sichuan.mxd
THe creation is failing with the following messages:
Create Replica failed.
The table was not found. [GDB_ReleaseInfo]
The table was not found. [GDB_Release]
The table was not found. [GDB_ReleaseInfo]
The table was not found. [GDB_Release]
The table was not found. [GDB_DBTune]
The table was not found. [GDB_ReleaseInfo]
The table was not found. [GDB_Release]
The table was not found. [GDB_ReleaseInfo]
The table was not found. [GDB_Release]
The table was not found. [GDB_DBTune]

原因:
删除x:\arcgisserver\arcgiscache下sichuan文件夹。

simplify polygon 简化多边形工具

mxdperfstat性能分析结果提示:
avoid projecting on the fly //避免动态投影
表示该图层没有设置投影


2.windows系统安装arcgis for java 10安装完毕后访问rest出现404错误,查看arcgis tomcat下日志:

严重: Unable to add server from file: server.properties
com.esri.rest.ags.AGSException: Error connecting to host
at com.esri.rest.ags.AGSServer.connect(AGSServer.java:79)
at com.esri.rest.ags.AGSConnector.testServer(AGSConnector.java:329)
at com.esri.rest.ags.AGSConnector.addServer(AGSConnector.java:98)
at com.esri.rest.ContextListener.initFromFile(ContextListener.java:114)
at com.esri.rest.ContextListener.contextInitialized(ContextListener.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.esri.arcgis.server.SOMNotAvailableException: Unable to activate {xyz001} SOMs in this cluster or no SOMs in this cluster.
at com.esri.arcgis.server.ServerCluster3.getServerConnection(Unknown Source)
at com.esri.rest.ags.AGSServer.connect(AGSServer.java:77)
... 19 more
2011-9-26 14:28:56 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class com.esri.rest.ContextListener
java.lang.Error: No server configured.
at com.esri.rest.ContextListener.contextInitialized(ContextListener.java:69)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2011-9-26 14:28:56 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-9-26 14:28:56 org.apache.catalina.core.StandardContext start
严重: Context [/arcgis/rest] startup failed due to previous errors


解决方法:

出现以上错误请先关闭windows防火墙。


3.安装arcgis server for java后修改计算机机器名后出现如下错误:

“Unable to connect to Manager Service”

地图虚拟访问目录地址还是以前的机器名

[img]http://dl.iteye.com/upload/attachment/561637/13568166-0f40-3358-aa3f-97d1561f4b51.jpg[/img]

修改之前的计算名:cist20110325104

修改后的计算机名:gis001

解决方法:

改了机器名以后需要修改配置文件,$ArcGIS_install_path/server/system/Server.dat

<Server>
<StartTime>2011-09-28T11:41:38</StartTime>

<SecurityEnabled>false</SecurityEnabled>
<ServerMachines>
<Machine>
<!--修改机器名为gis001-->
<Name>[color=red]cist20110325104[/color]</Name>
<Description></Description>
<Capacity>-1</Capacity>
</Machine>
</ServerMachines>
<ServerDirectories>
<Directory>
<Path>e:\arcgisserver\arcgiscache</Path>
<URL>http://cist20110325104:8399/arcgis/server/arcgiscache</URL>
<Description></Description>
<Type>cache</Type>
</Directory>
<Directory>
<Path>e:\arcgisserver\arcgisindex</Path>
<URL>http://cist20110325104:8399/arcgis/server/arcgisindex</URL>
<Description></Description>
<Type>index</Type>
</Directory>
<Directory>
<Path>e:\arcgisserver\arcgisjobs</Path>
<URL>http://cist20110325104:8399/arcgis/server/arcgisjobs</URL>
<Description></Description>
<Type>jobs</Type>
<Cleaning>sliding</Cleaning>
<MaxFileAge>21600</MaxFileAge>
</Directory>
<Directory>
<Path>e:\arcgisserver\arcgisoutput</Path>
<URL>http://cist20110325104:8399/arcgis/server/arcgisoutput</URL>
<Description></Description>
<Type>output</Type>
<Cleaning>sliding</Cleaning>
<MaxFileAge>600</MaxFileAge>
</Directory>
</ServerDirectories>
<Properties>
<LogPath>D:\Program Files\ArcGIS\Server10.0\server\user\log\</LogPath>
<LogSize>10</LogSize>
<LogLevel>2</LogLevel>
<ConfigurationStartTimeout>300</ConfigurationStartTimeout>
<EngineContextTimeout>600</EngineContextTimeout>
<InputDir>e:\arcgisserver\arcgisinput</InputDir>
</Properties>
<ErrorReportMode>2</ErrorReportMode>
<ErrorReportModeSOM>0</ErrorReportModeSOM>
<ErrorReportDir></ErrorReportDir>
<ErrorReportEnableUpload>false</ErrorReportEnableUpload>
<ErrorReportEmailAddress></ErrorReportEmailAddress>
<ErrorReportReportInterval>3600</ErrorReportReportInterval>
<ErrorReportCacheSize>10</ErrorReportCacheSize>
</Server>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值