FeaturesSequence Class
Summary: FeaturesSequence represents a set of vector features.
Module: aspose.gis
Full Name: aspose.gis.FeaturesSequence
Aspose.PSD Version: 25.9.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| attributes | BaseFeatureAttributeCollection | r | Gets the collection of custom attributes for features in this VectorLayer. |
| spatial_reference_system | SpatialReferenceSystem | r | Gets spatial reference system of this features sequence. |
Methods
| Name | Description |
|---|---|
| get_extent() | Gets a spatial extent of this layer. |
| save_to(destination_path, destination_driver) | Saves features sequence to layer. |
| save_to(destination_path, destination_driver) | Saves features sequence to layer. |
| save_to(destination_path, destination_driver, options) | Saves features sequence to layer. |
| save_to(destination_path, destination_driver, options) | Saves features sequence to layer. |
| split_to() | Split features by geometry type. |
| where_equal(attribute_name, value) | Selects features with attribute value equal to the provided value. |
| where_greater(attribute_name, value) | Selects features with attribute value greater than the provided value. |
| where_greater_or_equal(attribute_name, value) | Selects features with attribute value greater or equal to the provided value. |
| where_intersects(extent) | Filters features based on the extent. |
| where_intersects(geometry) | Filters features based on the provided geometry. |
| where_intersects(sequence) | Filters features based on the union of all geometries in other features sequence. |
| where_not_equal(attribute_name, value) | Selects features with attribute value not equal to the provided value. |
| where_not_null(attribute_name) | Selects features with attribute not equal to null. |
| where_null(attribute_name) | Selects features with attribute equal to null. |
| where_set(attribute_name) | Selects features with attribute set. |
| where_smaller(attribute_name, value) | Selects features with attribute value smaller than the provided value. |
| where_smaller_or_equal(attribute_name, value) | Selects features with attribute value smaller or equal to the provided value. |
| where_unset(attribute_name) | Selects features where specified attribute is not set. |
Method: get_extent()
get_extent()
Gets a spatial extent of this layer.
Returns
| Type | Description |
|---|---|
| Extent | A spatial extent of this layer. |
Method: save_to(destination_path, destination_driver)
save_to(destination_path, destination_driver)
Saves features sequence to layer.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination_path | string | Path to the output layer. |
| destination_driver | FileDriver | The format driver for the output layer. |
Method: save_to(destination_path, destination_driver)
save_to(destination_path, destination_driver)
Saves features sequence to layer.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination_path | AbstractPath | Path to the output layer. |
| destination_driver | FileDriver | The format driver for the output layer. |
Method: save_to(destination_path, destination_driver, options)
save_to(destination_path, destination_driver, options)
Saves features sequence to layer.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination_path | string | Path to the output layer. |
| destination_driver | FileDriver | The format driver for the output layer. |
| options | SavingOptions | Options for the saving procedure. |
Method: save_to(destination_path, destination_driver, options)
save_to(destination_path, destination_driver, options)
Saves features sequence to layer.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination_path | AbstractPath | Path to the output layer. |
| destination_driver | FileDriver | The format driver for the output layer. |
| options | SavingOptions | Options for the saving procedure. |
Method: split_to()
split_to()
Split features by geometry type.
Returns
| Type | Description |
|---|---|
| VectorLayer[] | Layers with the same type of geometry. |
Method: where_equal(attribute_name, value)
where_equal(attribute_name, value)
Selects features with attribute value equal to the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value equal to the provided value. |
Method: where_greater(attribute_name, value)
where_greater(attribute_name, value)
Selects features with attribute value greater than the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value greater than the provided value. |
Method: where_greater_or_equal(attribute_name, value)
where_greater_or_equal(attribute_name, value)
Selects features with attribute value greater or equal to the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value greater or equal to the provided value. |
Method: where_intersects(extent)
where_intersects(extent)
Filters features based on the extent.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| extent | Extent | Filter extent. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features that intersect with the provided geometry. |
Method: where_intersects(geometry)
where_intersects(geometry)
Filters features based on the provided geometry.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| geometry | IGeometry | Filter geometry. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features that intersect with the provided geometry. |
Method: where_intersects(sequence)
where_intersects(sequence)
Filters features based on the union of all geometries in other features sequence.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| sequence | FeaturesSequence | Other features sequence. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features that intersect with the union of all geometries in other features sequence. |
Method: where_not_equal(attribute_name, value)
where_not_equal(attribute_name, value)
Selects features with attribute value not equal to the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value not equal to the provided value. |
Method: where_not_null(attribute_name)
where_not_null(attribute_name)
Selects features with attribute not equal to null.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value not equal to null. |
Method: where_null(attribute_name)
where_null(attribute_name)
Selects features with attribute equal to null.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value equal to null. |
Method: where_set(attribute_name)
where_set(attribute_name)
Selects features with attribute set.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with set attribute value. |
Method: where_smaller(attribute_name, value)
where_smaller(attribute_name, value)
Selects features with attribute value smaller than the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value smaller than the provided value. |
Method: where_smaller_or_equal(attribute_name, value)
where_smaller_or_equal(attribute_name, value)
Selects features with attribute value smaller or equal to the provided value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
| value | object | Value to compare against. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with attribute value smaller or equal to the provided value. |
Method: where_unset(attribute_name)
where_unset(attribute_name)
Selects features where specified attribute is not set.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Attribute to filter by. |
Returns
| Type | Description |
|---|---|
| FeaturesSequence | Features with unset attribute value. |