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.
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
FieldNamestring
Property Value
SpatialResolution
The spatial resolution in which to output geometry.
double SpatialResolution { get; set; }
Property Value
SubFields
string SubFields { get; set; }
Property Value
WhereClause
string WhereClause { get; set; }
Property Value
Methods
AddField(string)
void AddField(string subField)
Parameters
subFieldstring