This document is archived and information here might be outdated.  Recommended version.


IQueryFilter2.SpatialResolution Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (GeoDatabase)  

IQueryFilter2.SpatialResolution Property

The spatial resolution in which to output geometry.

[Visual Basic .NET]
Public Property SpatialResolution As Double
[C#]
public double SpatialResolution {get; set;}
[C++]
HRESULT get_SpatialResolution(
  System.Double* resolution
);
[C++]
HRESULT put_SpatialResolution(
  double resolution
);
[C++]

Parameters resolution [out, retval]
resolution is a parameter of type double* resolution [in]
resolution is a parameter of type double

Product Availability

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

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 ArcGIS feature service and ArcIMS data sources. It will be ignored on all other data sources.

[C#]

    public void IQueryFilter2_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);
    }

 

See Also

IQueryFilter2 Interface