ESRI.ArcGIS.ADF.IMS
ReturnGeometries Property
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > QueryParameters Class : ReturnGeometries Property




Gets or sets a value to determine whether the geometries of each feature should be returned.

Syntax

Visual Basic (Declaration) 
Public Property ReturnGeometries As Boolean
Visual Basic (Usage)Copy Code
Dim instance As QueryParameters
Dim value As Boolean
 
instance.ReturnGeometries = value
 
value = instance.ReturnGeometries
C# 
public bool ReturnGeometries {get; set;}

Example

See FeatureTable for an example of requesting and handling geometry in a query request.

Remarks

If true, queries will include feature geometry in the FeatureTable returned from the query. The column in the FeatureTable will be named "#SHAPE#" and will have a DataType of ESRI.ArcGIS.ADF.IMS.Geometry.Geometry. See FeatureTable for an example of requesting and handling geometry in a query request.

The default of ReturnGeometries is false.

If the Filter.SubFields are set to individual fields, it may be necessary to add the string value "#SHAPE#" to the collection in order for geometry to be returned.

As of ArcIMS 9.2, the server can be configured to block return of feature geometry. If not certain whether geometry is blocked, you should check for the presence of geometry in the results before attempting to use the geometry column in the FeatureTable returned from the query. See the ArcIMS Help topic "Restricting geometry in responses" for details.

See Also

© 2010 All Rights Reserved.