arcgis杂记

1.mxd图层数据源修改
打开ArcCatalog 找到mxd文件 右键单击mxd->set DataSource(s)


发布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”

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



修改之前的计算名:cist20110325104

修改后的计算机名:gis001

解决方法:

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

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

<SecurityEnabled>false</SecurityEnabled>
<ServerMachines>
<Machine>
<!--修改机器名为gis001-->
                        <Name> cist20110325104</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>

猜你喜欢

转载自xuershan.iteye.com/blog/759272