Interface IQueryFilter2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

Provides access to members that return and modify the output spatial resolution.

[Guid("E5B21410-17A6-11D4-9F4B-00C04F79927C")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IQueryFilter2 : IQueryFilter

Remarks

Note on ORDER BY and returning sorted data: To add ORDER BY and GROUP BY clauses to the attribute query the IQueryFilterDefinition::PostfixClause property can be used prior to creating the cursor. This will only work with ArcSDE and Personal Geodatabase.

[C#]

    public void IQueryFilter_SpatialResolution(IFeatureClass featureClass)
    {
        IQueryFilter2 queryFilter2 = new QueryFilterClass();

        //there is no with statement in C#
        queryFilter2.WhereClause = "STATE_NAME = 'California'";
        queryFilter2.SpatialResolution = 500;

        //Using a query filter to search a feature class:
        IFeatureCursor featureCursor = featureClass.Search(queryFilter2, false);
    }

Properties

OutputSpatialReference[string]

ISpatialReference OutputSpatialReference[string FieldName] { get; set; }

Parameters

FieldName string

Property Value

ISpatialReference

SpatialResolution

The spatial resolution in which to output geometry.

double SpatialResolution { get; set; }

Property Value

double

SubFields

string SubFields { get; set; }

Property Value

string

WhereClause

string WhereClause { get; set; }

Property Value

string

Methods

AddField(string)

void AddField(string subField)

Parameters

subField string