深入理解游标Cursors,实现数据的快速查找,插入,删除,更新
1、 查找数据Search Cursors //by yl landgis@126.com yanleigis@21cn.com 2008.7.7
[C#]
//Create an envelope for the lower right portion of data
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(508786, 681196, 513033, 684341);
// create a spatial query filter
ISpatialFilter spatialFilter = new SpatialFilterClass();
// specify the geometry to query with
spatialFilter.Geometry = envelope;
// specify what the geometry field is called on the Feature Class that we will querying against
String shpFld = featureClass.ShapeFieldName;
spatialFilter.GeometryField = shpFld;