Feature Class
Summary: A geographic feature composed of a geometry and user-defined attributes.
Module: aspose.gis
Full Name: aspose.gis.Feature
Aspose.PSD Version: 25.9.0
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| geometry | IGeometry | r/w | Gets or sets geometry of the feature. Cannot be |
Methods
| Name | Description |
|---|---|
| copy_values(input_feature) | Copies values of attributes from another feature. |
| get_value(attribute_name) | Gets the value of an attribute. |
| get_value_or_default(attribute_name, default_value) | Gets the value of an attribute, or FeatureAttribute.default_value if the value is unset or |
| get_values(values, default_value) | Returns the values for all the attributes in an array. |
| get_values(values_count, default_value) | Returns the values for all the attributes in an array. |
| get_values_dump(default_value) | Returns the values for all the attributes in an array. Consider to use Aspose.Gis.Feature.GetValues(int,System.Object) method to avoid additional memory allocation. |
| get_values_list(attribute_name, separator, count) | Gets the values list. Non-generic analog of List T GetValuesList |
| is_value_null(attribute_name) | Determines whether the specified attribute has been explicitly set to |
| is_value_set(attribute_name) | Checks if the attribute value is set in this feature. |
| set_value(attribute_name, value) | Sets the value. Non-generic analog of void SetValue (string attributeName, T value) |
| set_value_null(attribute_name) | Sets value of the attribute to |
| set_values(values) | Sets new values for all of the attributes. Also consider to use Feature.copy_values(input_feature) method to streamline setting values in one call. |
| unset_value(attribute_name) | Removes the attribute value from this feature. |
Method: copy_values(input_feature)
copy_values(input_feature)
Copies values of attributes from another feature.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| input_feature | Feature | The feature to copy values from. |
Method: get_value(attribute_name)
get_value(attribute_name)
Gets the value of an attribute.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |
Returns
| Type | Description |
|---|---|
| object | Value of the attribute. |
Method: get_value_or_default(attribute_name, default_value)
get_value_or_default(attribute_name, default_value)
Gets the value of an attribute, or FeatureAttribute.default_value if the value is unset or
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |
| default_value | object | The value to return if the attribute value is missing. Default value is |
Returns
| Type | Description |
|---|---|
| object | Value of the attribute. |
Method: get_values(values, default_value)
get_values(values, default_value)
Returns the values for all the attributes in an array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| values | object | |
| default_value | object | The value to return if the attribute value is missing (unset). Default value is Consider to use ‘.Value’ for separating ‘unset’ and ‘ |
Returns
| Type | Description |
|---|---|
| int | A number of attributes copied. |
Method: get_values(values_count, default_value)
get_values(values_count, default_value)
Returns the values for all the attributes in an array.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| values_count | int | The values count. |
| default_value | object | The value to return if the attribute value is missing (unset). Default value is Consider to use ‘.Value’ for separating ‘unset’ and ‘ |
Returns
| Type | Description |
|---|---|
| object | A number of attributes copied. |
Method: get_values_dump(default_value)
get_values_dump(default_value)
Returns the values for all the attributes in an array.
Consider to use Aspose.Gis.Feature.GetValues(int,System.Object) method to avoid additional memory allocation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| default_value | object | The value to return if the attribute value is missing (unset). Default value is Consider to use ‘.Value’ for separating ‘unset’ and ‘ |
Returns
| Type | Description |
|---|---|
| object | A new array into which to copy the attributes values. |
Method: get_values_list(attribute_name, separator, count)
get_values_list(attribute_name, separator, count)
Gets the values list. Non-generic analog of List T GetValuesList
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |
| separator | string | A string which is used to separate attribute name and index value of sequence. |
| count | int | Count of values to return (missed value fill as null) |
Returns
| Type | Description |
|---|---|
| object | List of values of the attributes which names different by sequence index value. |
Method: is_value_null(attribute_name)
is_value_null(attribute_name)
Determines whether the specified attribute has been explicitly set to
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |
Returns
| Type | Description |
|---|---|
| bool |
Method: is_value_set(attribute_name)
is_value_set(attribute_name)
Checks if the attribute value is set in this feature.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |
Returns
| Type | Description |
|---|---|
| bool |
Method: set_value(attribute_name, value)
set_value(attribute_name, value)
Sets the value. Non-generic analog of void SetValue (string attributeName, T value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | The name of the attribute. |
| value | object | The value of the attribute. |
Method: set_value_null(attribute_name)
set_value_null(attribute_name)
Sets value of the attribute to
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | The name of the attribute. |
Method: set_values(values)
set_values(values)
Sets new values for all of the attributes.
Also consider to use Feature.copy_values(input_feature) method to streamline setting values in one call.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| values | object | The array of new values. |
Returns
| Type | Description |
|---|---|
| int | The number of attribute values set. |
Method: unset_value(attribute_name)
unset_value(attribute_name)
Removes the attribute value from this feature.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| attribute_name | string | Name of the attribute. |