The metadata commands
The Weave OSGi console provides three commands that provide information about things that Weave interacts with, namely data sources, spatial engines and map engines.
By using the dbmd (DataBase MetaData), spmd (SPatial engine MetaData) and memd (Map Engine MetaData) commands you can see what database, spatial engines and map engines Weave is connected to and find out information about the items within.
When used by themselves these commands list the registered datasources, spatial engines and map engines.
osgi> dbmd Datasource ---------- datasource.dbf datasource.manningham datasource.sqlserver dms.documents storage system.datasource
osgi> spmd Spatial Engine -------------- spatialengine.edit.shapefile spatialengine.manningham spatialengine.oracle spatialengine.postgis spatialengine.sqlserver spatialengine.wfs
osgi> memd Map Engine -------------- mapengine.edit mapengine.overview mapengine.raster mapengine.raster.ags10 mapengine.raster.arcims mapengine.selection mapengine.selectionOld mapengine.upload mapengine.vector
each metadata command also has sub-commands that perform specific actions, and the latest detailed syntax of each command can seen by typing 'help' at the osgi prompt.
The database metadata command - dbmd
The dbmd command has three sub-commands (there's rumours of a secret fourth command, but it's existence is shrouded in mystery).
- list - List all the available datasources (the default if no sub-command is given) or list the tables that are contained within a datasource
- desc - Describes a table contained within a datasource
- conf - Generate a data definition XML template based on a table
The spatial engine metadata command - spmd
The spmd command has five sub-commands.
- list - List all the available datasources (the default if no sub-command is given) or list the spatial layers that are contained within a spatial engine
- desc - Describe a spatial layer contained within a spatial engine
- crs - List the coordinate reference systems of each spatial layer or a single spatial layer in a spatial engine
- count - Counts the number of rows in a spatial layer
- conf - Produces sample configuration XML files for a spatial engine
The map engine metadata command - memd
The memd command has three sub-commands
- list - Lists the available map engines
- desc - Describes a map engine
- toc - Generates a toc model XML template based on a map engine