AnsweredAssumed Answered

ISpatialFilter.GeometryField Property - What specifically is it used for?

Question asked by deleted-user-VeC5jUIlNXtq on Feb 20, 2014
Latest reply on Feb 20, 2014 by deleted-user-VeC5jUIlNXtq
Hey all,

I'm setting up a function to "GetIntersectingImagery" which basically takes either a feature, or an envelope from ActiveView.Extent, and select all items from a raster catalog.

I copied a bit of code from a different program:

        With pSpatialFilter             .Geometry = pRoutingFile             .GeometryField = sGeometryField             .SpatialRel = esriSpatialRelEnum.esriSpatialRelIntersects         End With

Since I'm trying to set up a function to accept either a feature or an extent, I don't want to require the .GeometryField. Eventually .Geometry will hopefully accept either IEnvelope or IFeature.Shape and get rid of the need for the GeometryField.

The program still runs fine with a feature, even when the geometry field property is commented out, so my question is: what specifically does this property do and when should it be used?

Any information would be great!