dicogis.listing.geodata_listing module

Look for geographic datasets.

dicogis.listing.geodata_listing.check_usable_pg_services(requested_pg_services)
Check if specified postgres services are actually referenced into the

pg_service.conf. Filters out services which are not present.

Parameters:

requested_pg_services (list[str]) – list of requested services names

Returns:

filtered list of services names

Return type:

list[str]

dicogis.listing.geodata_listing.find_geodata_files(start_folder)

List compatible geo-files stored into a folder structure.

Parameters:

start_folder (Path) – folder to start.

Return type:

tuple[int, list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str]]

Returns:

tuple[ int, list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], list[str], ]: tuple with number of folders parsed and list of paths by formats