boat
C++23 geospatial library
Loading...
Searching...
No Matches
boat::db::catalog Struct Referenceabstract

Uniform access to vector and raster data. More...

#include <catalog.hpp>

Inheritance diagram for boat::db::catalog:

Public Member Functions

virtual ~catalog ()=default
virtual std::vector< source > sources ()=0
 May include nested data sources.
virtual std::vector< layer > layers ()=0
virtual table get_table (std::string_view schema_name, std::string_view table_name)=0
virtual rowset select (table const &, page const &)=0
virtual rowset select (table const &, bbox const &)=0
virtual void insert (table const &, rowset const &, std::stop_token={})=0
 Cancellation may leave a partially inserted range.
virtual table create (table const &)=0
 Returns metadata reported by the backend after creation.
virtual void drop (std::string_view schema_name, std::string_view table_name)=0
virtual raster get_raster (layer const &)=0
virtual std::generator< std::pair< tile, gil::any_image > > read (raster, std::vector< tile >)=0
virtual void write (raster const &, rect const &, gil::any_image_view)=0
 rect coordinates are pixels.
virtual void set_autocommit (bool)=0
virtual void commit ()=0

Detailed Description

Uniform access to vector and raster data.

Constructor & Destructor Documentation

◆ ~catalog()

virtual boat::db::catalog::~catalog ( )
virtualdefault

Member Function Documentation

◆ commit()

virtual void boat::db::catalog::commit ( )
pure virtual

◆ create()

virtual table boat::db::catalog::create ( table const & )
pure virtual

Returns metadata reported by the backend after creation.

Implemented in boat::gdal::catalog, boat::slippy::catalog, and boat::sql::catalog.

◆ drop()

virtual void boat::db::catalog::drop ( std::string_view schema_name,
std::string_view table_name )
pure virtual

◆ get_raster()

virtual raster boat::db::catalog::get_raster ( layer const & )
pure virtual

◆ get_table()

virtual table boat::db::catalog::get_table ( std::string_view schema_name,
std::string_view table_name )
pure virtual

◆ insert()

virtual void boat::db::catalog::insert ( table const & ,
rowset const & ,
std::stop_token = {} )
pure virtual

Cancellation may leave a partially inserted range.

Implemented in boat::gdal::catalog, boat::slippy::catalog, and boat::sql::catalog.

◆ layers()

virtual std::vector< layer > boat::db::catalog::layers ( )
pure virtual

◆ read()

virtual std::generator< std::pair< tile, gil::any_image > > boat::db::catalog::read ( raster ,
std::vector< tile >  )
pure virtual

◆ select() [1/2]

virtual rowset boat::db::catalog::select ( table const & ,
bbox const &  )
pure virtual

◆ select() [2/2]

virtual rowset boat::db::catalog::select ( table const & ,
page const &  )
pure virtual

◆ set_autocommit()

virtual void boat::db::catalog::set_autocommit ( bool )
pure virtual

◆ sources()

virtual std::vector< source > boat::db::catalog::sources ( )
pure virtual

May include nested data sources.

Implemented in boat::gdal::catalog, boat::slippy::catalog, and boat::sql::catalog.

◆ write()

virtual void boat::db::catalog::write ( raster const & ,
rect const & ,
gil::any_image_view  )
pure virtual

rect coordinates are pixels.

Implemented in boat::gdal::catalog, boat::slippy::catalog, and boat::sql::catalog.


The documentation for this struct was generated from the following file: