User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.tgis_configxml

TGIS_ConfigXml class

DK11 for ActiveX | TatukGIS_XDK11.TGIS_ConfigXml | Classes | Methods | Properties

Encapsulation of layer configuration file.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public class TGIS_ConfigXml : ITGIS_ConfigXml 
{
}
' VisualBasic
Public Class TGIS_ConfigXml
  Implements ITGIS_ConfigXml
End Class
// Oxygene
type
  TGIS_ConfigXml = public class
  end;

Implements

Methods

Inherited Overrides Protected
Name Visibility Description
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)
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)
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)
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)
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)
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)
WriteSymbol public Write parameters given by _name.
(Inherited from ITGIS_Config)
WriteZone public Write parameters given by zone _name.
(Inherited from ITGIS_Config)

Properties

Inherited Protected
Name Visibility Description
ConfigFormat public Internal format of config.
(Inherited from ITGIS_Config)
FileName public Name of configuration file.
(Inherited from ITGIS_Config)
IsProject public True if config file is a project.
(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)

Remarks

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.ttkstyle”. Below you can see a sample file :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TatukGIS>
  <Layer>
    <Sections>
      <Section>
        <Visible>YES</Visible>
        <Ground>OnDem</Ground>
        <Line>
          <OutlineWidth>SIZE:0 twips</OutlineWidth>
        </Line>
        <Area>
          <Color>ARGB:FFF7EFEF</Color>
          <OutlineWidth>SIZE:24 twips</OutlineWidth>
          <SmartSize>SIZE:16 twips</SmartSize>
          <ShowLegend>YES</ShowLegend>
        </Area>
        <Active>YES</Active>
        <Caption>Country area</Caption>
        <CodePage>1250</CodePage>
        <CS>
          <EPSG>4326</EPSG>
        </CS>
        <IgnoreShapeParams>YES</IgnoreShapeParams>
      </Section>
    </Sections>
  </Layer>
</TatukGIS>

Warning! Format modified in v11.8.0. Files .ttkstyle written in versions prior to 11.8.0 should be modified manually to match current specification.

Project configuration file

Is very similar to layer configuration file. Values written to this file will overwrite values from layer configuration file. Below you can see a sample file :

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TatukGIS>
  <Viewer>
    <VisibleExtent>
      <XMin>13.5683080162247</XMin>
      <XMax>24.6619641937987</XMax>
      <YMin>46.38677912557</YMin>
      <YMax>57.480435303144</YMax>
    </VisibleExtent>
    <CS>
      <EPSG>4326</EPSG>
    </CS>
  </Viewer>
  <Layers>
    <Layer Name="Country area" Path="country.shp">
      <Sections>
        <Section>
          <Visible>YES</Visible>
          <Ground>OnDem</Ground>
          <Line>
            <OutlineWidth>SIZE:0 twips</OutlineWidth>
          </Line>
          <Area>
            <Color>ARGB:FFF7EFEF</Color>
            <OutlineWidth>SIZE:24 twips</OutlineWidth>
            <SmartSize>SIZE:16 twips</SmartSize>
            <ShowLegend>YES</ShowLegend>
          </Area>
          <Active>YES</Active>
          <Caption>Country area</Caption>
          <CodePage>1250</CodePage>
          <CS>
            <EPSG>4326</EPSG>
          </CS>
          <IgnoreShapeParams>YES</IgnoreShapeParams>
        </Section>
      </Sections>
    </Layer>
  </Layers>
  <Hierarchy>
    <Groups>
      <Group Name="Group1" Caption="Poland" Collapsed="False" Active="True">
        <Group Name="Group5" Caption="Borders" Collapsed="False" Active="True">
          <Layers>
            <Layer Name="Country area"/>
          </Layers>
        </Group>
      </Group>
    </Groups>
  </Hierarchy>
</TatukGIS>

2020/05/07 01:02

Page Tools