IEaxDataAreaSlice.Topobase

Fore Syntax

Topobase: ITopobase;

Fore.NET Syntax

Topobase: Prognoz.Platform.Interop.Topobase.Topobase;

Description

The Topobase property selects the topobase based on which the express report map is created.

Comments

In topobase map data is presented as a set of layers. Each layer is described by special attributes and presents a class of map data. For example, the layer with city coordinates or the layer describing country outliers.

To reset topobase for specified in the repository by default  , use the IEaxDataAreaSlice.ResetTopobase method.

Fore Example

Executing the example requires that repository contains map with the RF identifier and express report with the EXPRESS_TOPOBASE identifier. The report must contain map.

Add links to the Express, Metabase, Topobase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Analyzer: IEaxAnalyzer;
    DataArea: IEaxDataArea;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Analyzer := MB.ItemById("EXPRESS_TOPOBASE").Edit As IEaxAnalyzer;
    // Get data area
    DataArea := Analyzer.DataArea;
    // Get data slice
    Slice := DataArea.Slices.Item(0);
    // Determine topobase
    Slice.Topobase := MB.ItemById("RF").Bind As ITopobase;
    Analyzer.MapChart.Visible := True;
    // Save changes
    (Analyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example a new topobase, based on which a map is built in express report, is determined.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Topobase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Analyzer: IEaxAnalyzer;
    DataArea: IEaxDataArea;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := Params.Metabase;
    // Get express report
    Analyzer := MB.ItemById["EXPRESS_TOPOBASE"].Edit() As IEaxAnalyzer;
    // Get data area
    DataArea := Analyzer.DataArea;
    // Get data slice
    Slice := DataArea.Slices.Item[0];
    // Determine topobase
    Slice.Topobase := MB.ItemById["RF"].Bind() As Topobase;
    Analyzer.MapChart.Visible := True;
    // Save changes
    (Analyzer As IMetabaseObject).Save();
End Sub;

See also:

IEaxDataAreaSlice