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

- Automatically connect to a graphical source

$
0
0
Current Revision posted to OpenCities Map Wiki by Nelson Hobdell on 9/27/2022 10:18:04 PM

It is possible to set up OpenCities Map so that every time a DGN is opened, a connection is established to a graphical source such as Oracle Spatial, SQL Server Spatial, PostGIS, OGC WFS, or Esri File Geodatabase

To do this, first define the named graphical source in your project schema. 

For example, the following illustrates a named connection to an Oracle database:Open

Then select the Macros node of the User Workspace, and add the following configuration variable:  MS_GEOINITCMD

Set the value of the variable to execute the following key-in:

GDI CONNECT GRAPHICALSOURCE  name=graphicalSourceName user=userName password=password

 

Save and export your changes.  The next time the workspace is run and a file is opened, a live connection to the graphical source will be automatically established.  This can be seen by navigating to the Connections tab of the Map Interoperability dialog as shown below.

 


Notes:

- Ensure there are no spaces before and after the = sign in the key-in.

- The user and password are visible to others.

- For SQL Server and Esri File Geodatabase, the user and password are not required.  Simply use:  GDI CONNECT GRAPHICALSOURCE

Tags: Oracle, Graphical Source, Spatial, PostGIS, Geospatial Administrator, SQL Server, Database

Viewing all articles
Browse latest Browse all 1284

Trending Articles



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