HowTo: Convert the SOAP Geometry object type between GeometryServer and MapServer namespaces
【相关信息】
Article ID: 40758
Software:
ArcGIS Server (10.0 and prior) 10
ArcGIS for Server 10.1
Platforms:
Windows Windows 7
【问题描述】
Calling the Buffer operation of a Geometry Service using the ArcGIS Server SOAP API returns the output buffer geometry under the geometry service namespace. When passing this geometry into the Spatial Filter under the map service namespace, a compile time error occurs. The happens because SOAP requires proxies and value objects must have the same namespace to be used together. In order to avoid this error, it is necessary to convert this geometry type from Geometry Service namespace into Map Service namespace by using .NET System.Xml.Serialization.XmlSerializer.
Article ID: 40758
Software:
ArcGIS Server (10.0 and prior) 10
ArcGIS for Server 10.1
Platforms:
Windows Windows 7
【问题描述】
Calling the Buffer operation of a Geometry Service using the ArcGIS Server SOAP API returns the output buffer geometry under the geometry service namespace. When passing this geometry into the Spatial Filter under the map service namespace, a compile time error occurs. The happens because SOAP requires proxies and value objects must have the same namespace to be used together. In order to avoid this error, it is necessary to convert this geometry type from Geometry Service namespace into Map Service namespace by using .NET System.Xml.Serialization.XmlSerializer.
1 个回复
易智瑞技术支持
赞同来自:
1. Convert the Geometry object returned from the Buffer method to a PolygonN type object.
2. Serialize the value object into a SOAP string.
3. Read the SOAP string to deserialize to the same type, different namespace.
4. Apply the new PolygonN object into the SpatialFilter.
【其它相关参考】
【创建及修改时间】
Created: 12/19/2012
Last Modified: 1/3/2013
【原文链接】
http://support.esri.com/en/kno ... 40758
要回复问题请先登录或注册