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

NameTypeAccessDescription
geometryIGeometryr/wGets or sets geometry of the feature.
Cannot be , use Geometry.null to indicate missing geometry.

Methods

NameDescription
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 null.
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 null value.
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 null.
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:

ParameterTypeDescription
input_featureFeatureThe feature to copy values from.

Method: get_value(attribute_name)

 get_value(attribute_name) 

Gets the value of an attribute.

Parameters:

ParameterTypeDescription
attribute_namestringName of the attribute.

Returns

TypeDescription
objectValue 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 null.

Parameters:

ParameterTypeDescription
attribute_namestringName of the attribute.
default_valueobjectThe value to return if the attribute value is missing. Default value is .

Returns

TypeDescription
objectValue 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:

ParameterTypeDescription
valuesobject
default_valueobjectThe value to return if the attribute value is missing (unset). Default value is .
Consider to use ‘.Value’ for separating ‘unset’ and ‘’ values.

Returns

TypeDescription
intA 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:

ParameterTypeDescription
values_countintThe values count.
default_valueobjectThe value to return if the attribute value is missing (unset). Default value is .
Consider to use ‘.Value’ for separating ‘unset’ and ‘’ values.

Returns

TypeDescription
objectA 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:

ParameterTypeDescription
default_valueobjectThe value to return if the attribute value is missing (unset). Default value is .
Consider to use ‘.Value’ for separating ‘unset’ and ‘’ values.

Returns

TypeDescription
objectA 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:

ParameterTypeDescription
attribute_namestringName of the attribute.
separatorstringA string which is used to separate attribute name and index value of sequence.
countintCount of values to return (missed value fill as null)

Returns

TypeDescription
objectList 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 null value.

Parameters:

ParameterTypeDescription
attribute_namestringName of the attribute.

Returns

TypeDescription
boolif the attribute value is null; otherwise, .

Method: is_value_set(attribute_name)

 is_value_set(attribute_name) 

Checks if the attribute value is set in this feature.

Parameters:

ParameterTypeDescription
attribute_namestringName of the attribute.

Returns

TypeDescription
boolif value for the specified attribute is set; otherwise, .

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:

ParameterTypeDescription
attribute_namestringThe name of the attribute.
valueobjectThe value of the attribute.

Method: set_value_null(attribute_name)

 set_value_null(attribute_name) 

Sets value of the attribute to null.

Parameters:

ParameterTypeDescription
attribute_namestringThe 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:

ParameterTypeDescription
valuesobjectThe array of new values.

Returns

TypeDescription
intThe number of attribute values set.

Method: unset_value(attribute_name)

 unset_value(attribute_name) 

Removes the attribute value from this feature.

Parameters:

ParameterTypeDescription
attribute_namestringName of the attribute.