private void getData() { IMxDocument mxDoc = ArcMap.Document; IMap map = mxDoc.FocusMap; IActiveView av = (IActiveView)map; esriUtil.mapserviceutility mpServ = new esriUtil.mapserviceutility(); ISpatialFilter spFlt = new SpatialFilter(); spFlt.Geometry = (IGeometry)av.Extent; spFlt.SpatialRel = esriSpatialRelEnum.esriSpatialRelIndexIntersects; //MessageBox.Show(spFlt.Geometry.SpatialReference.Name+ "Extent Width:Height = " + spFlt.Geometry.Envelope.Width.ToString()+":"+spFlt.Geometry.Envelope.Height.ToString()); mpServ.getDbFtrClassesThatNeedUpdating(spFlt); }
private void getData() { IMxDocument mxDoc = ArcMap.Document; IMap map = mxDoc.FocusMap; IActiveView av = (IActiveView)map; esriUtil.mapserviceutility mpServ = new esriUtil.mapserviceutility(); ISpatialFilter spFlt = new SpatialFilter(); spFlt.Geometry = (IGeometry)av.Extent; spFlt.SpatialRel = esriSpatialRelEnum.esriSpatialRelIndexIntersects; //MessageBox.Show(spFlt.Geometry.SpatialReference.Name+ "Extent Width:Height = " + spFlt.Geometry.Envelope.Width.ToString()+":"+spFlt.Geometry.Envelope.Height.ToString()); mpServ.getDbFtrClassesThatNeedUpdating(spFlt); }