DK11 for ActiveX | TatukGIS_XDK11.TGIS_ConfigIni | Classes | Methods | Properties
Encapsulation of layer configuration file.
// C# public class TGIS_ConfigIni : ITGIS_ConfigIni { }
' VisualBasic Public Class TGIS_ConfigIni Implements ITGIS_ConfigIni End Class
// Oxygene type TGIS_ConfigIni = public class end;
Name | Visibility | Description | |
---|---|---|---|
AbsolutePath | public | Computes absolute path for path relative to configuration file. (Inherited from ITGIS_Config) |
|
AddSubLayer | public | Add sublayer to config file. (Inherited from ITGIS_Config) |
|
AttachDelphiObj | public | Only for internal use of TatukGIS. (Inherited from ITBaseObject) |
|
BuildProject | public | Build project file based on current project and list of layers attached to the Viewer. (Inherited from ITGIS_Config) |
|
ClearActiveSection | public | Delete elements related to the current section. (Inherited from ITGIS_Config) |
|
ClearGroups | public | Delete group sections related to the selected group. (Inherited from ITGIS_Config) |
|
ClearSave | public | Clear MustSave flag. (Inherited from ITGIS_Config) |
|
ClearSections | public | Delete sections related to the selected layer. (Inherited from ITGIS_Config) |
|
ClearSubSections | public | Delete subsections related to the selected layer. (Inherited from ITGIS_Config) |
|
Create_ | public | Create instance. (Inherited from ITGIS_Config) |
|
DelphiObj | public | Only for internal use of TatukGIS. (Inherited from ITBaseObject) |
|
GetStrings | public | Parse and fill list with values. (Inherited from ITGIS_Config) |
|
Lock | public | Lock configuration file. (Inherited from ITGIS_Config) |
|
Read3DLayerType | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadAlignment | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadBasement | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadBitmap | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadBoolean | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadChart | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadColor | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadColorInterpolationMode | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadColorRamp | public | Read color ramp parameter given by _name. (Inherited from ITGIS_Config) |
|
ReadCustomData | public | Read custom configuration parameters. (Inherited from ITGIS_Config) |
|
ReadDormant | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadFloat | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadFontStyle | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadGround | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadHierarchyGroups | public | Read hierarchy groups to config. (Inherited from ITGIS_Config) |
|
ReadInteger | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadInterpretation | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadMarker | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadNormalized | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadOffsetPosition | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadPattern | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadPen | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadPosition | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadSectionValues | public | Read section values into a list. (Inherited from ITGIS_Config) |
|
ReadString | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadSymbol | public | Read parameters given by _name. (Inherited from ITGIS_Config) |
|
ReadZone | public | Read parameters given by zone _name. (Inherited from ITGIS_Config) |
|
RelativePath | public | Computes path relative to configuration file. (Inherited from ITGIS_Config) |
|
Reread | public | Reread configuration file. (Inherited from ITGIS_Config) |
|
Save | public | Save backup copy of configuration file. (Inherited from ITGIS_Config) |
|
SetGroup | public | Select layer on which the operation will be performed. (Inherited from ITGIS_Config) |
|
SetGroupSection | public | Select the group section on which the operation will be performed. (Inherited from ITGIS_Config) |
|
SetLayer | public | Select layer on which the operation will be performed. (Inherited from ITGIS_Config) |
|
SetSection | public | Select the section on which the operation will be performed. (Inherited from ITGIS_Config) |
|
SetStrings | public | Read and parse values from list. (Inherited from ITGIS_Config) |
|
SetSubLayer | public | Select sublayer on which the operation will be performed. (Inherited from ITGIS_Config) |
|
SetSubSection | public | Select the subsection on which the operation will be performed. (Inherited from ITGIS_Config) |
|
Unlock | public | Unlock configuration file. (Inherited from ITGIS_Config) |
|
Write3DLayerType | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteAlignment | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteBasement | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteBitmap | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteBoolean | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteChart | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteColor | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteColorInterpolationMode | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteColorRamp | public | Write color ramp parameter given by _name. (Inherited from ITGIS_Config) |
|
WriteCustomData | public | Write custom configuration parameters. (Inherited from ITGIS_Config) |
|
WriteDormant | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteFloat | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteFontStyle | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteGround | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteHierarchyGroups | public | Write hierarchy groups to config. (Inherited from ITGIS_Config) |
|
WriteInteger | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteInterpretation | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteMarker | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteNormalized | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteOffsetPosition | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WritePattern | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WritePen | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WritePosition | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteString | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteStyle | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteSymbol | public | Write parameters given by _name. (Inherited from ITGIS_Config) |
|
WriteZone | public | Write parameters given by zone _name. (Inherited from ITGIS_Config) |
|
Name | Visibility | Description | |
---|---|---|---|
ConfigFormat | public | Internal format of config. (Inherited from ITGIS_Config) |
|
FileName | public | Name of configuration file. (Inherited from ITGIS_Config) |
|
IniObj | public | Underlying ini file. | |
IsProject | public | True if config file is a project. (Inherited from ITGIS_Config) |
|
IsShapeStyle | public | True if config is for shape style embedding. (Inherited from ITGIS_Config) |
|
MustSave | public | True if config file was changed. (Inherited from ITGIS_Config) |
|
PrjLayerConfig | public | Config file name (without extension) at a given index in a project file. (Inherited from ITGIS_Config) |
|
PrjLayerName | public | Name of layer at a given index in a project file. (Inherited from ITGIS_Config) |
|
PrjLayerPath | public | Path of layer at a given index in a project file. (Inherited from ITGIS_Config) |
|
PrjLayersCount | public | Returns the number of layers defined in project config file. (Inherited from ITGIS_Config) |
|
Section | public | By assigning this value you are overriding default TGIS_Config behavior. (Inherited from ITGIS_Config) |
|
UseRelativePath | public | If True (default) all paths will be save as relative to a config file localization. (Inherited from ITGIS_Config) |
|
Version | public | Config version number (Inherited from ITGIS_Config) |
|
WriteFull | public | If True (default) then all config keys will be saved, otherwise only changed. (Inherited from ITGIS_Config) |
|
Procedures to read project and layer configuration files.
1) Layer configuration file
Each layer can have its own configuration file located in the same directory as the layer data itself. This file must have the name “layerfile_with_extension.ini”. Below you can see a sample file with comments:
[TatukGIS Layer] ; this is a general section use common values here Visible=False LineColor=BLACK LineWidth=-2 [TatukGIS Layer 1] ; this is a section valid only for selected zooms MinZoom=0.123 ; this describes when this section will be valid MaxZoom=2.13 ;override standard values Visible=True LineColor=YELLOW [TatukGIS Layer 2] MinZoom=2.13 MaxZoom=999 Visible=True LineColor=YELLOW LineWidth=-5
1A) Renderer
By attaching a 'render' entry followed by a query, you can on/off section:
[TatukGIS Layer 2] MinZoom=2.13 MaxZoom=999 Render=population > 100 Visible=True LineColor=YELLOW LineWidth=-5
First section which meets all criteria will be used. If Render was used, then MinZoom, MaxZoom can be omitted.
1B) Styles.
By attaching style name to a section name we have an option to define special styles (for flushing etc).
[TatukGIS Layer] Style=Flush LineColor=YELLOW LineWidth=-15
2) Project configuration file.
Is very similar to layer configuration file. Values written to this file will overwrite values from layer configuration file.
[TatukGIS Layer1] ;first layer Path=c:\test\street.shp Name=Street ; can be set here or will be read from layer conf. file LineColor=YELLOW [TatukGIS Layer2] ;second layer Path=c:\test\photo.tif Name=Satelite photo [TatukGIS Layer2 1] ; and now first zoom dependent value for second layer MinZoom=1.23 MaxZoom=1.99 Visible=False