isogeo_pysdk.models.feature_attributes module¶
Isogeo API v1 - Model of FeatureAttributes entity
See: http://help.isogeo.com/api/complete/index.html
-
class
isogeo_pysdk.models.feature_attributes.
FeatureAttribute
(_id=None, alias=None, dataType=None, description=None, isAutoGenerated=None, isNullable=None, isReadOnly=None, hasElevation=None, hasMeasure=None, language=None, length=None, name=None, precision=None, propertyType=None, scale=None, spatialContext=None, parent_resource=None)¶ Bases:
object
FeatureAttributes are entities included as subresource into metadata.
Parameters: - _id (str) – UUID, defaults to None
- alias (str) – alias of the feature attribute, defaults to None
- dataType (str) – kind of field (varchar, integer32…), defaults to None
- description (str) – description of the feature attribute, defaults to None
- language (str) – language of the description, defaults to None
- length (int) – length of the values accepted in the attribute, defaults to None
- name (str) – attribute name, defaults to None
- precision (int) – value precision, defaults to None
- scale (int) – scale of display, defaults to None
Example: { "_id": string (uuid), "alias": string, "dataType": string, "description": string, "language": string, "length": int, "name": string, "precision": int, "scale": int, }
-
ATTR_CREA
= {'alias': <class 'str'>, 'dataType': <class 'str'>, 'description': <class 'str'>, 'hasElevation': <class 'bool'>, 'hasMeasure': <class 'bool'>, 'isAutoGenerated': <class 'bool'>, 'isNullable': <class 'bool'>, 'isReadOnly': <class 'bool'>, 'language': <class 'str'>, 'length': <class 'int'>, 'name': <class 'str'>, 'precision': <class 'int'>, 'propertyType': <class 'str'>, 'scale': <class 'int'>, 'spatialContext': <class 'str'>}¶
-
ATTR_MAP
= {}¶
-
ATTR_TYPES
= {'_id': <class 'str'>, 'alias': <class 'str'>, 'dataType': <class 'str'>, 'description': <class 'str'>, 'hasElevation': <class 'bool'>, 'hasMeasure': <class 'bool'>, 'isAutoGenerated': <class 'bool'>, 'isNullable': <class 'bool'>, 'isReadOnly': <class 'bool'>, 'language': <class 'str'>, 'length': <class 'int'>, 'name': <class 'str'>, 'parent_resource': <class 'str'>, 'precision': <class 'int'>, 'propertyType': <class 'str'>, 'scale': <class 'int'>, 'spatialContext': <class 'str'>}¶
-
alias
¶ Gets the alias of this FeatureAttribute.
Returns: The alias of this FeatureAttribute. Return type: str
-
dataType
¶ Gets the dataType of this FeatureAttribute.
Returns: The dataType of this FeatureAttribute. Return type: str
-
description
¶ Gets the description of this FeatureAttribute.
Returns: The description of this FeatureAttribute. Return type: str
-
hasElevation
¶ Gets the hasElevation of this FeatureAttribute.
Returns: The hasElevation of this FeatureAttribute. Return type: bool
-
hasMeasure
¶ Gets the hasMeasure of this FeatureAttribute.
Returns: The hasMeasure of this FeatureAttribute. Return type: bool
-
isAutoGenerated
¶ Gets the isAutoGenerated of this FeatureAttribute.
Returns: The isAutoGenerated of this FeatureAttribute. Return type: bool
-
isNullable
¶ Gets the isNullable of this FeatureAttribute.
Returns: The isNullable of this FeatureAttribute. Return type: bool
-
isReadOnly
¶ Gets the isReadOnly of this FeatureAttribute.
Returns: The isReadOnly of this FeatureAttribute. Return type: bool
-
language
¶ Gets the language of this FeatureAttribute.
Returns: The language of this FeatureAttribute. Return type: str
-
length
¶ Gets the length of this FeatureAttribute.
Returns: The length of this FeatureAttribute. Return type: int
-
name
¶ Gets the name of this FeatureAttribute.
Returns: The name of this FeatureAttribute. Return type: str
-
precision
¶ Gets the precision of this FeatureAttribute.
Returns: The precision of this FeatureAttribute. Return type: int
-
propertyType
¶ Gets the propertyType of this FeatureAttribute.
Returns: The propertyType of this FeatureAttribute. Return type: str
-
scale
¶ Gets the scale of this FeatureAttribute.
Returns: The scale of this FeatureAttribute. Return type: int
-
spatialContext
¶ Gets the spatialContext of this FeatureAttribute.
Returns: The spatialContext of this FeatureAttribute. Return type: str
-
to_dict
()¶ Returns the model properties as a dict.
Return type: dict
-
to_dict_creation
()¶ Returns the model properties as a dict structured for creation purpose (POST)
Return type: dict
-
to_str
()¶ Returns the string representation of the model.
Return type: str