Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • More
  • Cancel
OpenCities Map
OpenCities Map Wiki - Generate workspace from command line
    • Sign in
    • -OpenCities Map Wiki
      • -OpenCities Map
        • - End of Support for Bentley Map V8i (SELECTseries) products
        • +Release Information
        • +Installation Information
        • +Getting Started
        • +Administration
        • +General Topics
        • -Geospatial Administrator
          • - About Expand Variables
          • - Automatically connect to a graphical source
          • - Base Source Directory and Files Node
          • - Base Source Directory configuration
          • - Built in XFM properties
          • - Capture point feature coordinates with two examples
          • - Change property order using text editor
          • - Changing project and workset information
          • - Concatenate properties to populate new property using Property Watcher
          • - Create a geospatial schema
          • - Create a new schema recommended workflow
          • - Customize Command Manager with help from Excel
          • - Customize dialogs
          • - Customize Operations to show property based on criteria
          • - Date Time Property Show None to set dates to null
          • - Decimal Precision in Analyze XFM Feature Results
          • - Define form fields for data entry that are not part of feature properties
          • - Defining polygons with holes or islands
          • - Domain list initial values
          • - Domain list width (Calculate List Width)
          • - Domain list width (Form View width)
          • - Feature Collection and Collection Name Property
          • - Files node in User Workspace
          • - Fix Cannot access a disposed object error
          • - Generate workspace from command line
          • - Increment property values
          • - Multiline text for PBA
          • - Number  properties and setting decimal places for data entry
          • - Open schema via desktop shortcut
          • - Property Watcher on an empty value
          • - Property Watcher to compute values
          • - Property Watcher to read Col2 of a Domain List
          • - Property Watcher to set true or false
          • - Property Watcher to update a date property
          • - Property Watchers to drive domain lists
          • - Replace text during Shapefile importing
          • - Replace text in cells using PBA with two examples
          • - Rounding numbers
          • - Set Area and Perimeter to Read Only
          • - Shortcut arguments –ws , -wr, -wu
          • - Shortcut Target path
          • - Sort properties by Display Name
          • - Store Last Value to define property fields for new feature placement
          • - Tabbed dialogs
          • - Text and Text Node Justification
          • - Text Annotation Subfeature
          • - Text features from PBA
          • - Text size settings
          • - Update property when Split/Merge used
          • - UpdatedBy and UpdatedDate properties
          • - Using raster images as a graphical source
          • - Value Col Name vs Edit Col Name
          • - Workspace location V8i compared to CONNECT Edition
        • +Interoperability
        • +Spatial Databases
        • +Spatial Analysis
        • +3D Geospatial
        • +Geographic Coordinate Systems
        • +Troubleshooting
        • +Freeware - Utilities - Applications - Programs
        • +Advanced Map Finishing
      • OpenCities Map Ultimate for Finland CONNECT Edition x64 (SES)
      • OpenCities Map Ultimate for Finland CONNECT Edition - Suomi
      • Bentley Descartes
      • +Other Geospatial Products

     
     Questions about this article, topic, or product? Click here. 

    - Generate workspace from command line

    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.

    Finally, an interesting point is the CL in the executables name stands for command line.
    • Export
    • Geospatial Administrator
    • workspace
    • Bentley Map
    • Share
    • History
    • More
    • Cancel
    • Inga Morozoff Created by Bentley Colleague Inga Morozoff
    • When: Thu, Nov 30 2017 3:51 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Mar 9 2020 2:29 PM
    • Revisions: 5
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies