|
Enfusion Script API
|
GeoShape's attribute set. More...
Public Member Functions | |
| proto external int | Count () |
| Total number of attributes in the collection. | |
| proto external string | GetName (int index) |
| Gets attribute's name. | |
| proto external GeoAttribType | GetType (int index) |
| Gets attribute's data type. | |
| proto external bool | IsAttribSet (int index) |
| True iff the attribute has a value (is not null). | |
| proto external int | GetInt (int index) |
| Gets an attribute's value as int. | |
| proto external float | GetFloat (int index) |
| Gets an attribute's value as float. | |
| proto external string | GetString (int index) |
| Gets an attribute's value as string. | |
| proto external int | GetIndexByName (string name) |
| Gets an attribute's index by its name. | |
| proto external bool | HasAttrib (string name) |
| proto external bool | IsAttribSetByName (string name) |
| True iff the attribute exists and has a value (is not null). | |
| proto external int | GetIntByName (string name) |
| Gets an attribute's value as int. | |
| proto external float | GetFloatByName (string name) |
| Gets an attribute's value as float. | |
| proto external string | GetStringByName (string name) |
| Gets an attribute's value as string. | |
Public Member Functions inherited from Managed | |
| proto external ref Managed | Clone () |
| Return shallow copy of object, or null if it is not allowed (not public constructor) | |
GeoShape's attribute set.
Note: For ESRI Shapefiles, all shapes in a Shapefile will have the same attributes, i.e. Count(), GetName(), GetType(), GetIndexByName() and HasAttrib() will always return the same value for all shapes in the file for a given arguments. THIS MAY NOT BE TRUE FOR OTHER FORMATS (e.g. GeoJSON).
| proto external int GeoAttribCollection.Count | ( | ) |
Total number of attributes in the collection.
Gets an attribute's value as float.
| index | attribute index [0 .. count-1] |
Gets an attribute's value as float.
Note: All *ByName(string) method versions are slower than their counterparts using attribute's index.
| name | attribute's name |
Gets an attribute's index by its name.
| name | attribute's name |
Gets an attribute's value as int.
| index | attribute index [0 .. count-1] |
Gets an attribute's value as int.
Note: All *ByName(string) method versions are slower than their counterparts using attribute's index.
| name | attribute's name |
Gets attribute's name.
| index | attribute index [0 .. count-1] |
Gets an attribute's value as string.
| index | attribute index [0 .. count-1] |
Gets an attribute's value as string.
Note: All *ByName(string) method versions are slower than their counterparts using attribute's index.
| name | attribute's name |
| proto external GeoAttribType GeoAttribCollection.GetType | ( | int | index | ) |
Gets attribute's data type.
Determines which Get*(int index) method should be use to read the value.
| index | attribute index [0 .. count-1] |
| name | attribute's name |
True iff the attribute has a value (is not null).
Note: This may not be reliable with ESRI shapefiles as they don't officially support null values.
| index | attribute index [0 .. count-1] |
True iff the attribute exists and has a value (is not null).
Note: All *ByName(string) method versions are slower than their counterparts using attribute's index.
| name | attribute's name |