dicogis.models.metadataset module¶
Metadaset models.
- class dicogis.models.metadataset.MetaDatabaseFlat(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', layers=None)¶
Bases:
MetaDataset
Database table abstraction model.
- __init__(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', layers=None)¶
- property count_layers: int | None¶
Calculate the total number of layers.
- Returns:
total number of layers or None if no layers listed
- Return type:
int | None
- property cumulated_count_feature_attributes: int | None¶
Calculate the total number of attribute fields of every layer.
- Returns:
total number of attribute fields or None if no layers listed
- Return type:
int | None
- property cumulated_count_feature_objects: int | None¶
Calculate the total number of feature objects of every layer.
- Returns:
total number of feature objects or None if no layers listed
- Return type:
int | None
-
layers:
list
[MetaVectorDataset
] |None
= None¶
- class dicogis.models.metadataset.MetaDatabaseTable(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', feature_attributes=None, features_objects_count=0, geometry_type=None, database_connection=None, schema_name='public')¶
Bases:
MetaVectorDataset
Database table abstraction model.
- __init__(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', feature_attributes=None, features_objects_count=0, geometry_type=None, database_connection=None, schema_name='public')¶
-
database_connection:
DatabaseConnection
|None
= None¶
- class dicogis.models.metadataset.MetaDataset(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='')¶
Bases:
object
Dataset abstraction model.
- __init__(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='')¶
- property as_markdown_description: str¶
Concatenate some informations as a markdown description.
- Returns:
markdown description of the metadataset
-
dataset_type:
Optional
[Literal
['flat_cad'
,'flat_database'
,'flat_database_esri'
,'flat_raster'
,'flat_vector'
,'sgbd_postgis'
]] = None¶
- property path_as_str: str | None¶
Helper to have an universal path resolver independent of source type.
- Returns:
path or connection uri (without password)
- Return type:
str | None
- signature(hashable_attributes=('bands_count', 'crs_name', 'crs_type', 'dataset_type', 'envelope', 'features_objects_count', 'feature_attributes', 'format_gdal_long_name', 'geometry_type', 'name', 'path_as_str', 'schema_name', 'storage_type'))¶
Calculate a hash cumulating certain attributes values.
hashable_attributes: object attributes to include in hash.
- Return type:
- class dicogis.models.metadataset.MetaRasterDataset(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', bands_count=None, data_type=None, columns_count=None, rows_count=None, pixel_height=None, pixel_width=None, origin_x=None, origin_y=None, orientation=None, color_space=None, compression_rate=None)¶
Bases:
MetaDataset
Raster dataset abstraction model.
- __init__(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', bands_count=None, data_type=None, columns_count=None, rows_count=None, pixel_height=None, pixel_width=None, origin_x=None, origin_y=None, orientation=None, color_space=None, compression_rate=None)¶
- class dicogis.models.metadataset.MetaVectorDataset(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', feature_attributes=None, features_objects_count=0, geometry_type=None)¶
Bases:
MetaDataset
Vector dataset abstraction model.
- __init__(name=None, path=None, parent_folder_name=None, dataset_type=None, format_gdal_long_name=None, format_gdal_short_name=None, files_dependencies=None, storage_date_created=None, storage_date_updated=None, storage_size=None, storage_type=None, bbox=None, envelope=None, crs_name=None, crs_registry='EPSG', crs_registry_code=None, crs_type=None, is_3d=False, processing_succeeded=None, processing_error_msg='', processing_error_type='', feature_attributes=None, features_objects_count=0, geometry_type=None)¶
- property as_markdown_feature_attributes: str¶
Return feature attributes as a Markdown table.
- Returns:
string containing markdown table
- property count_feature_attributes: int | None¶
Return the length of ‘feature_attributes’ attribute.
- Returns:
number of attribute fields related to the layer or None if no feature atttributes listed
- Return type:
int | None
-
feature_attributes:
list
[AttributeField
] |None
= None¶