ISpatialQueryDescriptor Class Reference
+ Inheritance diagram for ISpatialQueryDescriptor:

Public Member Functions

virtual QueryOrder::Type order () const =0
virtual bool hasKnnQuery () const =0
virtual KnnQueryDescriptorHandle getKnnQuery () const =0
virtual bool hasRegionQuery () const =0
virtual GeometryHandle getRegionQuery () const =0
virtual bool requiresSorting () const =0
virtual SortOrder::Type getSortingOrder () const =0
- Public Member Functions inherited from ObjectBase
virtual void Delete ()

Static Public Member Functions

static ISpatialQueryDescriptorNew (KnnQueryDescriptorHandle knnQuery, SortOrder::Type sort=SortOrder::unsorted)
 create a new spatial query descriptor object
static ISpatialQueryDescriptorNew (GeometryHandle regionQuery, SortOrder::Type sort=SortOrder::unsorted)
static ISpatialQueryDescriptorNew (KnnQueryDescriptorHandle knnQuery, GeometryHandle regionQuery, SortOrder::Type sort=SortOrder::unsorted)
 perform knn search and than region query (
static ISpatialQueryDescriptorNew (GeometryHandle regionQuery, KnnQueryDescriptorHandle knnQuery, SortOrder::Type sort=SortOrder::unsorted)
 perform region query and than knn search (

Member Function Documentation

create a new spatial query descriptor object

In case of knn queries the point are always sorted by the distance in ascending order (2d distances in case of 2d knn query and 3d distances in case of 3d knn query). Hence it is not necessary to speicify a sorting order parameter.

static ISpatialQueryDescriptor* New ( KnnQueryDescriptorHandle  knnQuery,
GeometryHandle  regionQuery,
SortOrder::Type  sort = SortOrder::unsorted 
)
static

perform knn search and than region query (

See Also
QueryOrder::knnFirst)
static ISpatialQueryDescriptor* New ( GeometryHandle  regionQuery,
KnnQueryDescriptorHandle  knnQuery,
SortOrder::Type  sort = SortOrder::unsorted 
)
static

perform region query and than knn search (

See Also
QueryOrder::regionQueryFirst)