Documentation | Help File | UI | 2D Mode | Menu | Layer | Add SQL layer
Clicking on the Layer/Add SQL layer
menu provides the means for opening a vector or raster layer of a type stored entirely in a database running on the local computer or a network connected server. This menu item invokes the Connect to SQL layers
dialog box which contains settings to set up the connection to the database. When opened, the database layer is automatically rendered on the Map area. If there is an open map project or layer, the new layer is added to the project and appears in the layer list on the Legend.
The program automatically attempts to read the coordinate system information of the newly opened SQL layer and, if different than the map area coordinate system, reprojects the display of the SQL layer to the Map area coordinate system.
To open a layer stored in a database and add it to the current project
Layer/Add SQL layer
menu item - this invokes the Connect to SQL layers
dialog box.Connect to SQL layers
dialog box choose connection type by selecting one of the following options: ADO
, SQLite
, FileGDB
or OGR
.Connection string
and Dialect
. For the Connection string
, an automated method can be used instead of typing the connection string. To use it click on the Build…
button - the Data Link Properties
dialog box will appear.Data Link Properties
dialog box start with selecting the link provider on the Provider
tab. The rest of the connection settings on the remaining tabs (Connection
, Advanced
, All
) are specific to the environment - if necessary ask your database administrator for assistance.Data Link Properties
dialog box reflect your database configuration click on the OK
button - this brings back the Connect to SQL layers
dialog box.Storage
and Additional layer parameters
.Connect to SQL layers
dialog box click on the Connect
button - if the connection parameters loaded from the file are correct the connection is established and the list of available layers is displayed within the Available layers
box.Available layers
box.Add layer
button.Save file
button. Within the Save
dialog box locate the folder where you would like to store the connection file, enter a name for the file in the File name
list and click on the Save
button.Close
button.