Documentation | Samples | SQLLayerAdvanced
SQLLayerAdvanced sample — demonstrates advanced SQL database layer operations and styling (Delphi/VCL).
What the sample shows:
In .NET it is necessary to manually attach ADODB file to the sample. ADODB file is located in “Deployment” folder.
Edit gistest.ttkls to provied your database access You can use *.ttkls as any other layer (for example open in editor).
This sample illustrates use of:
| Name | Description |
|---|---|
| TGIS_LayerVectorSqlAbstract.CreateStyleTable | Create the table used to store layer styles in the database. |
| TGIS_LayerVectorSqlAbstract.WriteStyle | Write or update a style in the database. |
| TGIS_Viewer.ProjectFile | Project file itself as opened in Open procedure. |
| TGIS_Viewer.SaveProjectAsEx | Save the current project under a new name. |
| TGIS_LayerVector.ImportLayer | Import shapes from another vector layer, optionally filtered by extent, target geometry type, and SQL (Structured Query Language) WHERE clause. |
| TGIS_Config.GetStrings | Fills a string list with configuration content. |
| TGIS_Config.SetLayer | Selects the layer whose configuration section will be used. |
| TGIS_ConfigFactory.CreateConfig | Creates a config instance based on the path extension. |
| TGIS_LayerSqlSqlite.Build | Initialize layer path, extent, and default coordinate dimensionality for a vector layer build operation. |
This sample is available on the following platforms (click to view the source code on GitHub):