/// <summary> /// Returns a cursor that can be used to update features selected by the specified /// </summary> /// <param name="filter"></param> /// <param name="useBuffering"></param> /// <returns></returns> public ZFeatureCursor Update(string where = "1=1", ZGeometry zGeo = null, SpatialRelEnum rel = SpatialRelEnum.esriSpatialRelIntersects, bool useBuffering = true) { ZFilter filter = new ZFilter(where, zGeo, featureClass.ShapeFieldName, rel); return(Update(filter, useBuffering)); }
/// <summary> /// Delete the Rows in the database selected by the specified query. /// </summary> /// <param name="where"></param> /// <param name="zGeo"></param> /// <param name="rel"></param> public bool Delete(string where = "1=1", ZGeometry zGeo = null, SpatialRelEnum rel = SpatialRelEnum.esriSpatialRelIntersects) { ZFilter filter = new ZFilter(where, zGeo, featureClass.ShapeFieldName, rel); return(Delete(filter)); }
public ZFilter(string where, ZGeometry zGeo = null, string fieldName = "SHAPE", SpatialRelEnum rel = SpatialRelEnum.esriSpatialRelIntersects) { if (zGeo == null) { filter = new QueryFilter(); } else { filter = new SpatialFilter(); ((SpatialFilter)filter).Geometry = zGeo.geometry; ((SpatialFilter)filter).GeometryField = fieldName; ((SpatialFilter)filter).SpatialRel = (esriSpatialRelEnum)rel; } if (!string.IsNullOrWhiteSpace(where)) { filter.WhereClause = where; } }