dicogis.georeaders.read_vector_flat_dataset module

Name: InfosSHP Purpose: Use GDAL/OGR library to extract informations about

geographic data. It permits a more friendly use as submodule.

Author: Julien Moura (https://github.com/Guts/)

class dicogis.georeaders.read_vector_flat_dataset.ReadVectorFlatDataset(dataset_type='flat_vector')

Bases: GeoReaderBase

Reader for geographic dataset stored as flat vector files.

__init__(dataset_type='flat_vector')

Class constructor.

get_infos_layer(in_layer, metadataset)
infos_dataset(source_path, metadataset=None, fallback_format=None)

Get metadata from dataset.

Parameters:
  • source_path (Union[Path, str]) – path to the dataset file.

  • metadataset (Optional[MetaVectorDataset], optional) – metadataset object to fill. Defaults to None.

  • fallback_format (Optional[str], optional) – format name used as fallback if GDAL fails to open the dataset. Defaults to None.

Returns:

metadataset object

Return type:

MetaVectorDataset