Good day,
I'm trying to figure out how to write an SQL query for SpatialQueryFilter in WhereClause, so that when browsing individual elements, it excludes the currently read element from the selection.
private async Task DeletePolygonInPolygon(FeatureLayer polygonLayer)
{
var spatialQuery = new SpatialQueryFilter()
{ SpatialRelationship = SpatialRelationship.Contains };
spatialQuery.WhereClause = "";//Somehow write down to keep it current because it would match
polygonLayer.Select(spatialQuery);
object[] listOfPara = { polygonLayer };
await StartATask("management.DeleteFeatures", listOfPara);
}
Thank you
David