com.esri.arcgis.geodatabase
Interface IQueryFilter2

All Superinterfaces:
IQueryFilter, Serializable
All Known Implementing Classes:
QueryFilter, SpatialFilter

public interface IQueryFilter2
extends IQueryFilter, Serializable

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

Description

IQueryFilter2 adds the SpatialResolution method to the IQueryFilter interface. The IQueryFilter2 interface allows the specification of the desired spatial resolution as part of the query. It can be used a filter criteria for data sources that support the filtering of feature data based on spatial resolution. Features whose geometry extent is smaller than the specified spatial resolution will not be returned.

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.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux


Method Summary
 double getSpatialResolution()
          The spatial resolution in which to output geometry.
 void setSpatialResolution(double resolution)
          The spatial resolution in which to output geometry.
 
Methods inherited from interface com.esri.arcgis.geodatabase.IQueryFilter
addField, getOutputSpatialReference, getSubFields, getWhereClause, setOutputSpatialReferenceByRef, setSubFields, setWhereClause
 

Method Detail

getSpatialResolution

double getSpatialResolution()
                            throws IOException,
                                   AutomationException
The spatial resolution in which to output geometry.

Description

The SpatialResolution method provides generalization of shapes returned by a filter. The generalization is performed on the server to minimize network travel. A zero value is default and will result in no generalization. The higher the value, the greater the generalization performed. The value is specified in feature units and generally should be roughly the size of one display pixel (measured in feature units).

This method is only supported on ArcIMS data sources. It will be ignored on all other data sources.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The resolution
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSpatialResolution

void setSpatialResolution(double resolution)
                          throws IOException,
                                 AutomationException
The spatial resolution in which to output geometry.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
resolution - The resolution (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.