Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

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

$
0
0
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:

Code:

        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!

Thanks!

Viewing all articles
Browse latest Browse all 1374

Trending Articles