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

- Generate workspace from command line

$
0
0
Revision 1 posted to Bentley Map - Wiki by Inga Morozoff on 11/30/2017 8:51:45 PM

Rather than exporting the workspace metadata from the Geospatial Administrator, you can do it the command line using GeospatialAdminCL executable.

Found in the installation Bin folder, 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

Tags: Export, Geospatial Administrator, workspace, Bentley Map

Viewing all articles
Browse latest Browse all 1284

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>