Quantcast
Channel: OpenCities Map Wiki
Viewing all articles
Browse latest Browse all 1284

- Generate workspace from command line

$
0
0
Current Revision posted to OpenCities Map Wiki by Dan Weston on 1/3/2023 4:05:59 AM

Interactive geospatial schema editing is done with the Geospatial Administrator (geospatialadmin.exe).   This executable is found in ...\MapEnterprise\bin installation folder, and when run from a command line, it can be used to open specified schemas:

 geospatialadmin.exe -l=full_file_specification.xml 

In the same BIN folder, you'll find  geospatialadminCL.exe which provides the ability to generate (export) workspaces from without a visible user interface. For convenience you can also make use of the recently opened file history in the "File" menu for quick access to previously opened schema files.

GeospatialAdminCL has a variety of options which can be reviewed with the following keyin:  GeospatialAdminCL /?

C:\Program Files (x86)\Bentley\MapEnterprise V8i\MapEnterprise\bin>GeospatialAdminCL /?
Usage: GeospatialAdminCL Options

Note: The order of the options are important!

For example, you must load a schema file before you can export it.

Options:
    -quiet - suppress all output
    -culture=cultureString - Set the culture/language
    -verbose=true|false
    -expand=true|false
    -executable
    -wr=c:\Bentley\Workspace
    -bsd=BaseSourceDir - Set the root location for source files that are to be copied 
    -ubsd=UnicodeBaseSourceDir - Set the root location for source files that are to be copied
    -l=filename.xml - Open known XML file
    -sa=GeospatialSchemaFile - Save to Bentley Geospatial Administrator XML File
    -ld - Import Database
       

     Common Options:
            connectionType=Access|Oracle;
            schemaName=NameOfSchema;
            scale=English|Metric|both;
            linkMethod=None|DatabaseLink|FeatureUUID;
            excludeColumn=MSLINK;
            excludeColumn=MAPID;
            excludeProperty=;
            workspace=gis;


        Access Options:
            file=fileName.mdb;


        Oracle Options:
            user=UserName;
            password=Password;
            database=DatabaseName;


    -ra=original=geo-example;new=geo_example - Replace specified attribute
    -rn=original=PoleText;new=PoleAnnotation - Replace specified node text
    -rp=original=geo-example;new=geo_example - Replace schema specific attributes
    -rw=original=geo-example;new=geoxfm_design - Replace schema specific attributes
    -sp=projectName - Set the Schema Name and First Workspace Name
    -sw1=projectName - Set the First Workspace Name
    -s=projectName - Set the Schema Name and First Workspace Name
    -pp=projectParentDir - Set the project parent path from workspace root (e.g. Projects\Examples\Geospatial)
    -xe - Export All Metadata and Workspace Files
    -xa - Export All Metadata
    -projectImport
    -advancedMenu
    -xmlencoding=unicode|utf8|utf7|ascii|default|bigendianunicode - Set encoding for exported XML files
    -xc=sourceFile;destinationFile - Copy file replacing shared strings

To use this utility to export the workspace metadata, the command would be:

C:\Program Files (x86)\Bentley\MapEnterprise V8i\MapEnterprise\bin>GeospatialAdminCL -l=d:\GSA\GSA_Intro.xml -xa

Where:

 -l defines the input XML schema file.

 -xa instructs Geospatial Administrator to export all metadata.

Tags: Export, Geospatial Administrator, workspace, Bentley Map

Viewing all articles
Browse latest Browse all 1284

Trending Articles