Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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), memd (Map Engine MetaData) and spmd (SPatial engine MetaData) commands you can see what databases, map engines and spatial engines Weave are 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.

osgi> dbmd
Datasource
----------
datasource.dbf
datasource.manningham
datasource.sqlserver
dms.documents
storage
system.datasource
osgi> memd
Map Engine
--------------
mapengine.edit
mapengine.overview
mapengine.raster
mapengine.raster.ags10
mapengine.raster.arcims
mapengine.selection
mapengine.selectionOld
mapengine.upload
mapengine.vector
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 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 has the following 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.

spmd - The spatial engine metadata command

The 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.
  • No labels