Previous topic


Next topic


This Page


The workspace.postgis module a workspace implementation based on the contents of a PostGIS database.

class geoscript.workspace.postgis.PostGIS

A subclass of Workspace for a PostGIS database. Layers of the workspace correspond to tables in the database.

db is the name of the database.

host is the optional host name. Defaults to ‘localhost’.

port is the optional port the database is listening on as an int. Defaults to 5432.

schema is the optional database schema to connect to. Defaults to ‘public’.

user is the optional username to connect as. Defaults to the current user.

passwd is the optional password to connect with.

estimated_extent is an optional flag that controls whether to use the PostGIS estimated_extent function when calculating bounds.