dbio module¶
Module for interfacing with the PostGIS database
-
dbio.
columnExists
(dbname, schemaname, tablename, colname)[source]¶ Tests whether a column exists in a table.
-
dbio.
createResampledCatalog
(dbname)[source]¶ Create catalog that holds information on resampled rasters.
-
dbio.
createResampledTables
(dbname, sname, tname, dt, tilesize, overwrite, squery='')[source]¶ Cache resampled tables by using materialized views.
-
dbio.
deleteRasters
(dbname, tablename, dt, squery='')[source]¶ If date already exists delete associated rasters before ingesting, and optionally constrain with subquery.
-
dbio.
ingest
(dbname, filename, dt, stname, resample=True, overwrite=True)[source]¶ Imports Geotif filename into database db.