LuciadCPillar C# 2026.1.02
Loading...
Searching...
No Matches
Luciad.Models.Features.FeatureQuery Class Referencesealed

A query specifies which objects you are interested in. More...

Inheritance diagram for Luciad.Models.Features.FeatureQuery:

Classes

class  Builder
 Builder to create a FeatureQuery. More...
class  SortOperator
 SortOperator class contains a list of properties that must be taken into account for sorting. More...
class  SortProperty
 SortProperty class defines the property name and the sort order for the SortOperator. More...

Public Types

enum  SortOrder { Asc , Desc }
 Sort order. More...

Public Member Functions

Luciad.Models.Features.FeatureQuery.Builder AsBuilder ()
 Returns a builder initialized with this query's settings, to create a modified copy of this query.
void Dispose ()

Static Public Member Functions

static Luciad.Models.Features.FeatureQuery All ()
 This method is a convenience factory method that creates a query to retrieve all features.
static Luciad.Models.Features.FeatureQuery.Builder NewBuilder ()
 Returns the builder class for creation of the feature query.

Properties

Luciad.Geometries.Bounds Bounds [get]
 The bounds the queried features must interact with.
Luciad.Concurrent.CancellationToken CancellationToken [get]
 The query cancellation token.
Luciad.Expressions.Expression Condition [get]
 The condition that should be applied on the query, if any.
System.Collections.Generic.IList< ulong > FeatureIds [get]
 The features to retrieve by id.
uint? Limit [get]
 The maximum number of elements to query, if any.
uint? ScaleLevelIndex [get]
 The scale level index.
Luciad.Models.Features.FeatureQuery.SortOperator SortBy [get]
 The sorting order that should be applied on the query, if any.
uint? TooManyFeaturesCount [get]
 The maximum number of features that can be handled by IFeatureModel.Query without terminating the query.

Detailed Description

A query specifies which objects you are interested in.

It is a combination of:

All of these are optional.

The query implementation must use all settings on the Query instance. For example, if both a bounds and a condition are specified, the query implementation must take both the bounds and the condition into account.

Create an empty Query to get all objects. When both a condition and feature ids are provided in the Query the objects need to fulfill both.

Member Enumeration Documentation

◆ SortOrder

Sort order.

Enumerator
Asc 

Ascending sort order.

Desc 

Descending sort order.

Member Function Documentation

◆ All()

Luciad.Models.Features.FeatureQuery Luciad.Models.Features.FeatureQuery.All ( )
inlinestatic

This method is a convenience factory method that creates a query to retrieve all features.

Returns
a query to retrieve all features.

◆ AsBuilder()

Luciad.Models.Features.FeatureQuery.Builder Luciad.Models.Features.FeatureQuery.AsBuilder ( )
inline

Returns a builder initialized with this query's settings, to create a modified copy of this query.

Returns
a builder initialized with this query's settings.
Since
2026.1

◆ Dispose()

void Luciad.Models.Features.FeatureQuery.Dispose ( )
inline

◆ NewBuilder()

Luciad.Models.Features.FeatureQuery.Builder Luciad.Models.Features.FeatureQuery.NewBuilder ( )
inlinestatic

Returns the builder class for creation of the feature query.

Returns
the builder class for creation of the feature query.

Property Documentation

◆ Bounds

Luciad.Geometries.Bounds Luciad.Models.Features.FeatureQuery.Bounds
get

The bounds the queried features must interact with.

[get]

Returns the bounds the queried features must interact with.

◆ CancellationToken

Luciad.Concurrent.CancellationToken Luciad.Models.Features.FeatureQuery.CancellationToken
get

The query cancellation token.

[get]

Returns the query cancellation token.

Since
2026.0 [get]

◆ Condition

Luciad.Expressions.Expression Luciad.Models.Features.FeatureQuery.Condition
get

The condition that should be applied on the query, if any.

[get]

Returns the condition that should be applied on the query, if any.

◆ FeatureIds

System.Collections.Generic.IList<ulong> Luciad.Models.Features.FeatureQuery.FeatureIds
get

The features to retrieve by id.

[get]

Returns the features to retrieve by id.

◆ Limit

uint? Luciad.Models.Features.FeatureQuery.Limit
get

The maximum number of elements to query, if any.

[get]

Returns the maximum number of elements to query, if any.

◆ ScaleLevelIndex

uint? Luciad.Models.Features.FeatureQuery.ScaleLevelIndex
get

The scale level index.

[get]

Returns the scale level index. If null, the model should return features from all scale levels that match the query.

If you configure a FeatureLayer to have scale breaks using a FeatureQueryConfiguration, the layer may include the index of the chosen scale level when querying your model.

Since
2025.0.04 [get]

◆ SortBy

Luciad.Models.Features.FeatureQuery.SortOperator Luciad.Models.Features.FeatureQuery.SortBy
get

The sorting order that should be applied on the query, if any.

[get]

Returns the sorting order that should be applied on the query, if any.

◆ TooManyFeaturesCount

uint? Luciad.Models.Features.FeatureQuery.TooManyFeaturesCount
get

The maximum number of features that can be handled by IFeatureModel.Query without terminating the query.

[get]

Returns the maximum number of features that can be handled by IFeatureModel.Query without terminating the query. If the query corresponds to more features than this number, the model should abort the query as soon as possible, preferably at the start of the IFeatureModel.Query call and without returning any features. Before terminating, the feature model should call IFeatureQueryCallback.HandleTermination with a FeatureQueryTermination that has as reason TooManyFeatures.

Since
2026.0 [get]