The geometry of the found feature.
[Visual Basic .NET] Public Property FeatureShape As IGeometry
[C#] public IGeometry FeatureShape {get; set;}
[C++]
HRESULT get_FeatureShape(
IGeometry** Shape
);
[C++]
HRESULT put_FeatureShape(
IGeometry* Shape
);
[C++]Parameters
Shape [out, retval]Shape is a parameter of type IGeometry
Shape [in]Shape is a parameter of type IGeometry
Product Availability
Remarks
FeatureShape contains the geometry of a feature returned from a MapServer Find query. This geometry have the same spatial reference system as the DefaultMapDescription. When ILayerResultOptions is not used, the FeatureShape property returns geometry. If the Shape field is invisible in the source map, the FeatureShape property may still contain geometry depending on how IncludeGeometry is set by the user.
In some cases, for performance reasons, you may want limit or adjust the geometry being returned. Use ILayerResultOptions to manage this. If IncludeGeometry is set to False, FeatureShape returns nothing. This should increase performance in cases where feature geometry is large. You can also choose to densify or generalize the geometry returned in FeatureShape using GeometryResultOptions. Densification is used to better support clients that do not support Arcs (e.g. Bezier, Circular etc.). Generalization reduces the amount of geography being sent across the network and should lead to better performance.
Densified or generalized geometry should only be used for navigation or display purpose, such as zooming to, flashing, or highlighting the selected feature. For spatial queries, GeometryResultOptions should not be used as it may returns unexpected results. For more information on please see IGeometry, Densify, and Generalize .