Feature¶
- class caris.bathy.db.Feature¶
Bases:
caris.FeatureDatabase Feature
- add_attachment((Feature)self, (str)file_name) None :¶
Upload a new attachment to the object.
- Parameters
file_name (
str) – The full path of the attachment to upload.
Adds a related
Featureto this Feature’s relationships.- Parameters
feature (
Feature) – The related feature to add.
- delete((Feature)self) None :¶
Deletes the feature.
- delete_attachment((Feature)self, (str)file_name) None :¶
Delete an attachment from the object.
- Parameters
file_name (
str) – The file name of the attachment to be deleted.
- download_attachment((Feature)self, (str)file_name, (str)dest_path) None :¶
Download an attachment from the object
Returns related
featuresof the given feature code.- Parameters
feature_code (str) – The
feature codeof the related features- Returns
A list of features of the given code that are related.
- Return type
list(
Feature)
- purge((Feature)self) None :¶
Marks the
Featureas purgeable.The database is configured with a “Purge” interval which executes a process to permanently purge these features from the database every time this interval elapses.
- remove_coverage((Feature)self) None :¶
New in version 5.4.1.
Remove the coverage from this Feature.
Removes a related
Featurefrom thisFeature'srelationships.- Parameters
feature (
Feature) – The related feature to remove.
- restore((Feature)self) None :¶
Restores the feature if it’s been deleted.
- upload_coverage((Feature)self[, (object)file_path=None[, (object)coverage=None[, (bool)update_geometry=True]]]) None :¶
Upload/Replace coverage for the Feature
- property attachments¶
The list of files attached to the Feature
- Type
list(
FileDescriptor)
- property attributes¶
The metadata of this Feature
- Type
- property crs¶
The coordinate reference system of the Feature
- property definition¶
The definition of the Feature
- Type
- property id¶
d9f195da-0b0c-11e7-8000-1866da47ee87)
- Type
- Type
The object id of the Feature (Example