Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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), memd (Map Engine MetaData) and spmd and spmd (SPatial engine MetaData) commands you can see what databases, map engines and spatial engines Weave are is connected to and find out information about the items within those connections.

When used by themselves these commands list the registered datasources, map engines and spatial engines.

Code Block

osgi> dbmd
Datasource
----------
datasource.dbf
datasource.manningham
datasource.sqlserver
dms.documents
storage
system.datasource


Code Block

osgi> memd
Map Engine
--------------
mapengine.edit
mapengine.overview
mapengine.raster
mapengine.raster.ags10
mapengine.raster.arcims
mapengine.selection
mapengine.selectionOld
mapengine.upload
mapengine.vector


Code Block

osgi> spmd
Spatial Engine
--------------
spatialengine.edit.shapefile
spatialengine.manningham
spatialengine.oracle
spatialengine.postgis
spatialengine.sqlserver
spatialengine.wfs

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 OSGi prompt.

dbmd - The database metadata command 

The dbmd command has the following sub-commands:

  • 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.

memd - The map engine metadata command

The memd command memd command has the following sub-commands:

  • list - Lists the available map engines
  • desc - Describes a map engine
  • toc - Generates a toc ToC model XML template based on a map engine
  • reset - Clears metadata for a map engine.

spmd - The spatial engine metadata command

The spmd command spmd command has the following 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.