globalgeocodedb import

The globalgeocodedb import command imports a Global Geocoding database property file. This configures the database resources on the current system.

Usage

globalgeocodedb import --f File
Required Argument Description
Yes --f File Specifies the JSON-formatted database property file. This file is mandatory.

Example

This example creates a Global Geocoding database resource as defined by the configuration provided in the GlobalGeocodeDbResource.txt JSON-formatted file.

globalgeocodedb import --f GlobalGeocodeDbResource.txt
There are several cases that may occur in response to the globalgeocodedb import command.
  • Case 1: The directories in the specified root folder are all invalid. In this case, no database is added.

    spectrum> globalgeocodedb import --f ./GlobalGeocodeDbResource.txt /managers/GlobalGeocode/verify?rootFolder=D:/SGI_Data/

    The response is as follows:

    Invalid Folder locations found.
    ["D:\\SGI_Data\\IGEO-AT1"
    "D:\\SGI_Data\\IGEO-CZ1"]
    unable to add the database resource due to invalid paths
  • Case 2: The provided root folder has at least one valid directory. In this case, the database is added.

    spectrum> globalgeocodedb import --f ./GlobalGeocodeDbResource.txt /managers/GlobalGeocode/verify?rootFolder=D:/SGI_Data/GEO-DB

    The response is as follows:
    Invalid Folder locations found.
    ["D:\\SGI_Data\\IGEO-CZ1"]
    Database resource imported [./GlobalGeocodeDbResource.txt]
  • Case 3: The provided root folder is invalid or doesn't exist. In this case, the database is added.

    spectrum> globalgeocodedb import --f ./GlobalGeocodeDbResource.txt

    The response is as follows:

    unable to add the database resource due to invalid paths