Batch Import and Export Custom Coordinate Systems (SonarWiz 7.10.00 and newer)

CsmImportExport.exe is a command line program included with SonarWiz designed for batch importing and exporting custom coordinate system files from the SonarWiz geodesy database. The tool was originally designed to be run by the SonarWiz installer during upgrade operations, but it is useful for moving large sets of custom CRS files between installations.

Using SonarWiz 7.09.04 or older?

Please see

Usage:

CsmImportExport.exe [E|I] [Path]

E - export all custom coordinate systems to path
I - import all custom coordinate systems from path
[Path] - path to SonarWiz Geodesy directory, quoted if necessary, with no trailing backslash.

Instructions

To export all custom coordinate systems from your current geodesy database

  1. Open the Windows Command Prompt by clicking Start | and typing “Command Prompt”

  2. Change to the SonarWiz directory:
    cd c:\Program Files\Chesapeake Technology\SonarWiz 7\

  3. Execute the export command.
    CsmImportExport.exe E "C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy"

    Note: The path provided is to your geodesy library which is usually installed in C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy

    You will see a message for each coordinate system exported:

    0 - INFO:  Retrieved 6275 codes
    0 - INFO:  Exporting code: CTI:32617
    0Exporting CTI:32617 to C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy\...
    0 - INFO:  Exporting code: CTI:5235
    0Exporting CTI:5235 to C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy\...

  4. The custom coordinate systems installed in this Geodesy Database have been converted to GML files and can be moved from C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy

     

To batch import coordinate systems from into your current geodesy database

  1. Place all of the GML files that you wish to import into your SonarWiz geodesy database directory. This is usually located at C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy:

     

  2. Open the Windows Command Prompt and switch to the SonarWiz 7 directory:
    cd c:\Program Files\Chesapeake Technology\SonarWiz 7\

  3. Execute the import command. The path should point towards your SonarWiz geodesy database directory
    CsmImportExport.exe I "C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy"

    You will see several output messages as CsmImportExport loads the new CRS into the database

    0 - INFO: Importing from: C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy\CTI_32617.gml
    0 - INFO: Importing from: C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy\CTI_32618.gml
    0 - INFO: Importing from: C:\ProgramData\Chesapeake Technology\SonarWiz 7\Geodesy\CTI_5235.gml

  4. When the import is finished. Switch to SonarWiz and open the Program Properties > Browse Coordinate Systems… dialog.

     

  5. You should now see all of your custom coordinate SRIDs in the CRS List drop down:

     

Copyright 2022, Chesapeake Technology, Inc.