Skip to main content

discover

Function discover 

Source
pub fn discover(data_dir: &Path) -> Result<Vec<SourceFile>, GeolithError>
Expand description

Discover all Overture Parquet files in a data directory.

Expects the standard Overture directory layout:

data/
  theme=buildings/
    type=building/
      part-00000.parquet
      ...
  theme=base/
    type=land/
      ...

Returns a list of SourceFiles matched to their output layers. Files that don’t match any route are skipped with a warning.

§Errors

GeolithError::SourceDiscovery when data_dir is not a directory, and GeolithError::Io when a directory or one of its entries cannot be read.