Gets or sets the Geometry used in a spatial search.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: (


public Geometry Geometry { get; set; }
Visual Basic (Declaration)
Public Property Geometry As Geometry

Field Value

A Geometry object which is used in conjunction with the SpatialSearchType to search the geometries stored in each Row in the Table.


The code below create creates a Filter object using the default constructor, sets Geometry, SpatialSearchType, and SpatialColumnName properties then executes the query using the Table.Search method.
//Open ArcSDE geodatabase
Geodatabase gdb   = new Geodatabase(@"C:\Data\SQLServer.sde");

//Open FirePerimeters feature class 
Table fires = gdb.OpenTable("sde.DBO.FirePerimeters");

//Open Properties feature class
Table properties = gdb.OpenTable("sde.DBO.Properties");

//Get a fire polygon by its unique ID
Geometry firePoly = fires.GetRow(14).Geometry;

//Create the search criteria to find all properties affected by this fire
Filter searchCriteria = new Filter();
searchCriteria.Geometry = firePoly;
searchCriteria.SpatialSearchType = FilterSearchOptions.Intersects;

//Execute the query
RowCollection rows = properties.Search(searchCriteria);
'Open ArcSDE geodatabase
Dim gdb As Geodatabase = New Geodatabase("C:\Data\SQLServer.sde")

'Open FirePerimeters feature class 
Dim fires As Table = gdb.OpenTable("sde.DBO.FirePerimeters")

'Open Properties feature class
Dim properties As Table = gdb.OpenTable("sde.DBO.Properties")

'Get a fire polygon by its unique ID
Dim firePoly As Geometry = fires.GetRow(14).Geometry

'Create the search criteria to find all properties affected by this fire
Dim searchCriteria As Filter = New Filter()
searchCriteria.Geometry = firePoly
searchCriteria.SpatialSearchType = FilterSearchOptions.Intersects

'Execute the query
Dim rows As RowCollection = properties.Search(searchCriteria)

See Also