ExportToViewerConfig tool

From Geoikia-english

Jump to: navigation, search

If you are working with various environments (for instance a test environment and a production environment), then you can use the ExportToViewerConfig tool, to export the Geoide Viewer configuration from one environment to the other.

The ExportToViewerConfig tool makes it possible to save a created context as XML-files. These XML-files are transferred by the ExportToViewerConfig tool to another environment (e.g. the production environment), discarding the Geoide Author. In this way you can separate the management of a context through the Geoide Author (test environment) from the usage of the context by ordinary users (production environment without Geoide Author).

The ExportToViewerConfig tool (ExportToViewerConfig.bat) is part of the geoide-utilities.zip, which also comes with the installation set.

Steps

1. The "ExportToViewerConfig".bat" uses an "export.properties" file. Open this file in a text editor.

2. Fill the file with the right parameters. Next parameters are available:

  • contextURL: the URL to access the context to be exported (the URL is the same as used by the Geoide Viewer);
  • guiconfigURL: the URL to access the guiconfig to be exported (as used by the Geoide Viewer);
  • oldURIs: a comma separated list of replacing URI's (e.g. test environment);
  • newURIs: a comma separated list of replacing URI's (e.g. production environment);
  • contextName: this name will be used as basis for the names of the XML files. (no change needed).
  • guiconfigName: this name will be used as basis for the names of the guiconfig (no change needed).
  • storeDirectory: This is the directory where the ExportToViewerConfig tool places the static XML files
  • RefDirectory: keep empty.
EXAMPLE application "Agroportal"

contextURL=http://rijn:9080/geoide-x-gdi/GIContext?name=agroportal
guiconfigURL=http://rijn:9080/geoide-x-gdi/client/GUIConfig.jsp?name=agroportal
oldURIs=http://rijn:9080
newURIs=http://rijn:8081
contextName=GIContext
guiconfigName=GIClientConfig
storeDirectory=dist/static-config
refDirectory=

3. If heeded adjust proxy settings in the ExportToViewerConfig.bat file.

4. Export the context and GIClientConfig:

  • Open a command window en start the application:
  • ExportToViewerConfig.bat -properties [properties-file]
EXAMPLE

ExportToViewerConfig.bat -properties export.properties

5. Move the XML-files from the store directory to the other environment (e.g. production environment).

6. Be sure that the Geoide Viewer starts with static XML's (you may need to delete browser cache first).


Main Page > System and Application Management > ExportToViewerConfig tool

Personal tools