Versions Compared

Key

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

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

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

Code Block

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


Code Block

osgi> spmdmemd
SpatialMap Engine
--------------
spatialenginemapengine.edit.shapefile
spatialengine.manningham
spatialengine.oracle
spatialengine.postgis
spatialengine.sqlserver
spatialengine.wfs
mapengine.overview
mapengine.raster
mapengine.raster.ags10
mapengine.raster.arcims
mapengine.selection
mapengine.selectionOld
mapengine.upload
mapengine.vector


Code Block

osgi> memdspmd
MapSpatial Engine
--------------
mapenginespatialengine.edit
mapengine.overviewshapefile
mapenginespatialengine.rastermanningham
mapenginespatialengine.raster.ags10oracle
mapenginespatialengine.raster.arcimspostgis
mapenginespatialengine.selectionsqlserver
mapenginespatialengine.selectionOld
mapengine.upload
mapengine.vector

...

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 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
  • reset - Clears metadata for a map engine (only available in 2.5.26).

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

The map engine metadata command - memd

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.