Вы находитесь на странице: 1из 238

-

GIS ToolKit
for Delphi 6, 7, 2007, 2009, 2010, XE, XE2
C++ Builder 6, 2007, 2009, 2010, XE, XE2

11

1991-2012
.
www.gisinfo.ru

GIS ToolKit -
Delphi, ++ Builder, Code Gear, .
GIS ToolKit Delphi,
C++ Builder, Borland Developer Studio, Embarcadero RAD Studio ( )
.
GIS ToolKit
2005, 2008, 2011,
, ,
( , , ).
,
, -, .
()
.
-
.

,
, ( ,
, ..) ,
Windows.
. ,
, , , -
.
,
Windows,
.
,
Windows,
.

. (FoxPro, dBase, Paradox, Access )
, .
.
- 17/12/2012 .

.................................................................................................................................6
.................................................................................................6
.....................................................................................................................12
GIS ToolKit Professional..............................................................................12
GIS ToolKit..........................................................................................12
...........................................................................................13
..............................................................................................................13
USB ...................................................................................13
Guardant.......................................................................................13
Guardant USB-.......................................................13
..............................................................................14
..................................................14
............................................................................................15
............................................................17
............................................................................................17
................................................................17
C ..................................................................................17
.......................................................................................................19
...............................................................................................20
........................................................................................20
.........................................................20
......................................................................................20
GIS ToolKit ...............................24
CodeGear Rad Studio 2009.............................................................................24
.....................................................................................25
TAddFolderDlg.
. ...................................................................................................................25
TAtlasListDlg. .......26
TColMapSection. . .................................27
TCompMapPoint. . .................................................................28
TMap3DNavigator.
3D- ........................................................................................................29
TGetMapPoint. .....................................30
TGisProperty. -. .....................33
TMapAtlas. - . ......36
TMapCheckInside.

..............................................................................................................39
TMapClassEdit. ,
. ............................................................................................................40
TMapConvertor. - . ..................................43
TMapCross. .................47
TMapCreateObject. . ..................49
TMapDataList.
........................................................................................................51
TMapDataView. . ..................53
TMapDirectoryEdit. . ...............................................57
TMapEditMetric. .
.........................................................................................................................................59
TMapFileNameEdit. . .........................................................63
TMapFind. . .................................65
TMapGeoCode. .............................................................69
TMapGisServer. ......................................72
TMapGisServerDataListReader. ,
..............................................................................................80

TMapLayer. () . .................................................................81
TMapLayers. - () . .......................................82
TMapList. . ......................................................82
TMapLists. - . ...........................................83
TMapLoadWMSDialog. WMS ..................83
TMapMiniMap. .........................................................85
TMapMetric. ...............................................86
TMapMtr3D. 3D ................................................88
TMapMtqs. - . ............................................90
TMapMtq. . ............................................................................92
TMapMtrs. - . .............................96
TMapMtr. . .................................................................98
TMapObj. . ................................................103
TMapOverlay.
.............................................................................................................................118
TMapPoint. . ....................................................121
TMapPrintDialog. .......................................123
TMapNet. . .....................................................................125
TMapQRep. ............................................................130
TMapRsc. .............131
TMapRst. . ............................................................................134
TMapRsts. - ...........................................................138
TMapScreen.

(,
) .............................................................................................140
TMapSection. . ........................................................146
TMapSections. . ..........................................................147
TMapSelect. /. ..................................................151
TMapSelectDialog. /...................157
TMapSelectObjectRsc.
. ....................................................................................................159
TMapSelectRect.
.....................................................................................................................160
TMapSemantic. . ....................................................164
TMapSemantics.
............................................................................................................169
TMapSite. . .........................................................................171
TMapSites. - . ......................................................174
TMapThematic. ...................................176
..................................................177
TMapView. . .....................................178
TMapWindow. .................................197
TMapWmsAccess. WMS-. ..............207
TMapWms. - WMS-....................................................................209
TMapWMSBuildURLDialog. " WMS-"....................210
TMoveToDialog. . . .212
TMetricDialog. .
.......................................................................................................................................214
TMtrLegendTree. ........................................215
TOpenAtlasDlg. ,
................................................................................................................................217
TOpenMapDialog. . ...................................218
TSemanticDialog.
..........................................................................................................................220
TSemUpdateDlg. . .............222
TUndoDialog. ........................223

TViewScaleRangeDialog. " ".........................................224


......................................................................................................226
-..........................................................................................226
.
.......................................................................................................................................226
ConvertToRsw.
(*.rsw)..............................................................................................227
EditSelectRect.
. ...................................................................................................................228
SelectObjectFromRsc.
( *.Rsc).....................................................................................................229
SetGISLanguage.
................................................................................................230
...........................................................................................................231
.........................................................................................................................233
..............................................................................................237

()
, , ,
- ,
, .
.
,
, .
, ,
.
, . : -,
, -, .
, .
,
, , ,
, , -
GIS ToolKit.


GIS ToolKit Professional :

(, );

.
:
GIS3D.DLL, GISACCES.DLL, GISDELON.DLL, GISDLGS.DLL, GISFORMS.DLL, GISFORMSE.DLL,
GISGPS.DLL, GISJPG2RSW.DLL, GISJPGCOMPR.DLL, GISJPGVIEW.DLL, GISKMLTOMAP.DLL,
GISMATH.DLL, GISMTREX.DLL, GISOBNET.DLL, GISPASP.DLL, GISPICEX.DLL, GISPRINT.DLL,
GISRSCEX.DLL,
GISRSWG.DLL,
GISSCRN.DLL,
GISSELEC.DLL,
GISSEMDB.DLL,
GISSHPTOMAP.DLL,
GISSIDRW.DLL,
GISSUPP.DLL,
GISTHEM.DLL,
GISVECEX.DLL,
GISVECTR.DLL, GISWMSACCES.DLL, LTI_DSDK_CDLL.DLL, S57TOGIS.DLL.
.
- GIS ToolKit
.

GIS
ToolKit

-
-
-
-3D

*.dll

, GIS ToolKit,
. () ,
. :

3-D .

GIS ToolKit MAPAPI . GIS ToolKit


.
- , TMapView
TMapScreen. ,

, , .
TMapView TMapScreen API -
.

GIS

ToolKit

TMapView TMapScreen.

, TMapScreen ,
( ) .
.
, TMapFind,
, , .
TMapFind TMapView,
. TmapObj,
TMapFind.
TMapObj .
, , ().

, , .
( , ).
.
TMapPoint.
.

TGetMapPoint.
.
GIS ToolKit.

TOpenMapDialog, (
, , ) .

. , ,
( , , ).
TMapDataList.
TMapSelectDialog
.

TSemanticDialog

TMetricDialog

.
TMapPrintDialog.

.
,

TMapWindow. , TMapView,
, .
TMap3DNavigator
.
TMapMiniMap ,
,
, .

. .

TMapAtlas. TOpenAtlasDlg (
) TAtlasListDlg ( ).

TMapEditMetric
. ,
, TMapObj,
MapObj.
TMapConvertor
. : SXF, TXF.

TMtrLegendTree.
.

TMapThematic

.
TMapRSC
. -
, ,
, .
TMapClassEdit.

TMapGisServer

- .
GIS ToolKit Professional
GTK Standard, GTK Additional GTK Dialogs.
GTK Standard:
TMapView
- ,

TMapWindow
- MapView

,
TMapScreen
- ,


TMapDataView
-
(mapacces.dll gisacces.dll)
TMapObj
-
TMapPoint
-
TMapFind
-
TMapRsc
-
TMapGisServer
- 2008
TMapAtlas
- ( )
TMapMiniMap
-
TGisProperty
- -
GTK Additional:
TMapSelectRect
-
TGetMapPoint
-
TMapFindAdj
-
TMapConvertor
-
TMapGeoCode
-
TMapCross
-
TMapCheckInside
-

TMapFileNameEdit
- .
TMapDirectoryEdit
- .
TMapClassEdit
- ,
TMapEditMetric
-
TMapCreateObject
-
TMapQRep
- QuickReport
TMapNet
-
TMapSections
-
TMapMtr3D
- 3D
TMap3DNavigator
- 3D

10

TMapThematic
TMtrLegendTree
TMapOverlay

-
-
-
.

GTK Dialogs:
TOpenMapDialog
-
TMapPrintDialog
-
TMapSelectDialog
- /
TMapSelectObjectRsc
-
.
TMapDataList
-

TMoveToDialog
- " "
TSemanticDialog
- " "
TMetricDialog
- " "
TSemUpdateDlg
- " "
TAddFolderDlg
- " "
TUndoDialog
- "
TOpenAtlasDlg
- , ,
TAtlasListDlg
-
TViewScaleRangeDialog
- " "
TMapWMSBuildURLDialo
- " WMS-"
g
Gis ToolKit :
:
,
TMapView

,
TMapScreen


:
MapView
TMapWindow
,

TMapMiniMap

,


(mapaccess.dll gisacces.dll)
TMapDataView
,

:
TMap3DNavigator

TMapObj

TMapCreateObject

TGetMapPoint

TMapEditMetric

TMapClassEdit

TMapCross

TMapCheckInside

TMapOverlay

:
TMapFind

TMapFindAdj

:
TMapPoint

:
TMapRsc

11

:
TMapAtlas

( )

TAtlasListDlg

TOpenAtlasDlg

, ,

:
TMapGisServer

2008

:
TOpenMapDialog

TMapSelectDialog

TMapSelectObjectRsc

TMapDataList

TMoveToDialog

" "

TSemanticDialog

" "

TMetricDialog

" "

TSemUpdateDlg

" "

TAddFolderDlg

" "

TUndoDialog

"

TViewScaleRangeDialog

" "

TMapWMSBuildURLDialog

" WMS-"

:
TMapQRep

QuickReport

TMapPrintDialog

:
TMapMtr3D

3D

TMtrLegengTree

-:
TGisProperty

:
TMapThematic

:
TMapNet

:
TMapSelectRect

TMapConvertor

TMapGeoCode

TMapSections

TMapFileNameEdit

TMapDirectoryEdit

12


GIS ToolKit Professional
GIS ToolKit
Delphi, C++ Builder, Borland Developer Studio
GIS ToolKit, :
.
CD-ROM.
SETUP.EXE.
.
, GIS ToolKit, :
DOC - .
EXAMPLE - ;
HARDKEY - ;
Dll - (
Windows\System32);
PackageAll -
Borland;
.
Delphi C++Builder Delphi C+
+Builder (: C:\Program Files\Borland\Delphi3\Help) .
Borland Developer Studio 2006, 2007 \DOC.
gisacces.dll, gisvecex.dll, gisacc43.dll, gismtrex.dll, gispicex
( WINNT\SYSTEM32).
\Doc\readme.txt.
.
GIS ToolKit .
, , ,
(
). GIS ToolKit
, ,
.

GIS ToolKit

Component\Install Packages
GIS ToolKit
( Remove)

, GIS ToolKit

13


GIS ToolKit
, Delphi.
GIS ToolKit
. ,
- GIS ToolKit
.
GIS ToolKit
, ,
. ,
,
. (
) (
).
,
,
Delphi c GIS ToolKit, .


- ,
.
USB .

USB
:
) Guardant USB ,
USB: MS Windows 2000/ Windows XP, Vista, Windows 7
) Guardant USB ,
, .
) USB- Guardant.
, USB-
Windows, .
1. Guardant USB, . .
Guardant
2. .
3. Guardant USB USB .

Guardant
Guardant, :
1. setup.exe
2. .
3. .

Guardant USB-
Guardant USB- ,
. , ,
. ,
Windows ( inf-,
USB-)
.
setup.exe.
, USB-
, Windows- USB-,
.
1 3 Guardant (. ) .
.
,
Guardant Stealth/Net USB Key.
.
,
.
,

14

, ,
. ,
Windows.


:
1. (, ,
..), , , ;
.
2.
.
3. ( ) , ,
.. .
. .
4. . ,
,
.


-
, (
).
Guardant Net , .
(
\System\WinKey5 ).
USB .
\System\NetKey5 (,
c:\Program Files\). Guardant Net.
USB- Guardant Net
grdsrv.exe.
! Guardant Net (
), Guardant Net. (
Guardant Net) .
Guardant Net TCP/IP NetBIOS.
Guardant Net
Guardant Net :
grdsrv.exe /i
Guardant Net :
grdsrv.exe /r
, , -, Guardant Net,
gnclient.ini,
Guardant Net (NetKey5\).
gnclient.ini [SERVER] IP_NAME
IP- , Guardant Net.
:
[SERVER]
IP_NAME=192.168.0.1

GisProperty.mapSetIniPath ini,
[PROTECT]
NET=1
.
.

15


, GIS ToolKit
,
:

( );

.
.
, ,
, ,
, .
GIS ToolKit ,
2008. (SXF, DXF, MIF, SHP )

2008.


:
(, , ,
);
( );
( );
( ).

.
. :
- , ;
;
- ;
- , ;
;
- , .

, , ,
.
.
.
-
, , , ,
"".
, (, )
, , , ,
, ( )
.
() , .
65536 ,
255 65536 ().
2000 , 16
200 .


2008, -
.
().
, , .
, , .
2008 ,
, ,
. ,
.

16

...

...
...
n

...
n

,
.
.
.
2011 ( 2005, 2008).
,
, , .
.
, , .
,
, .
,
, , ,
, . , ,
,
.
.
.

17



, , , ,
, ,
. ,
. ,
:
, ,
, ;
, ,
;

.
2011
, .
,
.
. ,
.
.
.
,
.

.
,
.
SXF
.
.
,
DXF, MIF/MID ..
. .


2011 , RST.
(PCX, BMP ) RST
2011.
:
( ,
);
;
.
.

, ,
.
GIS ToolKit Professional .

.
2011 ,
MTR. MTR SXF
.
:
,
.
2008.
,
.
2008
, .
, .

C
pa p ap .
, , ap a

18

, pa p a p ap.
ap aa aa aaa, p
p p a.
a ap a () pa
aa:
p (pa , *.DAT);
(a, apap , *.SEM);
p a ( p a a a, *.HDR).
Ha a-ap (*.MAP), a a ap
p a a.
pa apap pa a pp
(p aap paa pa, *.RSC).
p a (p, a,
pa a), p a pa a (, pa, a
..) pa (apa - pa ..) a a (p a
p a - a paa a a a, a p p a, pa ..) ( , a
, ..).
ap p ap (aa a)
a a .
pa a ( - aa)
aap pa ap aa (a - a) p ap.
a p p - ( p a p
ppa aa ap a, a a pa
p ppa pa pa).
Hapa pa : X apaa p, Y - a apa.

19


. MapType.pas
TPPLACE - g , :
PP_PLANE
-
PP_GEO

PP_PICTURE

PP_MAP

- (
)
,
.

Xm
(0,0)

( "Picture")
X

( "Client")
(0,0)
+......+
......
......
......
+
+

(Region)


(Draw)
Yo
Y

Ym
(0,0) "Plane"

20



- , GIS ToolKit :

GIS ToolKit


- TMapView,
. -
. GIS ToolKit
. TMapView
. .
TMapView. ,
, TMapView.
MapView,
GIS ToolKit.
TMapView.


,
, :
;

;
;
(
);

, ;
,
;
;
.
, GIS ToolKit,
TMapView .
Delphi MapView.
. ,
.
, ,
OpenDialog : TOPenDialog ( Delphi)
miOPenFileMap : TmenuItem (. ).
//===================================================

21

//
//===================================================
procedure TMyForm.miOpenFileMapClick(Sender: TObject);
begin
if OpenDialog.Execute = false
then exit;
MapView.MapFileName := OpenDialog.FileName;
MapView.MapView := true;
end;
//===================================================
//===================================================
, ,
.
, , ,
, , .
TmapView.ViewSelect, TmapSelect.
, .
TmapSelectDialog,
. :
TmapSelectDialog ( MapSelectDialog);
MapSelectDialog.MapView MapView (
);
( miSelectView :
TmenuItem) (. ).
//===================================================
//
//===================================================
procedure TMyForm.miSelectViewClick(Sender: TObject);
begin
//
MapView.Selecting := true; //
//
//
Delphi
//
if MapSelectDialog.Execute(MapView.ViewSelect, false) = true
then MapView.Repaint;
end;
//===================================================
//===================================================

.
MapView.ViewSelect, .
//===================================================
//
//===================================================
procedure TMyForm.MapViewMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var
NewScale : integer;
spoint : TPoint;
begin
if MapView.MapView = false
then exit;
//
if miScale.Checked = true
//
then begin
//
NewScale := MapView.ViewScale;
if Button = mbLeft //
then NewScale := MapView.ViewScale div 2;
if Button = mbRight //
then NewScale := MapView.ViewScale * 2;
//
MapPoint.PlaceInp := PP_PICTURE;
MapPoint.Y
:= MapView.MapTop + Y;
MapPoint.X
:= MapView.MapLeft + X;
MapView.ScaleInPoint(NewScale,MapPoint.point);

22

//
MapPoint.PlaceOut := PP_PICTURE;
spoint.X := trunc(MapPoint.X) - MapView.MapLeft;
spoint.Y := trunc(MapPoint.Y) - MapView.MapTop;
spoint := MapView.ClientToScreen(spoint);
SetCursorPos(spoint.X, spoint.Y);
exit;
end;
end;
//===================================================
//===================================================
, ,
. . TmapPrintDialog,
MapView ,
Execute. ,
Tprinter .
.

( ,
""). :
( ) .
SelectObjectInPoint
TMapObj ( ) .
//===================================================
//
//===================================================
const
iFindRadius = 5; //
procedure TMyForm.MapViewMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if MapView.MapView = false
then exit;
//
// TMapObj
if miInPointDlg.Checked = true
then begin
MapObj.Style := OS_NOVIEW;
//
MapObjFind.Style := OS_NOVIEW; //
if MapObj.SelectObjectInPoint(X, Y, iFindRadius, dlMinCommon) <> 0
then begin
//
stMap.Panels[3].Text := MapObj.ObjName;
//
MapObj.Style := OS_SELECT;
end;
exit;
end;
end;
//===================================================
//===================================================
,
.
, ,
.
: TMapFind ( )
TMapObj.

.
DBase MyTable.Dbf.
, :
( TMapObj.ListName),
( TMapObj.Key).
- . MyTable
: LINKSHEET ( 25 )
LINKOBJECT ( N 10 ).
:

23

( , , );
;
.

.
\Exapmle\MyFirst.

24

GIS ToolKit

CodeGear Rad Studio 2009.


CodeGear 2009 String, Char PChar, AnsiString, AnsiChar
PAnsiChar, UnicodeString, WideChar PWideChar . ,
MapApi AnsiString, AnsiChar PAnsiChar
Gis ToolKit : GTKString,
GTKChar, GTKPChar. .
CodeGear 2009:
GtkString = AnsiString;
GtkPChar = PAnsiChar;
GtkChar = AnsiChar;
Delphi Builder:
GtkString = string;
GtkPChar = PChar;
GtkChar = Char.

25


TAddFolderDlg.
.

, .
, .
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
Allowed
Title
MapView

.
.
.

:
public
Create
Execute

Execute, ,
Allowed, .
Execute true, ""
.
:
published
OnDataChanged
OnShow
OnClose


.
.
.

TAddFolderDlg.Allowed
TAllowedFiles
= set
of(afSites,
afRasters,
afTIN, afLayerMatrices,
afQualityMatrices,
afWeightMatrices);
Allowed: TAllowedFiles;


.
AfSites
" " .
AfRasters
" " .
AfTIN
"TIN-" .
AfLayerMatrices
" " .
AfQualityMatrices
" " .
AfWeightMatrices
" " .
[afSites, afRasters, afTIN, afLayerMatrices, afQualityMatrices,
afWeightMatrices].
TAddFolderDlg.Create
constructor Create(AOwner: TComponent); override;
.
TAddFolderDlg. Execute

26

function Execute: boolean; reintroduce;


.
"".
( "") .

.
, .
. :
" ".

. ,
.

( ) .
TAddFolderDlg.MapView
property MapView: TMapView;
, .
TAddFolderDlg.OnDataChanged
OnDataChanged: TNotifyEvent;
.
TAddFolderDlg. OnClose
OnClose: TNotifyEvent;
.
TAddFolderDlg. OnShow
OnShow: TNotifyEvent;
.
TAddFolderDlg. Title
Title: String;
.

TAtlasListDlg. .

.
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapAtlas
MapView

.
.

:
public
Create
Execute
:
published

27

OnShow
OnClose

.
.

TAtlasListDlg.Create
constructor Create(AOwner: TComponent); override;
.
TAtlasListDlg.Execute
function Execute: Boolean; reintroduce;
Execute TAtlasListDlg (
) , (
). true, (
""), false .
MapView.
TAtlasListDlg.MapAtlas
property MapAtlas: TMapAtlas;
MapAtlas TAtlasListDlg ,
.
TAtlasListDlg.MapView
property MapView: TMapView;
, .
TAtlasListDlg.OnClose
OnClose: TNotifyEvent;
.
TAtlasListDlg.OnShow
OnShow: TNotifyEvent;
.

TColMapSection. .
, , TMapSections.
.
:
TObject
|
TPersistent
|
TCollection
:
public
Items

:
protected
GetOwner
Update

public
Add

Create

TColMapSection.Add
function Add: TMapSection;
.

.
TColMapSection.Create
constructor Create(AMapSections: TMapSections);
.
, TMapSections.
TColMapSection.Items
property Items[Index: integer]: TMapSection;
.

28

TColMapSection.Update
procedure Update(Item: TCollectionItem); override;

Owner.reateHeightArray.

TCompMapPoint. .

.
.
:
TObject
|
TPersistent
:
public
PlaceInp
PlaceOut

:
public
ConvertDFrame
ConvertMetric
GetPoint
SetPoint
GetPoint3D
SetPoint3D





X, Y (H)
X, Y (H)

TCompMapPoint.ConvertDFrame

function
ConvertDFrame (aDframeInp : TMAPDFRAME; aPlaceInp, aPlaceOut : TPPLACE) :
TMAPDFRAME;
aDframeInp
aPlaceInp aPlaceOut.
aPlaceOut .
aDframeInp,
aPlaceInp aDframeInp.
TCompMapPoint.ConvertMetric
function ConvertMetric(var aX, aY : double; aPlaceInp, aPlaceOut : TPPLACE) : integer;
aX, aY aPlaceIn
aPlaceOut. 1.
TCompMapPoint.GetPoint
function GetPoint(var aX, aY : double) : boolean;
, PlaceOut.
false.
TCompMapPoint.PlaceInp
.
property PlaceInp: TPPLACE;
.
,
.
.
TCompMapPoint.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TCompMapPoint.SetPoint
function SetPoint( aX, aY : double) : boolean;
, PlaceIn.
false.
TCompMapPoint.GetPoint3D
function GetPoint3D(var aX, aY, aH : double) : boolean;
X, Y (H) , PlaceOut.
false.
TCompMapPoint.SetPoint3D

29

function SetPoint3D( aX, aY, aH : double) : boolean;


X, Y (H) , PlaceIn.
false.

TMap3DNavigator. 3D- .


. 3D gis3D.dll,
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
CmScale3d
CmMove3d
CmSelectFrame3d
CmSelectObject3d
CmStop3d
MapView

3D-
3D-


3D-

3D-

:
public
Create
Close3D
Close3DQuery
Destroy
MapAction
MoveOnMap
MoveOnMap3D
Open3D
SelectFrameOnMap
SelectObjectOnMap3D
UnselectObjectOnMap3D

3D-
3D-


3D-
3D-
3D-
3D (
)

3D-

3D

TMap3DNavigator. Close3D
procedure Close3D;
3D-.
TMap3DNavigator. Close3DQuery
procedure Close3DQuery;
3D- .
TMap3DNavigator. CmScale3d
property CmScale3d: integer;
3D-.
,
3D- .

30

TMap3DNavigator. CmMove3d
property CmMove3d: integer;
3D-
.
, 3D-
.
TMap3DNavigator. CmSelectFrame3d
property CmSelectFrame3d: integer;
3D.
,
3D- ( ).
TMap3DNavigator. CmSelectObject3d
property CmSelectObject3d: integer;
.
,

.
TMap3DNavigator. CmStop3d
property CmStop3d: integer;
3D-.
, -
3D-.
TMap3DNavigator. MapAction
procedure MapAction(aAction : TMapActionType);
3D.
TMap3DNavigator. MapView
property MapView: TMapView;
, .
TMap3DNavigator. MoveOnMap
procedure MoveOnMap(X : integer; Y : integer);
3D-. X, Y -
( ).
TMap3DNavigator. MoveOnMap3D
procedure MoveOnMap3D;
3D- .
TMap3DNavigator. Open3D
procedure Open3D;
3D-.
TMap3DNavigator. SelectFrameOnMap
procedure SelectFrameOnMap;
3D-.
.
TMap3DNavigator. SelectObjectOnMap3D
procedure SelectObjectOnMap3D;

3D-.
TMap3DNavigator. UnselectObjectOnMap3D
procedure UnselectObjectOnMap3D;

3D-.

TGetMapPoint. .

TGetMapPoint ,
. (..
) (..
,

31

).
. ,
.
.
TGetMapPoint TMapView
. TGetMapPoint.StartAction (
MapView
).
OnPointSelect. .
TGetMapPoint.StopAction.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TGtkAction
|
TGetMapPoint
:
public
Active

MapView

,

.

()

PointCoord
PointNumb
PointSubj
published
BlankLenght
ColorDot
DashLenght
LineWidth
MapObj
TypeGetPoint

:
public
Create
Destroy
StartAction
StopAction

:
published
OnChangeMapView
OnPointSelect
OnStopAction
OnStopActionQuery

MapView


TGetMapPoint.Active
property Active : boolean;
.
true, .
TGetMapPoint.BlankLenght
property BlankLenght : integer;
,
.
TGetMapPoint.ColorDot
property ColorDot : TColor;
,
. XOR,
,
.

32

TGetMapPoint.DashLenght
property DashLenght : integer;
,
.
TGetMapPoint. LineWidth
property LineWidth : integer;
,
.
TGetMapPoint. MapObj
property MapObj : TMapObj;
, . MapObj
, Active false.
TGetMapPoint.MapView
property MapView: TMapView;
, .
TGetMapPoint.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .
TGetMapPoint.OnPointSelect
property OnPointSelect : TNotifyEvent;
.
.
PointCoord, PointNumb,
PointSubj.
TGetMapPoint. OnStopAction
property OnStopAction : TNotifyEvent;
.
, .
TGetMapPoint.OnStopActionQuery
TStopActionQueryEvent = procedure (Sender : TObject; var CanStop : Boolean) of
object;.
property OnStopActionQuery : TStopActionQueryEvent;

, StopAction. CanStop
false, .
TGetMapPoint.PointCoord
property PointCoord : TDOUBLEPOINT;
.
OnPointSelect .
TGetMapPoint.PointNumb
property PointNumb : integer;
.
, ,
OnPointSelect
.
TGetMapPoint. PointSubj
property PointSubj : integer;
, .
0.
OnPointSelect .
TGetMapPoint. StartAction
procedure StartAction; virtual;
.
.
MapView, MapObj.
TGetMapPoint. StoptAction
procedure StopAction; virtual;
.
TGetMapPoint. TypeGetPoint
TTypeGetPoint = (GetExistPoint,

//

33

GetVirtualPoint); //
property TypeGetPoint : TTypeGetPoint;
. ,
( , ).

TGisProperty. -.
-
.
:
TObject
|
TPersistent
|
Tcomponent
:
public
mapGetCommonRscPath
mapGetExclusiveAccess
mapGetHandleForMessage
mapGetMapAccessLanguage
mapGetIniPath
mapGetPathShell
mapGetScreenPrecision
mapGetScreenScale
mapGetScreenSize
mapGetScreenHeight
mapGetScreenWidth
mapIsMessageEnable
mapMessageEnable
mapScreenMeter2Pixel
mapScreenPixel2Meter
mapSetCommonRscPath
mapSetPathShell
mapSetExclusiveAccess
mapSetHandleForMessage
mapSetIniPath
mapSetMapAccessLanguage
mapSetScreenImageSize
mapSetScreenPrecision
mapSetScreenPrecisionEx
mapSetScreenScale
mapSetScreenSize
mapSetScreenSizeEx

TGisProperty.mapGetCommonRscPat

(RSC)



""

INI-

-

(1000 - 100000)

(100 - 2000)

(50 - 4000)

,

,

(RSC)

-



""
INI-




(1000 - 100000)

(1000 - 100000)

(100 - 2000)

(50 - 4000)

(50 - 4000)

34

function mapGetCommonRscPath: GTKPChar;


(RSC).
.
TGisProperty.mapGetExclusiveAccess
function mapGetExclusiveAccess: integer;

. , 0 .

.
.
TGisProperty.mapGetHandleForMessage
function mapGetHandleForMessage : HWND;
"" (
, , ..).
TGisProperty.mapGetMapAccessLanguage
function mapGetMapAccessLanguage : integer;
: 1 - ; 2 - ; ... (. Maptype.h).
TGisProperty.mapGetIniPath
function mapGetIniPath : string;
INI- .
, ,
- ( ).
TGisProperty.mapGetPathShell
function mapGetPathShell: string;
- ,
- (
*.iml, EPSG, wmslist.ini, xml- .).
TGisProperty.mapGetScreenPrecision
function mapGetScreenPrecision : integer;
(1000 - 100000).
0.
TGisProperty.mapGetScreenScale
function mapGetScreenScale : integer;
(100 - 2000).
0.
TGisProperty.mapGetScreenSize
function mapGetScreenSize : integer;
(50 - 4000).
0.
TGisProperty.mapGetScreenHeight
function mapGetScreenHeight: integer;
.
mapSetScreenImageSize.
TGisProperty.mapGetScreenWidth
function mapGetScreenWidth: integer;
.
mapSetScreenImageSize.
TGisProperty.mapIsMessageEnable
function mapIsMessageEnable : integer;

.
TGisProperty.mapMessageEnable
function mapMessageEnable(aEnable : integer) : integer;
( ).
aEnable = 0 - .
.
TGisProperty.mapScreenMeter2Pixel
function mapScreenMeter2Pixel(aMetric : double) : integer;
,
.
TGisProperty.mapScreenPixel2Meter
function mapScreenPixel2Meter(aPixel : integer) : double;
,
.

35

TGisProperty.mapSetCommonRscPath
function mapSetCommonRscPath(const aRscPath : GTKPChar) : GTKPChar;
(RSC).
.
TGisProperty.mapSetPathShell
procedure mapSetPathShell(Value : string);
- ,
- ( *.iml,
EPSG, wmslist.ini, xml- .).
.
TGisProperty.mapSetExclusiveAccess
function mapSetExclusiveAccess(access:integer) : integer;

. , 0 .

.
. - .
.
TGisProperty.mapSetHandleForMessage
function mapSetHandleForMessage(aHwnd : HWND) : HWND;
"" (
, , ..).
- 0x590;
wparm : -1 ; -2 ; 0-100 ;
lparm : .
- (
). 0x590.
.
TGisProperty.mapSetIniPath
procedure mapSetIniPath(Value : string);
INI- .
TGisProperty.mapSetMapAccessLanguage
procedure SetMapAccessLanguage(aCode : integer);
: 1 - ; 2 - ; ... (. Maptype.h). .
TGisProperty.mapSetScreenImageSize
function mapSetScreenImageSize(aWidth, aHeight : integer) : integer;
.
,
0.
0.
TGisProperty.mapSetScreenPrecision
function mapSetScreenPrecision(aValue : integer) : integer;
(1000 - 100000).
.
0.
TGisProperty.mapSetScreenPrecisionEx
procedure mapSetScreenPrecisionEx(aValueHor : double; aValueVer : double);
(1000 - 100000)
.
.
0.
TGisProperty.mapSetScreenScale
function mapSetScreenScale(aScale : integer) : integer;
(100 - 2000).
.
0.
TGisProperty.mapSetScreenSize
function mapSetScreenSize(aSize : integer) : integer;
(50 - 4000).
0.
TGisProperty.mapSetScreenSizeEx
function mapSetScreenSizeEx(aSize : integer; aHdc : HDC) : integer;
(50 - 4000).
hdc -

36

.
0.

TMapAtlas. - .
,
.
:
TObject
|
TPersistent
|
TComponent
.
. ,
,

. ,
TMapAtlas.
,
() .
, arealist.rsc.
GisToolKit Professional. ,
.
.als. , ,
TMapView, , ,
TMapAtlas.
:
public
AtlasHandle
IsGlobal
ItemCount
published
AtlasFileName

public
AddItem
CloseAtlas
CreateAtlas
DeleteItem
ExistsMapInFrame
ExistsMapInPoint
GoItemDown
GoItemDownByScale
GoItemUp
GoItemUpByScale
ItemByNumber
ItemByIdent
OpenAtlas
SetItemMinMax
SetItemPriority




()




()














TMapAtlas.AddItem
function AddItem(const FileName: string): integer;
() , TMapAtlas.
FileName .
.

TMapAtlas.AtlasFileName
property AtlasFileName: string
.
, ()
. .als.
, , TMapAtlas,

37

AtlasHandle .

( OpenAtlas) , , TMapAtlas
.
, ,
, , AtlasHandle
.
! OpenAtlas CreateAtlas,
,
, ,
AtlasFileName.
, ,
TMapAtlas.
TMapAtlas.AtlasHandle
property AtlasHandle: HALS
type HALS = integer
.
. TMapAtlas , .
TMapAtlas.CloseAtlas
procedure CloseAtlas
, .
:
AtlasHandle = 0
AtlasFileName = ( ).
TMapAtlas.CreateAtlas
function CreateAtlas(const AtlsName: string; const RscName: string;
AtlsType: TAtlsType): HALS;
type
HALS = integer;
TAtlsType = (AT_GLOBAL, AT_LOCAL);
.

, RscName
arealist.rsc, GisToolKit Professional.
AtlsName
.als.
AtlsType AT_GLOBAL AT_LOCAL
.
,
AtlasFileName .
TMapAtlas.DeleteItem
function DeleteItem(Ident: integer): integer;
() .
.
TMapAtlas.ExistsMapInFrame
function ExistsMapInFrame(scale: integer; frame: HOBJ;
direct: TAtlSeek): boolean;
type
TAtlSeek = (AS_UP, AS_DOWN, AS_ANY);
( scale
) (). ,
frame.
.
direct AS_UP, AS_DOWN AS_ANY
(), ()
.
true.
TMapAtlas.ExistsMapInPoint
function ExistsMapInPoint(scale: integer; var geopoint: TDOUBLEPOINT;
direct: TAtlSeek): boolean;
type
TAtlSeek = (AS_UP, AS_DOWN, AS_ANY);
( scale
) geopoint.
.
direct AS_UP, AS_DOWN AS_ANY
(), ()
.
true.
TMapAtlas.GoItemDown

38

function

GoItemDown(Ident: integer; var GeoPoint: TDOUBLEPOINT;


var AtlasItem: TALSITEM): integer;

type
TALSITEM = packed record //
Ident : longint;
//
Path : array[1..MAX_PATH]of char; // [260]
Name : array[1..32]of char;
// ( )
Scale : longint;
// ( )
Minimum : longint;
// (, 100 000)
Maximum : longint;
// (, 500 000)
Priority : longint;
//
end;
GeoPoint ( )
Ident.
. , AtlasItem
, .
TMapAtlas.GoItemDownByScale
function GoItemDownByScale(scale: integer; var GeoPoint: TDOUBLEPOINT;
var AtlasItem: TALSITEM): integer; overload;
function GoItemDownByScale(scale: integer; frame: HOBJ;
var AtlasItem: TALSITEM): integer; overload;
GeoPoint,
() frame, .
GeoPoint .
, frame.
.
, AtlasItem ,
.
(
).
, 10000000,
, ,
.
.
TMapAtlas.GoItemUp
function GoItemUp(Ident: integer; var GeoPoint: TDOUBLEPOINT;
var AtlasItem: TALSITEM): integer;
GeoPoint ( )
Ident.
. , AtlasItem
, .
TMapAtlas.GoItemUpByScale
function GoItemUpByScale(scale: integer; var GeoPoint: TDOUBLEPOINT;
var AtlasItem: TALSITEM): integer; overload;
function GoItemUpByScale(scale: integer; frame: HOBJ;
var AtlasItem: TALSITEM): integer; overload;
GeoPoint,
() frame, .
GeoPoint .
, frame.
.
, AtlasItem ,
.
(
).
, 1,
, ,
. .
TMapAtlas.IsGlobal
function IsGlobal: boolean;
true, ,
, .
TMapAtlas.ItemByIdent
function ItemByIdent(Ident: integer; var AtlasItem: TALSITEM): integer;
Ident.
AtlasItem .
.
TMapAtlas.ItemByNumber
function ItemByNumber(Number: integer; var AtlasItem: TALSITEM): integer;
.

39

ItemCount. 1.
AtlasItem
.

ItemCount.
.
TMapAtlas.ItemCount
function ItemCount: integer;
(), .
0, , .
TMapAtlas.OpenAtlas
function OpenAtlas(const FileName: string): HALS;
type
HALS = integer;
. FileName
.als. ,
AtlasFileName .
.
TMapAtlas.SetItemPriority
function SetItemPriority(Ident: integer; Priority: integer): integer;
.
.
.

TMapCheckInside.
.
, :
, , .
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
ObjectIn1
ObjectIn2

CheckObjects
CheckSubjects
FullCheckObjects

( )
( )

( )

:
public

TMapCheckInside.CheckObjects
function CheckObjects: TCHECKOUT;
.
:
CHI_FIRSTIN
(
)
CHI_SECONDIN
(
)
CHI_CROSS

CHI_NOCROSS

TMapCheckInside.CheckSubjects
function CheckSubjects: TCHECKOUT;
( ).

40

:
CHI_FIRSTIN
(
)
CHI_FIRSTINSUBJ
(
)
CHI_SECONDIN
(
)
CHI_SECONDINSUBJ
(
)
CHI_CROSS

CHI_NOCROSS

TMapCheckInside.FullCheckObjects
function FullCheckObjects(prec : double) : TCHECKOUT;
.
CheckObjects.
prec (
).
:
CHI_FIRSTIN
(
)
CHI_SECONDIN
(
)
CHI_CROSS

CHI_NOCROSS

CHI_TOUCHIN

CHI_TOUCHOUT

TMapCheckInside.ObjectIn1
property ObjectIn1: TMapObj;
.
TMapCheckInside.ObjectIn2
property ObjectIn2: TMapObj;
.

TMapClassEdit. ,
.

:
;
( );
;
;
( );
;
;
( );
.

.
, ( DialogKind), : Key - ( ) InCode -
( ) SiteNum - (
). TCustomMaskEdit.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl

41

|
TCustomEdit
|
TCustomMaskEdit
|
TMapCustomComboEdit
|
TMapClassEdit
:
published
BorderStyle
ButtonHint
ButtonWidth
CharCase
ClickKey
Color
Ctl3D
DialogKind
DragCursor
DragMode
Enabled
Font
HideSelection
InCode
Key
Locals
MapView
ParentColor
ParentCtl3D
ParentFont
ParentShowHint
PopupMenu
ReadOnly
ShowHint
SiteNum
TabOrder
TabStop
Text
Visible

( )
( )
,

:
public
Create

:
published
OnAfterDialog
OnBeforeDialog
OnButtonClick
OnChange
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMouseDown
OnMouseMove
OnMouseUp
TMapClassEdit.ButtonHint
property ButtonHint: String;
.

42

TMapClassEdit.ButtonWidth
property ButtonWidth: Integer;
.
TMapClassEdit.Create
constructor Create(AOwner: TComponent); override;
DialogKind.
TMapClassEdit.DialogKind
property DialogKind: TDialogKindClass;
:
dkObjCode ;
dkObjKey ( );
dkObjName ;
dkSemCode ;
dkSemKey ( );
dkSemName ;
dkLayerCode ;
dkLayerKey ( );
dkLayerName .
TMapClassEdit.InCode
property InCode: Integer;
( ) ,
( - DialogKind).
Text Key, .
, .
TMapClassEdit.Key
property Key: String;
( ) , (
- DialogKind).
Text InCode, .
, , .
TMapClassEdit.Locals
property Locals : TLOCALS;
TLOCAL = (L_LINE, L_SQUARE, L_MARK, L_TEXT, L_VECTOR, L_PATTERN);
TLOCALS = set of TLOCAL;
(, , ) ,
.
TMapClassEdit.MapView
property MapView: TMapView;
, .
,
.
TMapClassEdit.OnAfterDialog
property OnAfterDialog: TExecSelDialogEvent;
.
TMapClassEdit.OnBeforeDialog
property OnBeforeDialog: TExecSelDialogEvent;

TMapClassEdit.OnButtonClick
property OnButtonClick: TNotifyEvent;
.
TMapClassEdit.OnChange
property OnChange: TNotifyEvent;
.
TMapClassEdit.SiteNum
property SiteNum: Integer;
, , = 0, ..
.
dkObjCode ( ), dkObjKey (
( )),dkObjName ( ), dkLayerCode ( ),
dkLayerKey ( ), dkLayerName ( )
, = -1 , .
TMapClassEdit.Text
property Text: String;
, DialogKind

43

TMapComponent. .
, TMapView
TMapWindow. TMapView.
:
TObject
|
TPersistent
|
TComponent
:
protected
MapView
:
protected
MapAction
:
protected
OnChangeMapView
TMapComponent.MapAction
procedure MapAction(Action: word); virtual;
, TMapView,
.
Action.
.
TMapComponent.MapView
property MapView: TMapView;
, .
,
.
TMapComponent.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .

TMapConvertor. - .

.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published

44

DestName
DestType
List
MapSelect
MapView
NewMapName
RscName
Selecting
SoureName
SoureType
Updating

:
protected
MapAction

TmapView

public
Convert
Create
Destroy

:
published
OnChangeMapView
OnConvErrorCoordEvent
OnConvErrorEvent
OnConvInfoListEvent
OnConvListEvent
OnConvMapEvent
OnConvProcess

TMapConvertor.Convert
procedure Convert(InThread: boolean);
,
SourceName SoureType DestType
, DestName.
:
;
, MAP VIEW;
, , ;
DIR.
InThread :
true - ( );
false - .
TD_VIEW .
gisvecex.dll.
.
.
.
TMapConvertor.Create
constructor Create(AOwner: TComponent); override;
TMapSelect
:
SoureName
= `';
DestName
= `';
RscName
= `';
SoureType
= TS_MAP;
DestType
= TD_MAP;
NewMapName
= `';
Selecting
= false;
Updating
= false.
TMapConvertor.DestName
property DestName: string;
- .
DestType, TD_VIEW, .
.

45

TMapConvertor.Destroy
destructor Destroy; override;
TMapSelect
TMapView, .
TMapConvertor.DestType
TConvertorTypeDest = (
//
TD_VIEW,
//
TD_MAP,
//
TD_DIRSXFWIN,
// SXF Windows
TD_DIRSXFDOS,
// SXF DOS
TD_DIRTXTXY,
//
TD_DIRTXTBL,
//

TD_SXFWIN,
// SXF Windows
TD_SXFDOS,
// SXF DOS
TD_TXTXY,
//
TD_TXTBL
//
);
property DestType: TConvertorTypeDest;
- .
TD_VIEW DestName
TMapView.
.
TMapConvertor.List
property List: integer;
,
.
.
1.
.
TMapConvertor.MapAction
procedure MapAction(Action: word); override;
TMapView:
:
.
TMapConvertor.MapSelect
property MapSelect: TMapSelect;
.
/.
TMapSelect ,
.
(TS_VIEW TD_VIEW).
TMapConvertor. MapView
property MapView: TMapView;
, .
,
.
TMapConvertor.NewMapName
property NewMapName: string;
.
,
DestName.
DestType, TD_VIEW TD_MAP.
.
TMapConvertor.OnConvErrorCoordEvent
TMapSortEvent = procedure (Sender:TObject;var StopProcess:boolean) of object;
property OnConvErrorCoordEvent: TMapSortEvent;
.
,
.

.

StopProcess true. StopProcess false.
:
StopProcess - .
TMapConvertor.OnConvErrorEvent
TMapSortEvent = procedure (Sender:TObject;var StopProcess:boolean) of object;

46

property OnConvErrorEvent: TMapSortEvent;


.
, -
.

.

StopProcess true. StopProcess false.
:
StopProcess - .
TMapConvertor.OnConvInfoListEvent
TMapSortEvent = procedure (Sender:TObject;var StopProcess:boolean) of object;
property OnConvInfoListEvent: TMapSortEvent;
.
,
.

.

StopProcess true. StopProcess false.
:
StopProcess - .
TMapConvertor.OnConvListEvent
TMapSortListEvent = procedure (Sender: TObject; ListCount: integer; ListNumber: integer; var
StopProcess: boolean) of object;
property OnConvListEvent: TMapSortListEvent;
.
,
.

.

StopProcess true. StopProcess false.
:
ListCount
- .
ListNumber - .
StopProcess - .
TMapConvertor.OnConvMapEvent
TMapSortMapEvent = procedure (Sender: TObject; MapCount: integer; MapNumber:
integer; var StopProcess: boolean) of object;
property OnConvMapEvent: TMapSortMapEvent;
.
,
.

.

StopProcess true. StopProcess false.
:
MapCount
- .
MapNumber - .
StopProcess
- .
TMapConvertor.OnConvProcess
TMapSortProcessEvent = procedure (Sender: TObject; Persent: integer; var StopProcess: boolean) of
object;
property OnConvProcess: TMapSortProcessEvent;
.
.

.

StopProcess true. StopProcess false.
:
Persent
- .
StopProcess - .
TMapConvertor.RscName
property RscName: string;
.
,
DestName.

47

DestType, TD_VIEW, TD_MAP.


.
TMapConvertor.Selecting
property Selecting: boolean;
.
, true, ,
, MapSelect.
(TS_VIEW TD_VIEW).
.
TMapConvertor.SoureName
property SoureName: string;
- .
SourceType, TS_VIEW, .
.
TMapConvertor.SourceType
TConvertorTypeSource = (
//
TS_VIEW,
//
TS_MAP,
//
TS_DIR,
//
TS_SXF,
// SXF
TS_TXT
//
TS_S57
// S57
);
property SourceType: TConvertorTypeSource;
- .
TS_VIEW SourceName
TMapView.
.
TMapConvertor.Updating
property Updating: boolean;
.
, true, ,
DestName , SourceName.
DestType, TD_VIEW TD_MAP.
.

TMapCross. .

. .
.
.
, .
\Example\Delphi5\MapCross
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
ObjectIn1
ObjectIn2
ObjectOut
Precision
IsCross
LocalOut
:

48

public
Create
Destroy
CreateCross
ExecuteUnion
FreeCross
GetNextCross


.
.
.
,

TMapCross.Create
constructor Create(Aowner: TComponent); override;
.
isCross = false Precision = 0.
TMapCross.CreateCross
procedure CreateCross;
. .
.
TMapCross.Destroy
destructor Destroy;
, ,
, .
TMapCross.ExecuteUnion
function ExecuteUnion : boolean;
.
, . true,
false.
TMapCross.FreeCross
procedure FreeCross;
, CreateCross. FreeCross
. ,
. .
TMapCross.GetNextCross
function GetNextCross: boolean;
.
true , ObjOut,
.
false. ,
CreateCross.
TMapCross.isCross
property isCross : boolean;
.
, .
, true,
false. false
,
. CreateCross.
TMapCross.LocalOut
property LocalOut: TLocalOut;
, .
OUT_LINE

OUT_SQUARE

TMapCross.ObjectIn1
property ObjectIn1: TMapObj;
.
.
. .
, ,
.
TMapCross.ObjectIn2
property ObjectIn2: TMapObj;
,
.
TMapCross.ObjectOut

49

property ObjectOut: TMapObj;


.
.
LocalOut.
TMapCross.Precision
property Precision: double;
.
( ) .

TMapCreateObject. .

,
.
:
TObject
|
TPersistent
|
TComponent
:
public
ExCode
CreateMode
KeyName
Local
ShowDialog
DrawMode

published
MapScreen
SiteNumber


MapScreen

:
public
Create
Destroy
Execute

:
published
OnCommit

TMapCreateObject.Create
constructor Create(AOwner: TComponent); override;
.
:
PlaceOut
= PP_PLANE;
ExCode
= 1000000 -
Local
= L_MARK -
ShowDialog
= TRUE
DrawMode
= DM_POLYLINE; -
CreateMode
= cmExCodeAndLocal
KeyName
= 'L1000000001' -
TMapCreateObject.Destroy
destructor Destroy; override;
.
TMapCreateObject.CreateMode

50

property CreateMode : TCreateMode;



TCreateMode =
(
cmExCodeAndLocal = 0, //
cmKeyName = 1 // ()
);
TMapCreateObject.KeyName
property KeyName : string;
.
TMapCreateObject.Destroy
destructor Destroy; override;
.
TMapCreateObject.DrawMode
property DrawMode : integer
read FMode write FMode default DM_POLYLINE;
. ,
ShowDialog false
.
:
DM_POLYLINE
= $005D; //
DM_HORZ_RECT
= $005E; //
DM_ANGLE_RECT
= $005F; //
DM_POLY_RECT
= $0060; // ()
DM_FIX_CIRCLE
= $0061; //
DM_VAR_CIRCLE
= $0062; //
DM_MET_FILE
= $0064; //
DM_KB_INPUT
= $0065; //
DM_DUAL_TRACE
= $0066; // ()
DM_SMOOT_SPLINE = $0067; //
DM_LINEAR_SPLINE = $0068; //
DM_ONE_TRACE
= $0069; // ()
DM_3P_CIRCLE
= $006A; //
TMapCreateObject.ExCode
property ExCode
: cardinal
read FExCode write FExCode default 1000000;
.
ShowDialog.
TMapCreateObject.Execute
function Execute : boolean;
.
ShowDialog true .
,
ExCode, Local DrawMode.
ShowDialog false - ExCode, Local DrawMode
.
true, .
TMapCreateObject.Local
property Local
: TLOCAL
read FLocal write FLocal default L_MARK;
.
ShowDialog

TMapCreateObject.SiteNumber
property SiteNumber : integer
read FIndex write SetSiteNumber default 0;
MapScreen, .
= 0 ,
:
1. MapScreen
2. MapScreen .
0 MapScreen.MapSites.SiteCount. 0
, 1,2 ...
MapScreen.MapSites.
TMapCreateObject.OnCommit
property OnCommit : TCommitProc read FOnCommit write FOnCommit;
TCommitProc = procedure(Obj : HObj; var IsCommit : boolean) of Object;
( ).
,
.
Obj : HObj,
( ) . var IsCommit : boolean ,

51


. ,
.
TMapCreateObject.ShowDialog
property ShowDialog : boolean
read FShowDialog write FShowDialog default TRUE;
.
TRUE :
Execute .
(ExCode), (Local)
. ExCode Local
, DrawMode - .
FALSE :
.
:
(ExCode), (Local) ( DrawMode).

TMapDataList.
.

() ,
( , , ).
(, . .).
, .
GisTool\Example\Delphi5\InfoMap
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
stdPageNumber
stdMtrPageNumber
stdMtrNumber
stdRstPageNumber
stdRstNumber
stdSitPageNumber
stdSitNumber
stdTinPageNumber
stdTinNumber
stdSaveMtrPath
stdSaveRstPath
stdSaveSitPath
stdSaveTinPath
stdTinPageNumber

EditMtr
EditRsw
EditSit
MapView

/
/
/

Create

published

:
public
Execute

52

stdExecute

OnBeforChangeData

(,
)

:
published

TMapDataList.Create
constructor Create(Aowner: TComponent); override;
.
TMapDataList.EditMtr
property EditMtr: boolean;
.
. ,
true.
TMapDataList.EditRsw
property EditRsw: boolean;
.
. ,
true.
TMapDataList.EditSit
property EditSit: boolean;
.
.
, true.
TMapDataList.Execute
function Execute: boolean ;

.
,
: , , , . ,
.
. :
( , , );
;
(,
, , ),
( , );
.
true, false.
TMapDataList.stdPageNumber
property stdPageNumber : Integer;
.
.
:
0 ;
1 ;
2 ;
TMapDataList.stdMtrPageNumber, stdRstPageNumber, stdSitPageNumber, stdTinPageNumber
property stdMtrPageNumber : Integer;
,
(, , , ).
.
:
0 ;
1 ;
TMapDataList.stdMtrNumber, stdRstNumber, stdSitNumber, stdTinNumber,
property stdMtrNumber : Integer;
(, ,
, ) . .
TMapDataList.stdSaveMtrPath, stdSaveRstPath, stdSaveSitPath, stdSaveTinPath

53

property stdSaveMtrPath :string;



(, , , ). .
,
.
TMapDataList.stdExecute
function stdExecute: boolean ;

. .
,
: , , , , WMS .
, std.
true, false.
TMapDataList.MapView
property MapView: TMapView;
, .
TMapDataList.OnBeforChangeData
TChangeDataEvent = procedure (aActionType : TActionType; aFileName : string; aFileType : TFileType;
var aChange ; boolean) of object;
property OnBeforChangeData : TChangeDataEvent;
( ,
, ).
. .
:
aActionType
AT_OPENFILE ;
AT_CLOSEFILE ;
aFileName ;
aFileType
MT_MAP (.map);
MT_SIT (.sit);
MT_RSW, MT_RST (.rsw, .rst);
MT_MTL, MT_MTQ, MT_MTW, MT_MTR (.mtl, .mtq, .mtw, .mtr);
aChange ,

.

TMapDataView. .

TMapDataView
.
( MapHandle).
.
.
(mapacces.dll
gisacces.dll).
TMapDataView GisToolKit,
, TMapView TMapWindow, ,
(mapacces.dll gisacces.dll),
,
( 2008).
. TMapDataView,
MapClose.
!
, TMapAccessDll.
TMapAccessDll cLibrary ( GisToolKit
cLibrary=1; - cLibrary=2).
:
TObject
|
TPersistent
|

54

TComponent
|
TControl
|
TWinControl
|
TScrollingWinControl
|
TMapDataView
:
public
MapHandle
MapVisible
ViewScale
ZoomByMouseBtn
published
Align
Color
Cursor
Language
MapLeft
MapTop
TypeGisLib






X

Y
,

:
public
Create
Destroy
MapClose
MapOpen
ScaleInPoint

:
published
OnSetNewMapHandle
OnChangeViewScale
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMapAfterPaint
OnMapBeforePaint
OnMouseDown
OnMouseMove
OnMouseUp

TMapDataView.Color
property Color: TColor;
.
, .
.
TMapDataView.Create
constructor Create(AOwner: TComponent); override;
.

55


:
Width
= 150;
Height
= 100;
Color
= clBtnFace;
ZoomByMouseBtn = false;
BorderStyle
= bsSingle.
TMapDataView.Destroy
destructor Destroy; override;
.
, , ,
.
TMapDataView.Language
property Language : TMAPDLLLANGUAGE;
.
TMapDataView.MapClose
procedure MapClose;
, .
, ,
MapHandle=0.
TMapDataView.MapHandle
property MapHandle: HMap;
.
.
, .
0.
TMapDataView.MapLeft
property MapLeft: integer;

.
HorzScrollBar.Position.
0.
TMapDataView.MapOpen
function MapOpen(MapFileName : string): boolean;
.
MapHandle true.
false MapHandle=0.
TMapDataView.MapTop
property MapTop: integer;

.
VertScrollBar.Position.
0.
TMapDataView.MapVisible
property MapVisible: bolean;
.
TMapDataView.OnChangeViewScale
TChangeScaleEvent = procedure (Sender: TObject; OldScale: integer; NewScale: integer) of object;
property OnChangeViewScale: TChangeScaleEvent;
.
ViewScale.
:
Sender
- TmapView, TmapWindow.
OldScale
- .
NewScfle
- .
TMapDataView.OnMapAfterPaint
TMapPaintEvent = procedure (Sender : TObject; aCanvas : TCanvas; MapPaintRect : TRect) of object;
property OnMapPaint: TMapPaintEvent;
.
,
, .
.
:
Sender
- TMapDataView.
MapPaintRect - .

56

, .
aCanvas
- Sender. ! aCanvas
:
MapLeft, -MapTop. , 0,0;
10,20 MapLeft, MapTop; MapLeft + 10, MapTop + 20.
: X1, Y1, X2, Y2
. Point:TcompMapPoint.
Point.PlaceInp := PP_PLANE;
Point.PlaceOut := PP_PICTURE;
Point.SetPoint(X1, Y1);
Point.GetPoint(Rect1.Left, Rect1.Top);
Point.SetPoint(X2, Y2);
Point.GetPoint(Rect1.Right, Rect1.Bottom);
aCanvas.FrameRect(Rect1);
TMapDataView.OnMapBeforePaint
TMapPaintEvent = procedure (Sender : TObject; aCanvas : TCanvas; MapPaintRect : TRect) of object;
property OnMapPaint: TMapPaintEvent;
.
,
, ,

.
TMapDataView .
:
Sender
- TMapDataView.
MapPaintRect - .
, .
aCanvas - Sender.
! aCanvas :
MapLeft, -MapTop. ,
0,0; 10,20
MapLeft, MapTop; MapLeft + 10, MapTop + 20. :
X1, Y1, X2, Y2 .
Point:TcompMapPoint.
Point.PlaceInp := PP_PLANE;
Point.PlaceOut := PP_PICTURE;
Point.SetPoint(X1, Y1);
Point.GetPoint(Rect1.Left, Rect1.Top);
Point.SetPoint(X2, Y2);
Point.GetPoint(Rect1.Right, Rect1.Bottom);
aCanvas.FrameRect(Rect1);
TMapDataView.OnSetNewMapHandle
TOnSetNewMapHandleEvent = procedure (Sender: TObject) of object;
property OnSetNewMapHandle: TOnSetNewMapHandleEvent;
.
MapHandle ,
.
TMapDataView.ScaleInPoint(MapX, MapY, NewScale : integer)
procedure ScaleInPoint(MapX, MapY, NewScale : integer);
.
.
,
.
MapLeft
MapTop ,
MapX MapY,
( MapLeft MapTop ) .
TMapDataView.TypeGisLib
property TypeGisLib : TMAPLIBTYPE;
type
TMAPLIBTYPE = (
DLL_GISACCES, // gisacces Gis ToolKIt
DLL_MAPACCES // mapacces
2003
);
, .
, 2003,
DLL_MAPACCES.

57

TMapDataView.ViewScale
property ViewScale: integer;
.
,
.
MapLeft
MapTop ,
.
.
0.
TMapDataView. ZoomByMouseBtn
property ZoomByMouseBtn : boolean ;
.
, true, ,
(
), ( ).
.
ZoomByMouseBtn=false .

TMapDirectoryEdit. .

.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TCustomEdit
|
TCustomMaskEdit
|
TMapCustomComboEdit
|
TMapFileDirEdit
|
TMapDirectoryEdit
:
published
AcceptFiles
Anchors
AutoSelect
BiDiMode
BorderStyle
ButtonHint
ButtonWidth
CharCase
ClickKey
Color
Constraints
Ctl3D
DialogKind
DialogOptions
DialogText
DirectInput
DragCursor
DragKind
DragMode
EditMask
Enabled


(TSelectDirOpts)

58

Font
Glyph
GlyphKind
HideSelection
HistoryList
ImeMode
ImeName
InitialDir
MultipleDirs
NumGlyphs
ParentBiDiMode
ParentColor
ParentCtl3D
ParentFont
ParentShowHint
PopupMenu
ReadOnly
ShowHint
TabOrder
TabStop
Text
Visible

:
public
Create

:
published
OnAfterDialog
OnBeforeDialog
OnButtonClick
OnChange
OnClick
OnContextPopup
OnDblClick
OnDragDrop
OnDragOver
OnEndDock
OnEndDrag
OnDropFiles
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMouseDown
OnMouseMove
OnMouseUp
OnStartDock
OnStartDrag

TMapDirectoryEdit.ButtonHint
property ButtonHint: String;
.
TMapDirectoryEdit.ButtonWidth
property ButtonWidth: Integer;
.
TMapDirectoryEdit.Create
constructor Create(AOwner: TComponent); override;
DialogKind.
TMapDirectoryEdit.DialogKind
property DialogKind: TDirDialogKind;
: gtVCL , gtWin32 .
TMapDirectoryEdit.DialogOptions
property DialogOptions: TSelectDirOpts;
.
TMapDirectoryEdit.Glyph

59

property Glyph: TBitmap;


.
TMapDirectoryEdit.GlyphKind
property GlyphKind: TGlyphKind;
(glCustom, glDefault,
glDropDown, glEllipsis). = glDefault.
TMapDirectoryEdit.MultipleDirs
property MultipleDirs: Boolean;
.
true .
TMapDirectoryEdit.Text
property Text: String;
.
TMapDirectoryEdit.OnAfterDialog
property OnAfterDialog: TExecOpenDialogEvent;
.
TMapDirectoryEdit.OnBeforeDialog
property OnBeforeDialog: TExecOpenDialogEvent;

TMapDirectoryEdit.OnButtonClick
property OnButtonClick: TNotifyEvent;
.

TMapEditMetric. .

TMapEditMetric
. ,
, TMapObj,
MapObj.
TMapEditMetric , TMapView
. StartAction.
-

( EditMode):
(EditMode = emCreate);
(EditMode = emCreateSubj) (
, , ..
, );
(EditMode = emAddPoint) (
,
);
(EditMode = emRemPoint) (
,
);
(emGetPoint);
( ) (EditMode = emEdit);
(EditMode = emMove).

( EditMode)
() , -.
(EditMode = emCreate) (MapObj.Local =
OL_MARK) ,
.
.
, .
(EditMode = emCreate) (MapObj.Local =
OL_VECTOR) (MapObj.Local = OL_TEXT) ,
.
(ShowTitleText = true), (ShowTitleText =
true).
. .
.
.

60

, .
(MapObj.Local = OL_TEXT)
StartAction.
(EditMode = emCreate)
(MapObj.Local =
OL_SQUARE), (MapObj.Local = OL_LINE)
. .

, Ctrl
.
(EditMode = emMove)

MoveWhenDown. MoveWhenDown = false,

. .
MoveWhenDown = true, ,
. ,
,
Ctrl .

, Ctrl
,
. EditComplite.

StopAction,
Ctrl .
EditMode = emGetPoint .
OnMapGetPointEvent,
.
() ,
, TMapObj, OnExecute,

( StopAction).
OnExecute .
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TGtkAction
|
TMapEditMetric
:
public
Active

published
EditMode
ConturColor
ConturWidth
LineBlank
LineColor
LineDash
LineWidth
MoveWhenDown




()
()
()
()

MapView
MapObj
ShowTitleText
:
public
Create
Destroy
EditComplite
StartAction
StopAction

,

,

61

:
published
OnExecute
OnGetPoint
OnStopActionQuery
OnStopAction


,
emGetPoint

TMapEditMetric.Active
property Active : boolean;
.
true, .
TMapEditMetric.ConturColor
Property ConturColor : TColor;
( ).
XOR,
, ( ).
TMapEditMetric. ConturWidth
property ConturWidth : integer;
.
TMapEditMetric.Create
constructor Create(Aowner: TComponent); override;
.
:
-

ConturColor := clRed;

ConturWidth := 3;

LineColor := clYellow;

LineWidth := 1;

LineBlank := 2;

LineDash := 4;

TMapEditMetric. Destroy
destructor Destroy; override;
TMapEditMetric, StopAction.
TMapEditMetric. EditComplite
procedure EditComplite;
OnStopAction.
TMapEditMetric.EditMode
property EditMode: TEditMode;
TEditMode = (emEdit, emCreate, emCreateSubj, emMove, emAddPoint, emRemPoint);
:
emEdit
(
)
emCreate

emCreateSubj
(
, ,
.. , )
emMove

emAddPoint
(
,
)
emRemPoint
(
,
)
emGetPoint

TMapEditMetric. LineBlank
property LineBlank : integer;
,
.
TMapEditMetric.LineColor
Property LineColor : TColor;

62

,
. XOR,
,
.
TMapEditMetric. LineDash
property LineDash : integer;
,
.
TMapEditMetric. LineWidth
property LineWidth : integer;
,
.
TMapEditMetric. MapObj
property MapObj : TMapObj;
, . MapObj
, Active false.
TMapEditMetric.MapView
property MapView: TMapView;
, .
TMapEditMetric.MoveWhenDown
property MoveWhenDown :boolean;
.
, .
TMapEditMetric.OnExecute
property OnExecute : TNotifyEvent;
.
, ,
MapObj, ,
Ctrl .
TMapEditMetric.OnGetPoint
TMapGetPointEvent = procedure(aObject : TObject; aShift : TShiftState;
aMapPoint : TMapPoint) of object;
OnGetPoint : TMapGetPointEvent;
. ;
aShift , aMapObj
.
TMapEditMetric.OnStopAction
property OnStopAction : TNotifyEvent;
.
, ,
, .
TMapEditMetric.OnStopActionQuery
TStopActionQueryEvent = procedure (Sender : TObject; var CanStop : Boolean) of
object;.
property OnStopActionQuery : TStopActionQueryEvent;
.
, StopAction. CanStop
false, .
TMapEditMetric.ShowTitleText
property ShowTitleText : boolean;
.
.
( emCreate, emMove)
(ShowTitleText = true) ,
(, ..). ,
,
.
(ShowTitleText = false), .
.
.
ShowTitleText = true ( ).
TMapEditMetric. StartAction
procedure StartAction; virtual;
. EditMode,
,
.
,

63

. ,
( ,
Ctrl ) Commit MapObj.
EditMode, ,
.
Commit .
, .
MapView, MapObj.
TMapEditMetric. StoptAction
procedure StopAction; virtual;
. ()
MapObj , OnExecute .

TMapFileNameEdit. .

.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TCustomEdit
|
TCustomMaskEdit
|
TMapCustomComboEdit
|
TMapFileDirEdit
|
TMapFileNameEdit
:
public
Dialog
DialogFiles
published
AcceptFiles
Anchors
AutoSelect
BiDiMode
BorderStyle
ButtonHint
ButtonWidth
CharCase
ClickKey
Color
Constraints
Ctl3D
DefaultExt
DialogKind
DialogOptions
DialogTitle
DirectInput
DragCursor
DragKind
DragMode
EditMask
Enabled
FileEditStyle
FileName


(TOpenOption)

64

Filter
FilterIndex
Font
Glyph
GlyphKind
HideSelection
HistoryList
ImeMode
ImeName
InitialDir
IsCustomTitle
NumGlyphs
ParentBiDiMode
ParentColor
ParentCtl3D
ParentFont
ParentShowHint
PopupMenu
ReadOnly
ShowHint
TabOrder
TabStop
Text
Visible

:
public
Create

:
published
OnAfterDialog
OnBeforeDialog
OnButtonClick
OnChange
OnClick
OnContextPopup
OnDblClick
OnDragDrop
OnDragOver
OnDropFiles
OnEndDock
OnEndDrag
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMouseDown
OnMouseMove
OnMouseUp
OnStartDock
OnStartDrag

TMapFileNameEdit.ButtonHint
property ButtonHint: String;
.
TMapFileNameEdit.ButtonWidth
property ButtonWidth: Integer;
.
TMapFileNameEdit.Create
constructor Create(AOwner: TComponent); override;
.
DialogKind.
TMapFileNameEdit.Dialog
property Dialog: TOpenDialog;
.
TMapFileNameEdit.DialogKind

65

property DialogKind: TFileDialogKind;


.
:
gtOpen - ,
gtSave - ,
gtOpenPicture - ( Delphi 3),
gtSavePicture - ( Delphi 3).
TMapFileNameEdit.DialogOptions
property DialogOptions: TOpenOptions;
.
TMapFileNameEdit.DialogTitle
property DialogTitle: String;
.
TMapFileNameEdit.Glyph
property Glyph: TBitmap;
.
TMapFileNameEdit.GlyphKind
property GlyphKind: TGlyphKind;
(glCustom, glDefault,
glDropDown, glEllipsis). = glDefault.
TMapFileNameEdit.Text
property Text: String;
.
TMapFileNameEdit.OnAfterDialog
property OnAfterDialog: TExecOpenDialogEvent;
.
TMapFileNameEdit.OnBeforeDialog
property OnBeforeDialog: TExecOpenDialogEvent;

TMapFileNameEdit.OnButtonClick
property OnButtonClick: TNotifyEvent;
.

TMapFind. .
, ,
, , .
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
Active
BOF

EOF
MapSelect
MapSelectHandle
Point

published
FindPoint
MapObj
MapView
PlaceInp
PlaceOut
Radius

66

X
Y

:
protected
MapAction

TmapView

public
Center
Create
DefineProperties
Destroy
First
Last
Next
Prior





,

,

,

,

:
published
OnChangeMapObj
OnChangeMapView
OnFilterObj
OnStartFind
OnStopFind

TMapFind.Active
property Active: boolean;
.
true .
true, MapView MapObj
nil. MapObj
.
false .
MapObj .
TMapFind.BOF
property BOF: boolean;
.
true :
, ;
First;
Prior,
.
TMapFind.Center
procedure Center;
.
MapLeft MapTop
TMapView ,
.
.
TMapFind.Create
constructor Create(AOwner:TComponent);override;
.
:
TMapSelect
MapSelect;
TCompMapPoint
Point
:
Radius
= 0;
FindPoint

= false;

Active

= false;

67

BOF

= false;

EOF

= false;

PlaceInp

= PP_PICTURE;

PlaceOut
= PP_PLANE.
X Y .
TMapFind.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
FX, FY, FRadius,
.
TMapFind.Destroy
destructor Destroy;override;
.
, ,
:
TMapSelect
MapSelect;
TCompMapPoint Point
TMapView,
.
TMapFind.EOF
property EOF: boolean;
.
true :
, ;
Last;
Next,
.
TMapFind.FindPoint
property FindPoint: boolean;
/ .
, true,
, X Y Radius.
,
MapSelect .
, false,
.
.
TMapFind.First
procedure First;
, .
, .
BOF true.
, EOF
true, false.
.
TMapFind.Last
procedure Last;
, .
EOF true.
, BOF
true, false.
.
TMapFind.MapAction
procedure MapAction(Action: word); override;
TMapView:
:
.
: .
TMapFind.MapObj
property MapObj: TMapObj;
,
, .
TMapObj TMapView,
. TmapObj TmapFind.

68

TMapFind.MapSelect
property MapSelect: TMapSelect;
.
/.
TMapSelect ,
.
TMapFind.MapSelectHandle
property MapSelectHandle: HSelect;
.

TmapSelect.SelectHandle.
MapAPI.
0.
TMapFind. MapView
property MapView: TMapView;
, .
,
.
TMapFind.Next
procedure Next;
,
.
BOF false.
, EOF
true, false.
BOF EOF true,
.
.
TMapFind.OnChangeMapObj
TChangeMapObjEvent = procedure (Sender: TObject; OldMapObj: TMapObj; NewMapObj: TMapObj) of
object;
property OnChangeMapObj: TChangeMapObjEvent;
.
MapObj.
:
OldMapObj - .
NewMapObj - .
TMapFind. OnFilterObj
TFilterObj = procedure (aSender : TObject; aFindObjHandle : HOBJ; var aAccept : boolean) of object;
property OnFilterObj: TFilterObjt;
,
.
First, Next, Prior, Last ,
,
.
:
aSender - TMapFind, .
aFindObjHandle - .
aAccept , ,
. , aFindObjHandl MAP API,
. aAccept false,
. , ,
First, Next, Prior, Last false.
TMapFind.OnStartFind
property OnStartFind: TNotifyEvent;
.
TMapFind.OnStopFind
property OnStopFind: TNotifyEvent;
.
TMapFind.PlaceInp
property PlaceInp: TPPLACE;
.
,
.
.
TMapFind.PlaceOut
property PlaceOut: TPPLACE;
.

69

,
.
.
TMapFind.Point
property Point: TCompMapPoint;
.
TCompMapPoint,
X,Y.
TMapFind.Prior
procedure Back;
, ,
.
EOF false.
, BOF
true, false.
BOF EOF true,
.
.
TMapFind.Radius
property Radius: double;
.
PlaceInp.
PlaceOut.
,
.
TMapFind.X
property X: double;
.
, PlaceInp.
, PlaceOut.
0.
.
TMapFind.Y
property Y: double;
.
, PlaceInp.
, PlaceOut.
0.
.

TMapGeoCode.

TDataSet ( )
.
. , , .
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
DataSet
ErrorCode
FieldH
FieldKey
FieldSign
FieldTitle

TDataSet,




70

FieldX
FieldY
Linked
LinkObject
LinkSheet
MapView
ObjectCount
SemAdd
SiteNumber
TypeCoord
TypeKey
ValueKey

X
Y






,


Create
Destroy
Execute

:
public

:
published
OnChangeMapView
OnCreateObject

MapView

TMapGeoCode.Create
constructor Create(Aowner: TComponent); override;
.
:
ValueKey
= '0';
ObjectCount = 0;
ErrorCode
= 0;
TMapGeoCode.DataSet
property DataSet : TDataSet
DataSet
. : TTable, TQuery,
TADOTable .
TMapGeoCode.Destroy
destructor Destroy; override;
.
TMapGeoCode.ErrorCode
property ErrorCode :integer
, -
.
ErrorCode = 1 -
2 -
3 -
4 -
5 -
6 -
7
TMapGeoCode.Execute
function Execute: boolean;
. true,
TMapGeoCode.ErrorCode .
TMapGeoCode. FieldH
property FieldH : string
, ( ).
.
, ,
( ).
TMapGeoCode. FieldKey
property FieldKey : string
, .
(TMapGeoCode. TypeKey = FromTable),
, .
.

71

TMapGeoCode. FieldSign
property FieldSign : string
, .
, .
.
,
, .

, , ,
.
(, ).
TMapGeoCode. FieldTitle
property FieldTitle : string
, , .
TMapGeoCode. FieldX
property FieldX : string
, X .
.
TMapGeoCode. FieldY
property FieldY : string
, Y .
.
TMapGeoCode. Linked
property Linked : boolean

true ,
. ( TMapGeoCode. LinkSheet
TMapGeoCode. LinkObject) .
TMapGeoCode. LinkObject
property LinkObject: string


. , .. ,
.
.
TMapGeoCode. LinkSheet
property LinkSheet : string


.
.

TMapGeoCode.MapView
property MapView : TMapView;
.
, .
TMapGeoCode. ObjectCount
property ObjectCount :integer
(TMapGeoCode.Execute = true)
.
TMapGeoCode. SemAdd
property SemAdd : Boolean

true ,
.
. (
).
TMapGeoCode. SiteNumber
property SiteNumber : integer;
, .
TMapGeoCode. TypeCoord
TTYPECOORD = ( Metre, //
Degree, //
Radian
//
);
property TypeCoord : TTYPECOORD

72

.
,
TMapGeoCode. TypeKey
TTYPEKEY = ( FromTable, //
Total
// TMapGeoCode. ValueKey
);
property TypeKey : TTYPEKEY

.
FromTable - . ,
TMapGeoCode.FieldKey.
.
Total - TMapGeoCode. ValueKey.
.
TMapGeoCode.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .
TMapGeoCode.OnCreateObject
TMapCreateObj = procedure (Sender:TObject; const aExcode, aLocal, aNumber : integer; const aSheet,
aKey : string) of object;
property OnCreateObject : TMapCreateObj;
.
:
aExcode - ;
aLocal - :
0 - ;
1 - ;
2 - ;
3 - ;
4 - ;
aNumber - ;
aSheet - .
aKey
-
TMapGeoCode. ValueKey
ValueKey : string
, .
( )
. , TMapGeoCode. TypeKey = Total.

TMapGisServer.

TMapGisServer ,
2011. 2011 ,

2011, -, 2011,
- - , GIS ToolKit 10 .
, .
TCP\IP .

. ().
.
. ,
, .
:
;
;
.
.
:

73

TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
CachePath
MapView
MapAtlas

CanClose
ConnectionCount
HostName
IsServerActive
IsSystemUser
PortNumber
UserActive



\
C
( )
-

BuildAliasName
CanCloseConnect
ChangeConnect
CheckConnectForAlias
CloseConnect
DoDlgConnectParam
DoDlgOpenData


-
-

-

-
.

( ,
)
( ,
)
-

\
-

,

-
-

-

-

MD5 (

)

public

:
public

DoDlgAppendData
DoDlgUserParam
GetAlsList
GetCachePath
GetConnectHost
GetConnectPort
GetCurrentUserName
GetDataNameFromAlias
GetMapList
GetMtwList
GetRegisterUserType
GetRswList
IsAliasName
OpenConnect
RegisterSystemUser
RegisterUser
SetCachePath
StringToHash
UnRegisterUser
:
published
BeforeOpenData
AfterAppendData
BeforeOpenAtlas

TMapGisServer. AfterAppendData
TMapGisServerAfterAppendDataEvent = procedure (aSender : TMapGisServer;
const aTypeFile :
integer) of object;
property AfterAppendData : TMapGisServerAfterAppendDataEvent
.

74

:
aTypeFile
(. maptype.h : FILE_MAP -
, FILE_RSW - , FILE_MTW - )
TMapGisServer.BeforeOpenAtlas
TMapGisServerOpenAtlasEvent = procedure (aSender : TMapGisServer; const aMapFileName : string;
var aOpenDataNeed : boolean) of object;
property BeforeOpenAtlas : TMapGisServerOpenDataEvent;
.
:
aMapFileName .
aOpenDataNeed ,
false, true .
TMapGisServer.BeforeOpenData
TMapGisServerOpenDataEvent = procedure (aSender : TMapGisServer; const aMapFileName : string;
var aOpenDataNeed : boolean) of object;
property BeforeOpenData : TMapGisServerOpenDataEvent;
.
:
aMapFileName .
aOpenDataNeed ,
false, true .
TMapGisServer.BuildAliasName
function BuildAliasName(host: GTKPCHAR; port: integer; alias: GTKPCHAR; name : GTKPCHAR; size :
integer): integer;
function BuildAliasName(host : string; port : integer; alias : string): string;

"HOST###ALIAS#__"
:
- host -
- port -
- alias - ( )
- name -
- size -
.
TMapGisServer.CachePath
property CachePath : string;
/ .
TMapGisServer.CanClose
property CanClose[number : integer]: integer
- .
( ) .
"-1".
, .
TMapGisServer.CanCloseConnect
function CanCloseConnect(number : integer): integer;
- .
( ) .
"-1".
, .
TMapGisServer.ChangeConnect
function ChangeConnect(number: integer; HostName: string = ''; port: integer = 0): integer;
-.
.
:
number - ( 1).
HostName - ( 256 ), "XXX.XXX.XXX.XXX".
HostName - "localhost".
port - 1024 65536, - 2047 ( port = 0).
.
TMapGisServer.CheckConnectForAlias
function CheckConnectForAlias(alias : string): integer;

.
:
- alias - "HOST#:#ALIAS#__" ( "HOST#",
"HOST#:").
.

75

.
TMapGisServer.CloseConnect
function CloseConnect(number : integer): integer;
-.
number - ( 1).
( ) .
"-1"

TMapGisServer.ConnectionCount
property ConnectionCount: integer;
.
.
TMapGisServer.DoDlgAppendData
function DoDlgAppendData(aMap:HMap) : integer;
. .
DoDlgOpenData, ,
, .

.
MapView. 0 .
TMapGisServer.DoDlgConnectParam
function DoDlgConnectParam : integer;
. .
DoDlgOpenData, ,
,
.
(
gisdlgs.dll). : /
( 2011), .
0 .
TMapGisServer.DoDlgOpenData
function DoDlgOpenData : integer;
,
, ,
.
() MapView, TMapGisServer.
MapAtlas.
0 .
TMapGisServer.DoDlgUserParam
function DoDlgUserParam : integer;
. .
DoDlgOpenData, ,
c ,
,
.
( )
. 0 .
TMapGisServer.GetAlsList
function GetAlsList(number : integer; buffer : PTMCMAPLIST; length : integer): integer;
-.
:
- number - ( 1);
- buffer - ;
- length - .
0 - .
buffer
, .
, ,
, TypeLevel ( )
0.

.
buffer length.
.
type
TMCMAPLISTITEM = packed record
Level : longint;
Flags : longint;

//
// 1 MaxLevel
// 0 -

76

TypeLevel : longint;
Reserve : longint;
Name : array[0 .. 255] of GtkChar;
end;

// MAPFILES, 0 -
// ()

//
TMCMAPLIST = packed record
Ident : longint;
// 0x7F7F7F7F
Length : longint;
//
Count : longint;
//
MaxLevel : longint;
// ()
// ( Count)
Item : array [0..1] of TMCMAPLISTITEM;
end;
PTMCMAPLIST = ^TMCMAPLIST;
,
:
Ident = 0x7F7F7F7F;
Length = sizeof(TMCMAPLIST);
Count = 0;
MaxLevel = 1;
TMapGisServer.GetCachePath
function GetCachePath : string;
.
TMapGisServer.GetConnectHost
function GetConnectHost(number : integer; host : GTKPChar; size : integer): integer;
function GetConnectHost(number : integer; var host : string): integer;
function GetConnectHost(number : integer): string;
\ .
- 1, -
2.
:
- number - ( 1);
- host - ;
- size - ( 256).
.
TMapGisServer.GetConnectPort
function GetConnectPort(number : integer): integer;
-. 1024 65536,
2047.
:
- number - ( 1).
TMapGisServer.GetCurrentUserName
function GetCurrentUserName : string;
.
TMapGisServer. GetDataNameFromAlias
function GetDataNameFromAlias (const alias : string): string;
(alias), .
( ALIAS#) .
TMapGisServer.GetMapList
function GetMapList(number : integer; buffer : PTMCMAPLIST; length : integer): integer;
-.
:
- number - ( 1);
- buffer - ;
- length - .
0 - .
buffer
, .
, ,
, TypeLevel ( )
0.

.
buffer length.
.
type

77

TMCMAPLISTITEM = packed record


Level : longint;
Flags : longint;
TypeLevel : longint;
Reserve : longint;
Name : array[0 .. 255] of GtkChar;
end;

//
// 1 MaxLevel
// 0 -
// MAPFILES, 0 -
// ()

//
TMCMAPLIST = packed record
Ident : longint;
// 0x7F7F7F7F
Length : longint;
//
Count : longint;
//
MaxLevel : longint;
// ()
// ( Count)
Item : array [0..1] of TMCMAPLISTITEM;
end;
PTMCMAPLIST = ^TMCMAPLIST;
,
:
Ident = 0x7F7F7F7F;
Length = sizeof(TMCMAPLIST);
Count = 0;
MaxLevel = 1;
TMapGisServer.GetMtwList
function GetMtwList(number : integer; buffer : PTMCMAPLIST; length : integer): integer;
-.
:
- number - ( 1);
- buffer - ;
- length - .
0 - .
buffer
, .
, ,
, TypeLevel (
) 0.

.
buffer length.
.
type
TMCMAPLISTITEM = packed record
Level : longint;
Flags : longint;
TypeLevel : longint;
Reserve : longint;
Name : array[0 .. 255] of GtkChar;
end;

//
// 1 MaxLevel
// 0 -
// MAPFILES, 0 -
// ()

//
TMCMAPLIST = packed record
Ident : longint;
// 0x7F7F7F7F
Length : longint;
//
Count : longint;
//
MaxLevel : longint;
// ()
// ( Count)
Item : array [0..1] of TMCMAPLISTITEM;
end;
PTMCMAPLIST = ^TMCMAPLIST;
,
:
Ident = 0x7F7F7F7F;
Length = sizeof(TMCMAPLIST);
Count = 0;
MaxLevel = 1;
TMapGisServer.GetRegisterUserType
function GetRegisterUserType(number : integer): integer;

78

:
- number - ( 1).
RegisterSystemUser,
.

TMapGisServer.GetRswList
function GetRswList(number : integer; buffer : PTMCMAPLIST; length : integer): integer;
-.
:
- number - ;
- buffer - ;
- length - .
0 - .
buffer
, .
, ,
, TypeLevel
( ) 0.

.
buffer length.
.
type
TMCMAPLISTITEM = packed record
Level : longint;
Flags : longint;
TypeLevel : longint;
Reserve : longint;
Name : array[0 .. 255] of GtkChar;
end;

//
// 1 MaxLevel
// 0 -
// MAPFILES, 0 -
// ()

//
TMCMAPLIST = packed record
Ident : longint;
// 0x7F7F7F7F
Length : longint;
//
Count : longint;
//
MaxLevel : longint;
// ()
// ( Count)
Item : array [0..1] of TMCMAPLISTITEM;
end;
PTMCMAPLIST = ^TMCMAPLIST;
,
:
Ident = 0x7F7F7F7F;
Length = sizeof(TMCMAPLIST);
Count = 0;
MaxLevel = 1;
TMapGisServer.HostName
property HostName[number: integer]: string;
\ (number).
TMapGisServer.IsAliasName
function IsAliasName(alias : string): integer;
(alias) .
, (1 -
, 2 - ).
TMapGisServer.IsServerActive
property IsServerActive[number: integer]: boolean;
.
number - ( 1).
\
.
"HOST#..." "ALIAS#..."
, ,
.
- true.
TMapGisServer.IsSystemUser
property IsSystemUser[number : integer]: boolean;
,
. ,

79

true. ,
false.
TMapGisServer.MapAtlas
property MapAtlas : TMapAtlas;
TMapAtlas, ,
DoDlgOpenData.
TMapGisServer.MapView
property MapView : TMapView;
TMapView, ( )
, DoDlgOpenData
.
TMapGisServer.OpenConnect
function OpenConnect(HostName: string = ''; port: integer = 0): integer;
-.
HostName - ( 256 ), "XXX.XXX.XXX.XXX".
HostName - "localhost".
port - 1024 65536, - 2047 ( port = 0)
.
TMapGisServer.PortNumber
property PortNumber[number : integer]: integer;

. 1024 65536, 2047.
TMapGisServer.RegisterSystemUser
function RegisterSystemUser (number : integer): boolean;
, ,
.
:
- number - ( 1).
false.
TMapGisServer.RegisterUser
function RegisterUser(number : integer; login, password : string): boolean;
.
:
- number - ( 1).
- login password .
false.
MD5,
StringToHash.
TMapGisServer.SetCachePath
procedure SetCachePath(Value : string);
.
TMapGisServer.StringToHash
function StringToHash(source : PChar; target : PChar; asize : integer): integer;
MD5.

RegisterUser .
:
- aSource - ANSI;
- aTarget - (32 );
- aSize
- , ( 33);
.
TMapGisServer.UnRegisterUser
procedureUnRegisterUser (number : integer);

:
- number - ( 1).

RegisterUser RegisterSystemUser.
TMapGisServer.UserActive
property UserActive [const aUserName : string] : boolean;
C true , (
).
aUserName , .
, .

80

TMapGisServerDataListReader. ,

TMapGisServerDataListReader
.
TMapGisServer.
TMapGisServerDataListReader
:
, , .
, ,
.
ReadDataList.
, CloseReader .
, ,
.
, ,
. , , TypeLevel 0.
TMCMAPLISTITEM:
TMCMAPLISTITEM = packed record
//
Level : longint;
// 1 MaxLevel
Flags : longint;
//
TypeLevel : longint;
// MAPFILES, 0 -
Reserve : longint;
//
Name : array[0 .. 255] of GtkChar;
// ()
end;
Flags,
TMCMODE:
type TMCMODE =
//
(
TMM_READ
= 1, //
TMM_WRITE
= 2, //
TMM_COPY
= 4, //
TMM_TEMP
= 64 // ( )
);
:
TObject
:
public
Count
DataType
Item
:
public
CloseReader
GetListItem
ReadDataList


( , , )
( 1 Count)
,
( 1 Count)

TMapGisServerDataListReader. CloseReader
procedure CloseReader;
, ,
.

.
TMapGisServerDataListReader. Count
property Count: integer;

.
TMapGisServerDataListReader. DataType
property DataType: TGSDataType;
type
//
TGSDataType =
(gsMap = 1,
//
gsRaster = 2,
//
gsMatrix = 3,
//
gsAtlas
= 4);
//
,
ReadDataList.

81

TMapGisServerDataListReader. GetListItem
function GetListItem(aIndex: integer; var aItem: TMCMAPLISTITEM): boolean;
aItem ,
aIndex ( 1 Count).
true.
TMapGisServerDataListReader. Item
property Item[aIndex: integer]: TMCMAPLISTITEM;
,
aIndex ( 1 Count).
TMapGisServerDataListReader. ReadDataList
function ReadDataList(aNumber: integer; aDataType: TGSDataType): integer;
type
//
TGSDataType =
(gsMap = 1,
//
gsRaster = 2,
//
gsMatrix = 3,
//
gsAtlas
= 4);
//
.
aNumber.
TMapGisServer.
,
.
CloseReader . CloseReader
.
,
aDataType.
.

TMapLayer. () .
.

, .
:
TObject
|
TPersistent
:
public
LayerKey
LayerName
ObjCount
ObjExCode
ObjInCode
ObjKey
ObjLocal
ObjName

()

,


( )

TMapLayer.LayerKey
property LayerKey: string;
() .
TMapLayer.LayerName
property LayerName: string;
(), .
.
TMapLayer.ObjCount
property ObjCount: integer;
(),
.
0.
TMapLayer.ObjExCode
property ObjExCode[Number: integer]: integer;
().
Number .
0.

82

TMapLayer.ObjInCode
property ObjInCode[Number: integer]: integer;
().
Number .
0.
TMapLayer.ObjKey
property ObjKey[Number: integer]: string;
( ) (). Number
.
.
TMapLayer.ObjLocal
property ObjLocal[Number: integer]: integer;
().
Number .
0.
TMapLayer.ObjName
property ObjName[Number: integer]: string;
().
Number .
.

TMapLayers. - () .
.
()
TMapLayer.

(), .
:
TObject
|
TPersistent
:
public
KeyLayers
LayerCount
MapLayers
ObjLayers

()


TMapLayers.KeyLayers
property KeyLayers[aKey : string]: TMapLayer;
().
aKey .
TMapLayers.LayerCount
property LayerCount: integer;
(), .
0.
TMapLayers.MapLayers
property MapLayers[Number: integer]: TMapLayer;
().
.
Number ( 1).
TMapLayers.ObjLayers
property ObjLayers[MapObj: TMapObj]: TMapLayer;
().
, .
MapObj .

TMapList. .
.

83

:
TObject
|
TPersistent
:
public
ListName
ObjectCount

TMapList.ListName
property ListName: string;
.
() .
.
TMapList.ObjectCount
property ObjectCount: integer;
.
0.

TMapLists. - .
.

TMapList.
:
TObject
|
TPersistent
:
public
ListCount
MapLists
PointLists

TMapLists.ListCount
property ListCount: integer;
.
0.
TMapLists.MapLists
property MapLists[Number: integer]: TMapList;
.
.
.
Number .
TMapLists.PointLists
property PointLists[MapPoint: TCompMapPoint; Number: integer]: TMapList;
.
.

.
MapPoint
.
Number .

TMapLoadWMSDialog. WMS .


WMS rsw.

84

WMS 1.1.0
OGS Web Map Service Interface (OGC 03-109r1),
.
RSW, , ,
.
:
1. IP URL ,
(http://85.159.40.101/wms/default.aspx).
2. .
3. , .
, .
4. .
5. .
6. .
7.
.

.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
FlagMassage
RscFileName
RswFileName

Execute

WMS

OnRswLoaded

:
public
:
published

TMapLoadWMSDialog.FlagMassage
property FlagMassage: boolean;
.
true,
.
TMapLoadWMSDialog.RscFileName
property RscFileName: string;
.
,
WMS . service.rsc.
TMapLoadWMSDialog.RswFileName
property RswFileName: string;
.
, WMS
.
, ,
, .
. ,
.
OnRswLoaded.

. (
Execute) RswFileName
, ,

85

.

OnRswLoaded, RswFileName. ,
, RswFileName
.
TMapLoadWMSDialog.Execute
function Execute: boolean;
WMS .
,
True (), ( , ) False ().
TMapLoadWMSDialog.OnRswLoaded
property OnRswLoaded: TNotifyEvent;
.
, WMS

. RswFileName

.

.
( Execute) RswFileName
,
, .

OnRswLoaded, RswFileName. ,
, RswFileName
.

TMapMiniMap.

TMapMiniMap ,
,
, .
. ,
, MapView.
: (
), (
).
,
( ).
,
.
.
,
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TGtkAction
:
published
Caption
MapView
public
BeginScale
Left, Top, Width,
Height

,
( )

86

InParentFormWh
enModal

:
public
Execute
:
published
OnChangeMapView


MapView

TMapMiniMap.Caption
property Caption :string;
C , .
TMapMiniMap.BeginScale
property BeginScale : integer;
. -2
MapView.Viewscale * 4. -1
.
TMapMiniMap. InParentFormWhenModal
property InParentFormWhenModal : boolean;
true , MapView,
,
MapView. TMapMiniMap
MapView.
TMapMiniMap.Execute
procedure Execute;
, .
, MapView.
TMapMiniMap. Left, Top, Width, Height
.
.
TMapMiniMap.MapView
property MapView : TMapView;
C TMapView,
.
TMapMiniMap.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .

TMapMetric. .
.
,
. .
, () ,
(), : ,
.
( ) 1.
0, 0
. , 2-
:
var
x, y : double;
Metric.Points[0, 2].GetPoint(x, y);
:
TObject
|
TPersistent
:

87

public
PointCount
Points
SubObjCount

:
public
Append
Delete
Insert
Update
UpdateHeight

TMapMetric.Append
procedure Append(SubObj: integer; AMapPoint: TCompMapPoint);
,
TCompMapPoint, .
:
SubObj - ( SubObj = 0 - ).
AMapPoint - .
TMapMetric.Delete
procedure Delete(SubObj: integer; Number: integer);
.
:
SubObj - ( SubObj = 0 -
). SubObj = -1, .
Number - . Number = -1,
SubObj.
TMapMetric.Insert
procedure Insert(SubObj: integer; Number: integer; AMapPoint: TCompMapPoint);
,
TCompMapPoint,
.
:
SubObj - ( SubObj = 0 -
)
Number - .
AMapPoint - .
TMapMetric.Points
property Points[SubObj: integer; Number: integer]: TCompMapPoint;
.
:
SubObj - ( SubObj = 0 - ).
Number - . 1.
TMapMetric.PointCount
property PointCount[SubObj: integer]: integer;
() / .
SubObj
( SubObj = 0 - )
0.
PointCount ,
. PointCount.
TMapMetric.SubObjCount
property SubObjCount: integer;
.
0.
TMapMetric.Update
procedure Update(SubObj: integer; Number: integer; AMapPoint: TCompMapPoint);
,
, TCompMapPoint.
:
SubObj - ( SubObj = 0 - ).
Number - .
AMapPoint - .
TMapMetric. UpdateHeight
function UpdateHeight (aSubObj : integer; aNumber : integer; aH : double) : integer;
,

88

, aH.
aSubObj - ( SubObj = 0 - ).
aNumber - .
aH .

TMapMtr3D. 3D .

BMP
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
Bitmap

ColorStyle
GridStep
GridView
MapView
ModelHeight
MtrHeight
MtrUpdate
MtrWidth
PlaceInp
PlaceOut
Scale
TargetX
TargetY
ViewerH
ViewerX
ViewerY

MapAction

TmapView

Create
Destroy

published

:
protected

public

:
published
OnChangeMapView
OnMtrUpdate

TMapMtr3D.Bitmap
property Bitmap: TBitmap;
BMP .
TMapMtr3D.ColorStyle
TColorStyle = (
//
CS_GRAYSCALE, //
CS_COLOR
//
);
property ColorStyle: TColorStyle;
.
MtrUpdate, true,

89

.
TMapMtr3D.Create
constructor Create(AOwner: TComponent); override;
.
TCompMapPoint
:
ViewerH
= 1000;
MtrUpdate
= false;
MtrWidth
= 50;
MtrHeight
= 50;
ModelHeight = 64;
GridStep
= 20;
GridView
= false;
ColorStyle
= CS_COLOR;
PlaceInp
= PP_PICTURE;
PlaceOut
= PP_PLANE.
TargetX, TargetY, ViewerX ViewerY
.
TBitmap 50 50 .
TMapMtr3D.Destroy
destructor Destroy; override;
TCompMapPoint TBitmap,
TMapView, .
TMapMtr3D.GridStep
property GridStep: integer;
.

GridView.
MtrUpdate, true,
.
TMapMtr3D.GridView
property GridView: integer;
.
, true,
.
MtrUpdate, true,
.
TMapMtr3D.MapAction
procedure MapAction(Action: word); override;
TMapView:
: TargetX, TargetY, ViewerX ViewerY
(-) .
: .
TMapMtr3D. MapView
property MapView: TMapView;
, .
,
.
TMapMtr3D.ModelHeight
property ModelHeight: integer;
,
1 255.
MtrUpdate, true,
.
TMapMtr3D.MtrHeight
property MtrHeight: integer;
.
MtrUpdate, true,
.
TMapMtr3D.MtrUpdate
property MtrUpdate: integer;
/ .
, true,
- .
TMapMtr3D.MtrWidth
property MtrWidth: integer;
.

90

MtrUpdate, true,
.
TMapMtr3D.OnMtrUpdate
property OnMtrUpdate: TNotifyEvent;

.
TMapMtr3D.PlaceInp
property PlaceInp: TPPLACE;
.
,
.
.
TMapMtr3D.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TMapMtr3D.Scale
property Scale: integer;
.
MtrUpdate, true,
.
TMapMtr3D.TargetX
property TargetX: double;
.
, PlaceInp
PlaceOut.
MtrUpdate, true,
.
TMapMtr3D.TargetY
property TargetY: double;
.
, PlaceInp
PlaceOut.
MtrUpdate, true,
.
TMapMtr3D.ViewerH
property ViewerH: double;
.
MtrUpdate, true,
.
TMapMtr3D.ViewerX
property ViewerX: double;
.
,
PlaceInp PlaceOut.
MtrUpdate, true,
.
TMapMtr3D.ViewerY
property ViewerY: double;
.
,
PlaceInp PlaceOut.
MtrUpdate, true,
.

TMapMtqs. - .
.

TMapMtq.

, .
:

91

TObject
|
TPersistent
:
public
MapMtqs
MtqCount
NameMtqs

:
public
Append
DefineProperties
Delete
DeleteName

TMapMtqs.Append
function Append(aMtqFileName: string): integer;
function Append(aMtqFileName : string; mode : integer) : integer;
.
, ,
, .
0.
aMtqFileName .
mode : / (GENERIC_WRITE
0) (GENERIC_READ). mode ,
/.
.
TMapMtqs.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
MapMtq,
.
TMapMtqs.Delete
procedure Delete(Number: integer);
.
.
.
! ,
.
Number .
.
TMapMtqs.DeleteName
procedure DeleteName(aMtqFileName: string);
.
.
.
! ,
.
aMtqFileName .
.
TMapMtqs.MapMtqs
property MapMtqs[Number: integer]: TMapMtq;
.
() ,
.
Number .
TMapMtqs.MtqCount
property MtqCount: integer;
.
0.
TMapMtqs.NameMtqs
property NameMtqs[aMtqName: string]: TMapMtq;
.
( ),
aMtqName.

92

TMapMtq. .
.

.

,
, .
- . -
, , .
,
. -
, , , .
-
.
:
TObject
|
TPersistent
:
public
MtqBright
MtqContrast
MtqFileName
MtqLocation
MtqMeasure
MtqPaletteColorsCount
MtqRangeScaleVisible
MtqScale
MtqShadowView
MtqTransparent
MtqView
MtqViewOrder
Number
:

/
/

/




/
/
/

public
GetActualMtqFrame
GetMtqColors
GetMtqDesc
GetMtqPalette
GetMtqProjectionData
GetMtqProjectionDataEx
GetValue
PutValue
SetMtqColors
SetMtqProjectionData



(
/)

(
/)





TMapMtq.GetActualMtqFrame
function GetActualMtqFrame(var frame : TMapDFrame) : integer;
frame
. frame .
.
TMapMtq.GetMtqColors
TArrayCOLORREF = array of TColorRef; //
function GetMtqColors(var aPalette: TArrayCOLORREF): integer;
/.
256.
aPalette, .
TMapMtq.GetMtqDesc

93

TMTQDESCRIBE = packed record


fName : array [1..256] of char;
fMinHeightValue : double;
fMaxHeightValue : double;
fElementInPlane : double;
fFrameMeters : TMAPDFRAME;
fReliefType : integer;

fUserType : integer;
fView : integer;
end;

//
//
//
//
//
//
// (0 - ,
// 1 - + )
// 2 -
// ( )
//
//

function GetMtqDesc(var aDesc : TMTQDESCRIBE) : boolean;


.
true aDesc.
TMapMtq.GetMtqPalette
Type
TArrayCOLORREF = array of TColorRef; //
function GetMtqPalette(aPalette: TArrayCOLORREF): integer;
/.
256.
aPalette, .
TMapMtq.GetMtqProjectionData
TMTQPROJECTIONDATA = packed record

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;

//
// ( )
// : 128
// sizeof (MTQPROJECTIONDATA)
//
// (
// MAPTYPE, MAPCREAT.H)
// (
// MAPPROJECTION, MAPCREAT.H)
// long
MaterialProjection; // .

//
//
//
//
//
//
//

EllipsoideKind,
HeightSystem,
CoordinateSystem,
ZoneNumber
: integer;
Reserve
: array[0..47] of byte;

//
//
//
//
//

StructSize

: integer;

pFree
MapType

: integer;
: integer;

ProjectionType

: integer;

end;
function GetMtqProjectionData(var projectiondata : TMTQPROJECTIONDATA) : integer;
.
projectiondata,
.
TMapMtq.GetMtqProjectionDataEx
TMAPREGISTEREX = packed record
Length
: cardinal;
Name
: TSmallString;
Scale,
ProjectionFlag,
EllipsoideKind,
HeightSystem
MaterialProjection,
CoordinateSystem,
PlaneUnit,
HeightUnit,
FrameKind,
MapType,
DeviceCapability,

//
//
//
//
//
//
//
//
//
//
//
//
//

94

DataProjection,
OrderViewSheetFlag,
FlagRealPlace,
ZoneNumber
: cardinal;

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;
Reserv2
: array[0..7] of byte;
end;

//
//
//
//
//
//
//
//
//
//

20 000
:
-1 -
-2 -
-3 -




-

//
//
//
//
//
//

function GetMtqProjectionDataEx(var MapReg : TMapRegisterEx) : integer;


.
MapReg,
.
TMapMtq.GetValue
function GetValue(aX,aY : double) : double;
.
(aX,aY) .
.
, 10
n; n = MtqMeasure.

ERRORHEIGHT= -111111 .
TMapMtq.MtqBright
property MtqBright : integer;
-16
+16.
TMapMtq.MtqContrast
property MtqContrast : integer;
-16
+16.
TMapMtq.MtqFileName
property MtqFileName: string;
.
.
TMapMtq.MtqLocation
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
property MtqLocation: TDoublePoint;
- .
.
TMapMtq.MtqMeasure
property MtqMeasure : integer;
.
, 10 n;
n - .
: 0-""; 1-""; 2-""; 3-"".
-1.
.
TMapMtq.MtqPaletteColorsCount
property MtqPaletteColorsCount: integer;
.
0.
TMapMtq.MtqRangeScaleVisible
TScaleRange = packed record

95

bottom : longint;
top : longint;
end;
property MtqRangeScaleVisible : TScaleRange
/
. 1:1
1:40 000 000. .
TMapMtq.MtqScale
property MtqScale : integer;
. .
TMapMtq.MtqShadowView
property MtqShadowView: boolean;
/
, false ).

(true

TMapMtq.MtqTransparent
property MtqTransparent : integer;
/ .
:

0 - ;

1 ;

2 ;

3 ;

4 ;

5 .
TMapMtq.MtqView
property MtqView: boolean;
.
true , false .
, ,
.
TMapMtq.MtqViewOrder
property MtqViewOrder : integer;
.
1 , .
/.
TMapMtq.Number
property Number : integer;
/
.
TMapMtq.PutValue
function PutHeightValue(aX,aY,aH : double): integer;
,
, (aX,aY) .
MtqMeasure.
aH, 10 n, n = MtqMeasure.
.
TMapMtq.SetMtqColors
Type
TArrayCOLORREF = array of TColorRef; //
function SetMtqColors(const aPalette: TArrayCOLORREF): integer;
/.
.
256.
, .
TMapMtq.SetMtqProjectionData
TMAPREGISTEREX = packed record
Length
: cardinal;
Name
: TSmallString;
Scale,
ProjectionFlag,
EllipsoideKind,
HeightSystem
MaterialProjection,
CoordinateSystem,
PlaneUnit,
HeightUnit,

//
//
//
//
//
//
//
//
//
//

96

FrameKind,
MapType,
DeviceCapability,

DataProjection,
OrderViewSheetFlag,
FlagRealPlace,
ZoneNumber
: cardinal;

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;
Reserv2
: array[0..7] of byte;
end;

//
//
//
//
//
//
//
//
//
//
//
//
//




20 000
:
-1 -
-2 -
-3 -




-

//
//
//
//
//
//

function SetMtqProjectionData(var MapReg : TMapRegisterEx) : integer;


MapReg,
.

TMapMtrs. - .
.

TMapMtr.

, .
:
TObject
|
TPersistent
:
public
MapMtrs
MtrBright
MtrColorStyle
MtrContrast
MtrCount
MtrPaletteColorsCou
nt
MtrShadowIntensity
MtrShadowView
NameMtrs
PointMtrs


/
/
(/ )
/


/
/

:
public
Append
CreateMtr
DefineProperties
Delete
DeleteName
GetMtrColors
GetMtrPalette
SetMtrColors







(
/)
(
/)

97

TMapMtrs.Append
function Append(AMtrFileName: string): integer;
function Append(AMtrFileName: string; mode : integer): integer;
.

.
0.
AMtrFileName .
mode : / (GENERIC_WRITE
0) (GENERIC_READ).
mode , /.
.
TMapMtrs.CreateMtr
procedure CreateMtr(AMtrFileName: string);

AmtrFileName, .

MtrBuild TMapMtr.

NameMtrs.

.
.
TMapMtrs.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
MapMtr,
.
TMapMtrs.Delete
procedure Delete(Number: integer);
.
! ,
.
.
Number .
.
TMapMtrs.DeleteName
procedure DeleteName(AMtrFileName: string);
.
.
AMtrFileName .
.
TMapMtrs.GetMtrColors
Type
TArrayCOLORREF = array of TColorRef; //
function GetMtrColors(var aPalette: TArrayCOLORREF): integer;
/.
256.
aPalette, .
TMapMtrs.GetMtrPalette
Type
TArrayCOLORREF = array of TColorRef; //
function GetMtrPalette(aPalette: TArrayCOLORREF): integer;
/.
256.
aPalette, .
TMapMtrs.MapMtrs
property MapMtrs[Number: integer]: TMapMtr;
.
.
Number .
TMapMtrs.MtrBright
property MtrBright : integer;

-16 +16.
TMapMtrs. MtrColorStyle
property MtrColorStyle: boolean;

98

. true
, false .
TMapMtrs.MtrContrast
property MtrContrast : integer;

-16 +16.
TMapMtrs.MtrCount
property MtrCount: integer;
.
0.
TMapMtrs.MtrPaletteColorsCount
property MtrPaletteColorsCount: integer;
.
0.
TMapMtrs.MtrShadowIntensity
property MtrShadowIntensity: integer;
/
0 100.

TMapMtrs.MtrShadowView
property MtrShadowView: integer;
/ .
:
0 ;
1 ;
2 ;
4 ;
8 ;
16 .
TMapMtrs.NameMtrs
property NameMtrs[MtrFileName: string]: TMapMtr;
.
( ).
MtrFileName .
TMapMtrs.PointMtrs
property PointMtrs[MapPoint: TCompMapPoint; Number: integer]: TMapMtr;
.

.
MapPoint
.
Number - .
TMapMtrs.SetMtrColors
Type
TArrayCOLORREF = array of TColorRef; //
function SetMtrColors(const aPalette: TArrayCOLORREF): integer;
/.
aPalette 0,
. .
256. , .

TMapMtr. .
.

.
:
TObject
|
TPersistent
:

99

public
MtrFileName
MtrLocation
MtrMeasure
MtrRangeScaleVi
sible
MtrScale
MtrTransparent
MtrView
MtrViewOrder
Number
:


/
/

public
GetActualMtrFra
me
GetHeightValueOf
Mtr
GetMtrDesc
GetMtrProjection
Data
GetMtrProjection
DataEx
PutHeightValue
ReBuild
SaveMtr
SetMtrProjectionD
ata

TMapMtr.GetActualMtrFrame
function GetActualMtrFrame(var frame : TMapDFrame) : integer;
frame
. frame .
.
TMapMtr.GetHeightValueOfMtr
function GetHeightValueOfMtr(aX,aY : double) : double;
.
(aX;aY) .
.
ERRORHEIGHT = -111111 .
TMapMtr.GetMtrDesc
TMTRDESCRIBE = packed record
fName : array [1..256] of char;
fMinHeightValue : double;
fMaxHeightValue : double;
fElementInPlane : double;
fFrameMeters : TMAPDFRAME;
fReliefType : integer;

fUserType : integer;
fView : integer;
end;

//
//
//
//
//
//
// (0 - ,
// 1 - + )
// 2 -
// ( )
//
//

function GetMtrDesc(var aDesc : TMTRDESCRIBE) : boolean;


.
true aDesc.
TMapMtr.GetMtrProjectionData
TMTRPROJECTIONDATA = packed record

StructSize

: integer;

pFree
MapType

: integer;
: integer;

ProjectionType

: integer;

//
//
//
//
//
//
//
//

// ( )
: 128
sizeof (MTRPROJECTIONDATA)

(
MAPTYPE, MAPCREAT.H)
(
MAPPROJECTION, MAPCREAT.H)

100

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;

// long
MaterialProjection; // .

//
//
//
//
//
//
//

EllipsoideKind,
HeightSystem,
CoordinateSystem,
ZoneNumber
: integer;
Reserve
: array[0..47] of byte;

//
//
//
//
//

end;
function GetMtrProjectionData(var projectiondata : TMTRPROJECTIONDATA) : integer;
.
projectiondata,
.
TMapMtr.GetMtrProjectionDataEx
TMAPREGISTEREX = packed record
Length
: cardinal;
Name
: TSmallString;
Scale,
ProjectionFlag,
EllipsoideKind,
HeightSystem
MaterialProjection,
CoordinateSystem,
PlaneUnit,
HeightUnit,
FrameKind,
MapType,
DeviceCapability,

DataProjection,
OrderViewSheetFlag,
FlagRealPlace,
ZoneNumber
: cardinal;

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;
Reserv2
: array[0..7] of byte;
end;

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//







.






20 000
:
-1 -
-2 -
-3 -




-

//
//
//
//
//
//

function GetMtrProjectionDataEx(var MapReg : TMapRegisterEx) : integer;


.
MapReg,
.
TMapMtr.MtrFileName
property MtrFileName: string;
.
.
TMapMtr.MtrLocation
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
property MtrLocation: TDoublePoint;

101

- .
.
TMapMtr.MtrMeasure
property MtrMeasure : integer;
:
0-;
1-;
2-;
3-
-1. .
TMapMtr.MtrRangeScaleVisible
TScaleRange = packed record
bottom : longint;
top : longint;
end;
property MtrRangeScaleVisible : TScaleRange
/
. 1:1
1:40 000 000. .
TMapMtr.MtrScale
property MtrScale : integer;
. .
TMapMtr.MtrTransparent
property MtrTransparent : integer;
/ .
:

0 - ;

1 ;

2 ;

3 ;

4 ;

5 .
TMapMtr.MtrView
property MtrView: boolean;
.
true , false .
, ,
.
TMapMtr.MtrViewOrder
property MtrViewOrder : integer;
.
1 , .
/.
TMapMtr.Number
property Number : integer;
/
.
TMapMtr.PutHeightValue
function PutHeightValue(aX,aY,aH : double): integer;
.
(aX;aY) (aH) .
.
TMapMtr.ReBuild
TBUILDMTW = packed record
StructSize : integer;
Free
: integer;
BeginX : double;
BeginY : double;
Width
: double;
Height : double;
ElemSizeMeters : double;
ElemSizeBytes : integer;
UnitH

: integer;

//
// = sizeof (BUILDMTW)
//
//
// (- )
//
//
//
//
// P
// ( : 1,2,4,8)
// E
// (0 - , 1 - ,
// 2 - , 3 - )

102

ReliefType

: integer;

// (0 - ,
// 1 - + )
UserType
: integer;
// ,
//
Scale
: integer;
//
// (
//
//
// )
HeightSuper : integer;
//
//
// (0 - , 1 - )
FastBuilding : integer;
// :
// 0 - ,
//
// 1 - ,
//
// 2 - ,
//
// 3 - ,
//
Reserve : array [0 .. 51] of char; //
function ReBuild(aFilterFileName : string; var aParmBuild : TBUILDMTW) : boolean;
.
.

true.
TMapMtr.SaveMtr
function SaveMtr : integer;
. .
TMapMtr.SetMtrProjectionData
TMAPREGISTEREX = packed record
Length
: cardinal;
Name
: TSmallString;
Scale,
ProjectionFlag,
EllipsoideKind,
HeightSystem
MaterialProjection,
CoordinateSystem,
PlaneUnit,
HeightUnit,
FrameKind,
MapType,
DeviceCapability,

DataProjection,
OrderViewSheetFlag,
FlagRealPlace,
ZoneNumber
: cardinal;

FirstMainParallel,
SecondMainParallel,
AxisMeridian,
MainPointParallel,
PoleLatitude,
PoleLongitude
: double;
Reserv2
: array[0..7] of byte;
end;

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//







.






20 000
:
-1 -
-2 -
-3 -




-

//
//
//
//
//
//

function SetMtrProjectionData(var MapReg : TMapRegisterEx) : integer;


MapReg,
.

103

TMapObj. .

.
.
. , .
,
.
( "RSC") , .
, ,
. ,
, . .
.
, (*.RSC).
: , , , , .
.
.
.

, .
.
(2D) (3D).
( H) ,
, , IDDOUBLE3 (
). , ..
3D (X, Y, H), ( X, Y). /
TMapObj.Kind. ,
.
TMapObj.IsObject3D, true, .
, ,
TMapObj.HeightType: (HT_ALTITUDE)
(HT_RELATIVE).

TMapMetric.UpdateHeight.

, (TMapMetric.Append, TMapMetric.Insert, TMapMetric.Update).

TCompMapPoint ( ). , TCompMapPoint
TCompMapPoint.SetPoint3D,
X, Y, H.
!!!
1. ,
, cERRORHEIGHT =
-111111.0. ,
.
2. ( Square) ( Length) ,
6 ,
(..
).
,
, .
( )
SquareInMap, LengthInMap.

:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
ExCode
HeightType
Image



()

104

InCode
IsObject3D
Key
KeyName
Kind
LayerNumber





" " (KM_xxxx)
(),



,
,

(OL_xxxx)



Map API




()
()
,


" "

Length
LengthInMap
ListName
ListNumber
Local
Metric
Mode
ObjFrame
ObjHandle
ObjName
Parm
Perimeter
Semantic
Square
SquareInMap
SideDirection
SideLength
SiteNumber
Text
TextType
published
BotScale
ColorImage
ColorImageUp
Interval
MapView
PlaceOut
SemanticStyle
Style
StyleSelect
TopScale

,




ObjFrame



,

:
protected
MapAction.

TmapView

public
AbrigeObject
BendSpline
BendSplineSubject
Bitmap
CashionSpline
CashionSplineSubject
Center
ChangeDirectObject
ChangeDirectSubject
ClearObject
Commit
CommitAsNew
Create
CreateArc
CreateHalfZoneObject

.
- .
- .
BMP .
- .
- .
.
.
.
.
.

.
.

CreateInsideZoneObject
CreateInsideZoneObjectEx
CreateNullObj
CreateObject
CreateObjectByExcode
CreateObjectByIncode
CreateZoneLineObject

/ /.
/ .
.
.
.
.

"".

/ (
).

105

CreateObjectByKey
CreateZoneObject
CreateZoneObjectEx
DefineProperties
Delete
DeleteEqualPoint
DeleteLoop
DeletePartObject
Destroy
DistanceObject
Example
ExecuteDlgFind
GeneralFilter
LinearFilter
ObjViewFrame
PaintObjectUp
RelocateObject
Repaint
Rollback
RotateObject
SeekObject
SelectObjectInPoint
SetFirstPoint
SetObjectByExcode
SetObjectByIncode
SetObjectByDlg
SetSite
ShowDialogInfo
SmoothingSplineObject
SmoothingSplineSubjec


.
/.

.
.
.
.
/.

/
.


.
.




.


.


,


C (2- 3-
).
C (2- 3-
).

:
published
OnChangeMapView
OnChangeObj
OnCommit
OnCreateNullObj
OnDelete
OnFreeObj
OnObjPaint
OnRollback

MapView






TMapObj.AbrigeObject
.
function AbrigeObject(delta : double): integer;
:
,
delta - .
delta, .
delta, .
0.
TMapObj.BendSpline
- .
function BendSpline(press, smooth : integer; precision : double =-1) : integer;
:
- . ,
( ) .
.
press - (
>= 5 ). press, (
/).
smooth - ( smooth >= 3).
smooth,

106

precision - () ,
"-1". 3- (),
( ).
.
TMapObj.BendSplineSubject
- .
function BendSplineSubject(numsubject, press, smooth : integer; precision : double=-1) : integer;
:
, .
.
subject - (0;1;2...).
press - (
>= 5 ). press, (
/).
smooth - ( smooth >= 3).
smooth,
precision - () ,
"-1". 3- (),
( ).
.
TMapObj.Bitmap
procedure Bitmap(ABitmap: TBitmap);
ABitmap .
ABitmap Height Width,
.
TMapObj.BotScale
property BotScale: integer;
, .

.
,
, .
TMapObj.CashionSpline
- .
function CashionSpline(cashion, smooth : integer; precision : double = -1): integer;
:
- . ,
() ()
, ( /).
cashion - (1<= cashion <= 50) (
/). cashion, . smooth ( smooth >= 3). smooth,
.
precision - () ;
"-1".
numsubject - ( 0, ).
3- (), (
).
.
TMapObj.CashionSplineSubject
- .
function CashionSplineSubject(numsubject, cashion, smooth : integer; precision : double= -1): integer;
:
,
() ; (
).
subject - (0;1;2...).
cashion - (1<= cashion <= 50) (
/). cashion, . smooth ( smooth >= 3). smooth,
.
precision - () ;
"-1".
numsubject - ( 0, ).
3- (), (
).
.
TMapObj.Center

107

procedure Center;
, , TmapObj
.
TMapObj.ChangeDirectObject
.
function ChangeDirectObject: integer;
:
.
, - (OD_RIGHT;OD_LEFT;... - . Maptype.pas).
TMapObj.ChangeDirectSubject
.
function ChangeDirectSubject(numSubject : integer): integer;
:
.
number - ( 0).
, - (OD_RIGHT;OD_LEFT;... - . Maptype.pas).
TMapObj.ChangeDirectSubject
.
function ChangeDirectSubject(numSubject : integer): integer;
:
.
number - ( 0).
, - (OD_RIGHT;OD_LEFT;... - . Maptype.pas).
TMapObj.ClearObject
function ClearObject(aSheetNumber : integer; aKind : integer) : integer;
. aSheetNumber (
), (
0). aKind .
TMapObj.ColorImage
property ColorImage : Tcolor;
.
. ImageColor = clRed.
TMapObj.ColorImageUp
property ColorImageUp : Tcolor;
.
,
, .
ImageColor = clBlue.
TMapObj.Commit
procedure Commit;
.
.
.
,
, .
Commit .
TMapObj.CommitAsNew
procedure CommitAsNew;
.
Commit,
, (,
..).
.
.
TMapObj.Create
constructor Create(AOwner: TComponent); override;
.
:
TMapSemantic
Semantic;
TMapMetric
Metric
:
Image
= IMG_OBJECT;
Mode
= R2_COPYPEN.
Parm :
record
Color
= clRed;

108

InCode
end;

= 0;

TMapObj.CreateArc
.
function CreateArc(point1, point2, point3 : PDoublePoint; radius : double): Integer;
:
point2 (
), point1 point3 ( ).
radius - .
0.
TMapObj.CreateHalfZoneObject
/.
function CreateHalfZoneObject(radius : double; subject : integer) : integer;
:
/ (
), :
radius - ( );
subject - , .
0.
TMapObj.CreateInsideZoneObject
/ /.
function CreateInsideZoneObject(radius: double; subject: integer) : integer;
:
/ /
1 ( ,
, ).
radius - -
- .
subject - , .
0.
TMapObj.CreateInsideZoneObjectEx
/ /.
function CreateInsideZoneObjectEx(Radius: Double; Subject: Integer; from: Integer;
arcdist: Double; cornerfactor: Double): Integer;
:
/ /
1 ( ,
, ).
Radius - ( ) -
- .
Subject - , .
form - 0 - , 1 .
arcdist - ( ) radius / 15.
cornerfactor - ( 3).
,
radius*cornerfactor .
0.
TMapObj.CreateNullObj
procedure CreateNullObj(SiteNumber : integer);
SiteNumber.
,
, .
SetObjectByExcode
SetObjectByInCode.
.

CreateObjectByExcode CreateObjectByInCode.
TMapObj.CreateObject
procedure CreateObject(Site: integer; Kind: integer; Text: boolean; List: integer; ExCode: integer; Local:
integer);
, Site , Site =
0, List (
1), Kind (. KM_xxxx), ExCode Local
(. OL_xxxx).
Text / .
.

109

CreateObjectByExcode CreateObjectByInCode.
TMapObj.CreateObjectByExcode
function CreateObjectByExcode(SiteNumber ,Kind, ExCode, Local : integer) : integer;
SiteNumber,
Kind, , ExCode Local. 0,
(HOBJ).
TMapObj.CreateObjectByIncode
function CreateObjectByIncode(SiteNumber ,Kind, InCode : integer) : integer;
SiteNumber,
Kind, , Incode. 0,
(HOBJ).
TMapObj.CreateObjectByKey
function CreateObjectByIncode(SiteNumber ,Kind : integer; aKeyName : string) : integer;
SiteNumber,
Kind, , aKeyName. 0,
(HOBJ).
TMapObj.CreateZoneObject
function CreateZoneObject(Radius: Double; Subject: Integer; form: Integer): Integer;
().
radius - ( )
subject - ;
(0 - )
form -

= 0 -
= 1 -

= 0 -
= 1 -
TMapObj.CreateZoneLineObject
"".
function CreateZoneLineObject(radius : double) : integer;
:
"".
radius - ( ).
, .
.
0.
TMapObj.CreateZoneObjectEx
.
function CreateZoneObjectEx(radius : double; subject, from : integer; arcdist : double; cornerfactor:
double; side : integer): integer;
:
.
radius - ( ).
subject - , .
form - 0 - , 1 .
arcdist - ( ) radius / 15.
cornerfactor - ( 3).
,
radius*cornerfactor .
side - (1-, 2-, 3- ).
0.
TMapObj.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
ObjKey List,
, .
TMapObj.Delete
procedure Delete;
.
TMapObj.DeleteEqualPoint
.
function DeleteEqualPoint(precision: Double; height: Integer): Integer;
:
.
precision - .

110

height
- (
).
0.
TMapObj.DeleteLoop
.
function DeleteLoop(precision : double) : integer;
:
.
precision - () .
0.
TMapObj.DeletePartObject
/ number1 number2.
function DeletePartObject(number1 : integer; number2 : integer; subject: integer = 0) : integer;
:
/ number1 number2.
TMapObj.Destroy
destructor Destroy; override;
.
,
:
TMapSemantic
Semantic;
TMapMetric
Metric
TMapView TMapFind,
.
TMapObj. DistanceObject
function DistanceObject(aMapObj2 : TMapObj; var aPoint1, aPoint2 : TDOUBLEPOINT;
var aDistance : double) : integer ;
.
aMapObj2 - , .
aPoint1 - (
TMapObj).
aPoint2 - (
aMapObj2).
aDistance - 0 .
0
TMapObj.Example
procedure Example(ABitmap: TBitmap);
ABitmap .
ABitmap Height Width.
TMapObj.ExCode
property ExCode: integer;
.
TMapObj.ExecuteDlgFind
function ExecuteDlgFind(aMapSelect : TMapSelect; aNext : boolean; aFrmMode :
integer) :
HOBJ;
aMapSelect
.
, ,
ObjHandle ( ) TMapObj
. aNext = true,
, TmapObj.
FrmMode (
MapType.pas) :
DlMinCommon

DlMinSemantic

DlMinMetric

DlMinScale

DlMinImage

DlMinPrint

DlMinGrafic

DlMaxSemantic

111

DlMaxMetric

DlMaxScale

DlMaxImage

DlMaxPrint

DlMaxGrafic

GisForms.dll.

Application.HelpFile.
6700.
TMapObj.GeneralFilter
.
function GeneralFilter(precision : double): integer;
:

, ( ,
; ).
precision - ( ,
).
0.
TMapObj.HeightType
property HeightType: THeightType;
/ :
HT_ALTITUDE -
HT_RELATIVE -
TMapObj.Image
property Image: integer;
, :
IMG_LINE
- 128 -
IMG_DOT
- 129 -
IMG_LINEDOT
- 130 -
IMG_DOUBLELINE - 131 -
IMG_DOTDLINE
- 132 -
IMG_SQUARE
- 135 -
IMG_OBJECT - 255 -
Mode Parm.
Mode Parm. Image = 0, Parm
, , Mode.
Image = 0, ColorImage.
Image = IMG_OBJECT (
).
MapGdi.h.
TMapObj.InCode
property InCode: integer;
.
TMapObj.Interval
property Interval : single;
.
,
, ,
. ImageColor
ImageColrUp. Interval = 0, ,
. 0.5 . Interval =
0.
TMapObj.IsObject3D
property IsObject3D: integer;
.
TMapObj.Key
property Key: integer;
.
Commit 0.
TMapObj.KeyName
property KeyName:string; (read only)
( - 31 )

112

.
( . ).
TMapObj.Kind
property Kind: integer;
" " (KM_xxxx).
.
KM_IDFLOAT2.
TMapObj.LayerNumber
property LayerNumber: integer;
, .
() 1.
.
0.
TMapObj.Length
property Length: double;
. ,
.
. 0.
TMapObj.LengthInMap
property LengthInMap: double;
. 0.
TMapObj.LinearFilter
.
function LinearFilter(precision : double): integer;
:
.
precision -
: 1. ;
2. < 2 ;
3. < 4 ;
4. ; precision
.
!!!
.
:
0 - ;
-1 - ;
-2 - ;
-3 - 3;
-10 - .
TMapObj.ListName
property ListName: string;
, .
TMapObj.ListNumber
property ListNumber: integer;
, .
TMapObj.Local
property Local: integer;
.
TMapObj.MapAction
procedure MapAction(Action: word); override;
TMapView:
: .
: .
: OnObjPaint
: ,
.
TMapObj. MapView
property MapView: TMapView;
, .
,
.
TMapObj.Metric
property Metric: TMapMetric;
.

113

TMapMetric.
TMapObj.Mode
property Mode: integer;
, :
R2_COPYPEN -
R2_NOT
-
R2_XORPEN -
Windows API (.
Mode WinApi SetROP2).
Image Parm.
Mode = R2_COPYPEN.
TMapObj.ObjFrame
property ObjFrame: TMAPDFRAME;
.
, , ,
PlaceOut.
X1, Y1 (-) ,
. X2, Y2 () .

. . ,
, , .
,
. (
) ObjViewFrame.
TMapObj.ObjHandle
property ObjHandle: HOBJ;
.
GisAcces.Dll. !
TMapObj HOBJ .
TMapObj.ObjName
property ObjName: string;
.

.
TMapObj.ObjViewFrame
function ObjViewFrame(force: boolean = false):TMAPDFRAME;
.
, ,
PlaceOut. ObjFrame,
, .
X1, Y1 (-) ,
. X2, Y2 () .

.
, .
force true.
force - ( ,
; .
TMapObj.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView
- .
NewMapView
- .
TMapObj.OnChangeObj
property OnChangeObj: TNotifyEvent;
,
.
TMapObj.OnCommit
property OnCommit: TNotifyEvent;
.
TMapObj.OnCreateNullObj
property OnCreateNullObj: TNotifyEvent;
.

114

CreateNullObj.
TMapObj.OnDelete
property OnDelete: TNotifyEvent;
.
TMapObj.OnFreeObj
property OnFreeObj: TNotifyEvent;
.
, TMapObj
( ObjHandle).
TMapObj.OnObjPaint
TMapPaintEvent procedure (Sender : TObject; Canvas: TCanvas; MapPaintRect : Trect) of object;
property OnObjPaint: TMapPaintEvent;
, .
,
, .
:
Sender
- TMapView.
Canvas - TMapView.
MapPaintRect -
(, ). ,
.
TMapObj.OnRollback
property OnRollback: TNotifyEvent;
.
TMapObj.PaintObjectUp
Procedure PaintObjectUp;
. ,
TmapObj (, CreateObjectByExcode)
.
TMapObj.Parm
property Parm: pointer;

. Parm ColorImage, ,

R2_COPYPEN , ColorImage.
Mode Image.
MapGdi.h.
TMapObj.Perimeter
property Perimeter: double;
. 0.
TMapObj.PlaceOut
property PlaceOut: TPPLACE;
ObjFrame.
,
.
.
TMapObj.RelocateObject
function RelocateObject(delta : PDoublePoint; place: integer) : integer;
( delta)
( place).
place :
PP_MAP, PP_PICTURE, PP_PLANE, PP_GEO.
0
TMapObj.Repaint
procedure Repaint;
.
TMapObj.Rollback
procedure Rollback;
,
Commit.
TMapObj.RotateObject
.
function RotateObject(var acenter : TDoublePoint; var aAngle : double): Integer;
:
.
0.

115

TMapObj.SeekObject
function SeekObject(ListName : string; Key : integer) : integer;
: .
(*.sit) .
1, 0.
TMapObj. SelectObjectInPoint
function SelectObjectInPoint(X,Y,Radius,FrmMode : integer) : integer;
X,Y Radius,

.
, MapView.ViewSelect
( ).
X, Y, Radius . X,Y
TMapView, TMapObj.
, ,
ObjHandle ( ) TMapObj
. FrmMode
( MapType.pas) :
dlMinCommon

dlMinSemantic

dlMinMetric

dlMinScale

dlMinImage

dlMinPrint

dlMinGrafic

dlMaxSemantic

dlMaxMetric

dlMaxScale

dlMaxImage

dlMaxPrint

dlMaxGrafic

GisForms.dll.

Application.HelpFile.
6700.
TMapObj.Semantic
property Semantic: TMapSemantic;
.
TMapSemantic.
TMapObj.SemanticStyle
TSemanticStyle = (
//
SS_NODECODE,
//
SS_NORMALDECODE, //
SS_FULLDECODE
//

);
property SemanticStyle: TMapSemanticStyle;
,
Semantic.SemanticValue.
Semantic.SemanticStyle.
TMapObj.SetFirstPoint
.
function SetFirstPoint(number, subject: integer) : integer;
:
(), number.
number - .
subject - ( = 0; ).
0.
TMapObj. SetObjectByDlg

116

function SetObjectByDLg(aCreate : boolean) : boolean;


.
aCreate = true
, :
, , . false.
TMapObj.SetObjectByExcode
function SetObjectByExcode(Kind, ExCode, Local : integer) : integer;
. Kind , ExCode
, Local .
0.
TMapObj. SetObjectByIncode
function SetObjectByIncode (Kind, Incode : integer) : integer;
Kind , Incode
.
0.
TMapObj. SetSite
function SetSite(SiteNumber : integer) : integer;
(, , ) .
SiteNumber .
,
, ( SetObjectByExcode),
.
.
TMapObj. ShowDialogInfo
function ShowDialogInfo(FrmMode : integer) : integer;
.
( , , ,
, ) , TMapObj,
. FrmMode
( MapType.pas)
SekectObjectInPoint.
0. GisForms.dll.

Application.HelpFile.
6700.
TMapObj.SideDirection
property SideDirection[SubObj: integer; Number: integer]: double;
() .
,
, .
0.
:
SubObj - ( SubObj = 0 - ).
Number - .
TMapObj.SideLength
property SideLength[SubObj: integer; Number: integer]: double;
().
, ,
.
0.
:
SubObj - ( SubObj = 0 - ).
Number - .
TMapObj.SiteNumber
property SiteNumber: integer;
, .
0.
TMapObj.SmoothingSplineObject
C (2- 3- ).
function SmoothingSplineObject(smooth : double): integer;
:
(2- 3-
).
smooth - (0..1; 0 - ; 1 - ).
0.
TMapObj.SmoothingSplineSubjec
C (2- 3- )..

117

function SmoothingSplineSubject(numSubj : integer; smooth : double): integer;


:
(2- 3-
).
subject - .
smooth - (0..1; 0 - ; 1 - ).
0.
TMapObj.Square
property Square: double;
. ,
.
.
0.
TMapObj.SquareInMap
property SquareInMap : double;
.
0.
TMapObj.Style
TObjectStyle = ( //
OS_NOVIEW, //
OS_NORMAL, // (
OS_NOVIEW)
OS_SELECT
// StyleSelect
);
property Style: TObjectStyle;
.
. OS_NOVIEW
, ,
. OS_SELECT
, () .
,
StyleSelect.
TMapObj.StyleSelect
TObjectStyleSelect = ( // ()

SEL_USERFUNC,
SEL_COLOR,
SEL_LINE,
SEL_BLINK1,
SEL_BLINK2,
SEL_OBJUP,
SEL_OBJUPMODE
);
property StyleSelect: TObjectStyleSelect;
.
Image, Mode, Parm.
SEL_USERFUNC ,
Image, Mode, Parm. .
SEL_COLOR .
ColorImage. , ( IMG_LINE), ( -IMG_SQUARE),
( - IMG_OBJECT).
SEL_LINE .
ColorImage. , ,
( - IMG_LINE), ( - IMG_OBJECT).
SEL_BLINK1 c ,
ColorImage ColorImageUp. , ( IMG_LINE), ( -IMG_SQUARE),
( - IMG_OBJECT).
SEL_BLINK2 c ,
ColorImage ColorImageUp. , ,
( - IMG_LINE), ( - IMG_OBJECT).
SEL_OBJUP ,
.
SEL_OBJUPMODE ,

, MODE TMApObj.
SEL_BLINK3 c
R2_NOT R2_COPYPEN.
SEL_COLOR

118

TMapObj.Text
property Text[SubObj: integer]: string;
.
SubObj ,
.
, (. TextType Local).
TMapObj.TextType
property TextType:boolean;
" ".
true , ,
.
TMapObj.TopScale
property TopScale: integer;
, .

.
,
, .

TMapOverlay.
.
- ( ,
) ,
, .
.
:

.
.
.
, .
\Example\Delphi6\MapOverlay\
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
FlagMessage
MapView
ObjectIn
ObjectTemplet
ObjectOut


(
3D-)
( )
()
.
IDDOUBLE2 IDDOUBLE3

:
public
Create
CreateOVL
Destroy
FreeOVL
GetAdjustTemplet
GetCrossPoints
GetNextObject
SetObjectCross
TMapOverlay.Create

.


,



119

constructor Create(Aowner: TComponent); override;


.
FlagMassage= false.
TMapOverlay.CreateOVL
function CreateOVL(flagIntersect : integer; precision : double;
tempNumSubject: integer; adjust : integer) : integer;

.
:
flagIntersect - :
1 - ();
0 - (
). ,
, " .
".
precision - , . precision <= 0
DOUBLENULL. < precision
(
)!
tempNumSubject - , ()
0 - (ObjectTemplet),
1 - (ObjectTemplet).
adjust - (0,1). 1 .
0.
TMapOverlay.Destroy
destructor Destroy;
, ,
, .
TMapOverlay.FlagMessage
property FlagMessage : boolean;
, .
true , false .
TMapOverlay.FreeOVL
procedure FreeOVL;
, CreateOVL. .
TMapOverlay.GetAdjustTemplet
function GetAdjustTemplet(subject : integer): integer;
. ,
ObjectOut,
.
:
subject - (0 - , 1 )
0.
TMapOverlay.GetCrossPoints
function GetCrossPoints : integer;
( ).
, ObjectOut,
. 0.
TMapOverlay.GetNextObject
function GetNextObject : integer;
( SetObjectCross
, 0). ObjectOut
. ()
, .
, GetNextObject :
1 - (
), ;
2 - ( );
0 - , .
, GetNextObject :
1 - ( );
2 - (
);
0 - , .
TMapOverlay.MapView
property MapView : TMapView;

120

,
3D-.
CreateOvl.
TMapOverlay.ObjectIn
property ObjectIn : TMapObj;
() . ,
. ,
, .
() ObjectIn SetObjectCross.
TMapOverlay.ObjectTemplet
property ObjectTemplet : TMapObj;
. ,
() .
, .
TMapOverlay.ObjectOut
property ObjectOut : TMapObj;
.
IDDOUBLE2 IDDOUBLE3. GetNextObject
GetAdjustTemplet, , ObjectOut,
.
TMapOverlay.SetObjectCross
function SetObjectCross(ObjInNumSubject : integer; precision : double; flag3d : integer;
method : integer; location : integer) : integer;
.
:
ObjInNumSubject - :
1 - ;
0 - ;
1 - .
precision - (DOUBLENULL ).
.
. precision = 0.001 ( ).
flag3d - ,
:
FLAG3D_NONE (0) - ;
FLAG3D_TEMPLET (2) - ;
FLAG3D_MATRIX (8) - (
);
FLAG3D_LINE (32) - ,
( );
FLAG3D_ALL (42) -
FLAG3D_TEMPLET|FLAG3D_MATRIX|FLAG3D_LINE
:
FLAG3D_TEMPLET|FLAG3D_MATRIX,
FLAG3D_MATRIX|FLAG3D_LINE,
FLAG3D_TEMPLET|FLAG3D_LINE.
:
FLAG3D_TEMPLET -> FLAG3D_MATRIX -> FLAG3D_LINE.
,
FLAG3D_NONE (0).
method - ( ):
METHOD_LINE 0 - ;
METHOD_SQUARE 1 - ( object) ;
METHOD_FAST 16 - - ,
!!!
, METHOD_LINE.
:
METHOD_LINE|METHOD_FAST, METHOD_SQUARE|METHOD_FAST
location - :
ANYOBJECT 0 - ;
ANYOBJECT2
- ,
;
OBJECTINSIDE - ;
OBJECTINSIDE2 - ,
;
OBJECTOUTSIDE - ;
OBJECTOUTSIDE2 - ,
.
:
OBJECTINSIDE|OBJECTOUTSIDE, OBJECTINSIDE2|OBJECTOUTSIDE, OBJECTINSIDE|
OBJECTOUTSIDE2, OBJECTINSIDE2|OBJECTOUTSIDE2.
, , , precision, method, location

121

. ,
SetObjectCross :
1 - ( GetNextObject );
2 - ( GetNextObject );
, SetObjectCross :
1 - ( ) (
GetNextObject );
2 - ( GetNextObject );
3 - ( 3
GetNextObject ).
method == 0, SetObjectCross :
1 - , (
GetNextObject );
2 - ( GetNextObject );
3 - ,
( ) ( 3
GetNextObject ).
method == 1, SetObjectCross :
1 - , ;
2 - ;
3 - ,
( ).
4 - ( 3 4 GetNextObject
)
0.

TMapPoint. .

.
TCompMapPoint,
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
Point

published
MapView
PlaceInp
PlaceOut

:
protected
MapAction

TMapView

public
Create
Destroy
GetPoint
SetPoint
GetPoint3D
SetPoint3D





x,y,h
x,y,h

:
published
OnChangeMapView
OnChangePoint
TMapPoint.Create

122

constructor Create(AOwner: TComponent); override;


.
TCompMapPoint
:
PlaceInp
= PP_PICTURE;
PlaceOut
= PP_PLANE;
X Y .
TMapPoint.Destroy
destructor Destroy; override;
TCompMapPoint
TMapView, .
TMapPoint.GetPoint
function GetPoint(var aX, aY : double) : boolean;
, PlaceOut.
false.
TMapPoint.MapAction
procedure MapAction(Action: word); override;
TMapView:
: X Y
(-) .
: .
TMapPoint.OnChangePoint
property OnChangePoint: TNotifyEvent;
.
TMapPoint.PlaceInp
property PlaceInp: TPPLACE;
.
,
.
.
TMapPoint.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TMapPoint.Point
property Point: TCompMapPoint;
.
TCompMapPoint.
TMapPoint.SetPoint
function SetPoint( aX, aY : double) : boolean;
, PlaceIn.
false.
TMapPoint.SetPoint3D
function SetPoint3D( aX, aY, aH : double) : boolean;
:
, PlaceIn.
false.
TMapPoint.GetPoint3D
function GetPoint3D(var aX, aY, aH : double) : boolean;
:
, PlaceOut.
false.
TMapPoint.Y
property Y: double;
.
. .
, PlaceInp.
, PlaceOut.
0.
.

123

TMapPrintDialog. .


.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
Black
Border
Caption
Copies
FieldBottom
FieldLeft
FieldTop
FieldRight
FilePrn
FileName
FitToPage
HelpEnabled
Intensity
MapView
PlaceShow
PrintSelecting
SaveParam

-











(0-100)


TMapView.PrintSelect







ShiftLef
ShiftTop
TypePreview
TypePrint
TypeOutput
TypeOrient
:
public
Create
Destroy
Execute

:
published
OnChangeMapView
OnSelectRect

MapView
/

TMapPrintDialog.Black
property Black: boolean;
- .
true, - .
TMapPrintDialog.Border
property Border: boolean;
.
true, .
TMapPrintDialog.Caption
property Caption: TCaption;

124

.
TMapPrintDialog.Copies
property Copies: integer;
C .
TMapPrintDialog.Execute
Function Execute : boolean;
. true.
TMapPrintDialog.FieldBottom
property FieldBottom: integer;
C
.
TMapPrintDialog. FieldLeft
property Fieldleft: integer;
C
.
TMapPrintDialog. FieldRight
property FieldRight: integer;
C
.
TMapPrintDialog.FieldTop
property FieldTop: integer;
C
.
TMapPrintDialog.FileName
property FileName: string;
. , FilePrn true.
TMapPrintDialog.FilePrn
property FilePrn: boolean;
.
true, ,
FileName.
TMapPrintDialog.FitToPage
property FitToPage: boolean;
.
true,
, .
TMapPrintDialog.HelpEnabled
property HelpEnabled: boolean;
.
true Application.HelpFile ,
5037, .
TMapPrintDialog.Intensity
property Intensity: Tintensity;
type TIntensity = 0 .. 100;
.
..
TMapPrintDialog.MapView
property MapView: TMapView;
, .
TMapPrintDialog.OnSelectRect
type
TSelectRectEvent = procedure (Sender : TObject; MapView : TMapView; Select :
TTypeSelectRect; var RectMetr : TRect; var AutoSelect : boolean) of object;
property OnSelectRect: TSelectRectEvent;
//
,
( ).
:
MapView - TmapView .
Select
-
RectMetr -
AutoSelec - .
AutoSelect true,
.
TMapPrintDialog.PlaceShow
property PlaceShow: TPPLACE;

125

,
.
TMapPrintDialog.PrintSelecting
property PrintSelecting: boolean;
TMapView.PrintSelect
true, ,
, MapView.PrintSelecting
TMapPrintDialog.SaveParam
property SaveParam: boolean;
, ,
true,
( )
.
TMapPrintDialog.ShiftLeft
property ShiftLeft: integer;
.
TMapPrintDialog.ShiftTop
property ShiTop: integer;
.
TMapPrintDialog.TypeOrient
property TypeOrient: TPrnOrient;
type TPrnOrient = (MPN_DEFAULT, MPN_PORTRAIT, MPN_LANDSCAPE);
.
MPN_DEFAULT .
MPN_PORTRAIT .
MPN_LANDSCAPE .
TMapPrintDialog.TypeOutput
property TypeOutput: TPrnOutput;
type TPrnOutput = (MPO_VECTORIAL, MPO_RASTERIAL);
.
MPO_VECTORIAL ( ).
MPO_RASTERIAL ( , , ).
TMapPrintDialog.TypePreview
property TypePreview: TprnPreview
type TPrnPreview = (MPV_SCHEME, MPV_MAP, MPV_INFO);
.
MPV_SCHEME
.
MPV_MAP .
MPV_INFO .
TMapPrintDialog.TypePrint
property TypePrint: TPrnType;
type TPrnType = (MPT_NORMAL, MPT_TRANSPARENT, MPT_CONTOUR);
.
MPT_NORMAL .
MPT_TRANSPARENT .
MPT_CONTOUR .

TMapNet. .

TMapNet ( ) ,
,
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
.

126


.
( - ).
- .
service.rsc,
: , , , .
:

- ( );

- ( );

- ( );

( );

.
,
: .
. -,
,
.
, ,
. ,
.
.
, LOG.
:
public
GetCountRib
GetArrayRib
NetSitHandle
NetSitNumber
SelectForNet
published
MapViewAcces
NetRscName
NetSitName
SelectColor
GraphHandle

public
BuildNet
GetEdgesFromNode
GetCountRib
GetFastWay
GetNodeByPoint
GetShotWay
GetShotWayDlg
OpenGraph
CloseGraph
GetFastWayAndCreateObject
GetShotWayAndCreateObject
GetShotWayDlgAndCreateObj
ect
GetShotWayByPointAndCreat
eObject
GetShotWayByPointExAndCr
eateObject
GetMinimalPath
GetMinimalPathEx
GetMinimalPathSite










a
c ,
a
c ,


c ,







,

127

TMapNet.BuildNet
function BuildNet(ShowDialog : boolean): HSITE;
, SelectForNet,
.

(NetSitName) (NetRscName). ,
,
_Net,
. , ,
service.rsc .
ShowDialog , (true)
(false).
.
, .
TMapNet.CloseGraph
function CloseGraph(Graph:HGRAPH) : integer;
.
.
TMapNet.GetCountRib
function GetCountRib(infobegin : HOBJ; infoend : HOBJ): integer;
.
infobegin - .
infoend - .
0.
TMapNet.GetArrayRib
function GetArrayRib(infobegin : HOBJ; infoend : HOBJ;arrayrib : PInteger; count : integer): integer;
infobegin infoend
infobegin - .
infoend - .
arrayrib -
countrib -
arrayrib countrib.
0
TMapNet.GetEdgesFromNode
function GetEdgesFromNode(Node: HOBJ; Meters: double): integer;
.
. ,
, , , ,
, .
OpenGraph(). Node
. Meters
.
, SelectForNet
.
, .
TMapNet.GetFastWay
function GetFastWay(NodeStart, NodeFinish: HOBJ; speed : double): integer;
.
, ,
, SelectForNet.
OpenGraph().
NodeStart NodeFinish .
speed / , ,
.
, .
TMapNet. GetFastWayAndCreateObject
function GetFastWayAndCreateObject(Info, NodeStart, NodeFinish: HOBJ; speed: double): integer;
, ,
, SelectForNet.
NodeStart
NodeFinish . speed / ,
,
. OpenGraph().
Info - ,

mapCreateObject()
mapCreateSiteObject(), .
.
TMapNet. GetMinimalPath

128

function GetMinimalPath(var arraypoint : TDOUBLEPOINT; count : integer): integer;


.
OpenGraph(). arraypoint -
, count.
. " ",
( ,
"") .
" ",
, ,
, . arraynumber ,
.
0.
TMapNet. GetMinimalPathEx
function GetMinimalPathEx( var arraypoint : TDOUBLEPOINT; arraynumber : Pinteger; count : integer;
flagreturn : integer; flagcalc : integer): double;
( ), .
OpenGraph.
arraypoint - ( ) ,
count, arraynumber
( ), count (array[1..count] of integer),
flagreturn - (0 - , 1 - ),
flagcalc - (0 - , 1- ).
. arraynumber
, .
0, - .
TMapNet.GetMinimalPathSite
function GetMinimalPathSite(tempsite : HSITE;var arraypoint : TDOUBLEPOINT; count : integer): integer;
.
OpenGraph(). arraypoint -
, count.
. " ",
( ,
"") .
" ",
, ,
, .
tempsite.
0.
TMapNet.GetNodeByPoint
function GetNodeByPoint(ObjHandle: HOBJ;
var PlanePoint: TDOUBLEPOINT): integer;
,
. PlanePoint .
OpenGraph().
ObjHandle
. , ObjHandle
. API- mapCreateObject
TMapObj. API-
(mapFreeObject).
.
TMapNet.GetShotWay
function GetShotWay(NodeStart, NodeFinish: HOBJ): integer;
, ,
SelectForNet.
OpenGraph().
NodeStart NodeFinish .
, .
TMapNet. GetShotWayAndCreateObject
function .GetShotWayAndCreateObject(Info, NodeStart, NodeFinish: HOBJ): integer;
, ,
SelectForNet.
NodeStart NodeFinish .
OpenGraph(). Info -

mapCreateObject()

mapCreateSiteObject(), - .
.
TMapNet. GetShotWayByPointAndCreateObject

129

function GetShotWayByPointAndCreateObject(Info: HOBJ; var PointStart,PointFinish: TDOUBLEPOINT):


integer;
..
OpenGraph(). Info - ,
mapCreateObject() mapCreateSiteObject(),
- . PointStart,PointFinish -
.
.
TMapNet. GetShotWayByPointExAndCreateObject
function TMapNet.GetShotWayByPointExAndCreateObject(Info: HOBJ; var PointStart,PointFinish:
TDOUBLEPOINT; select:HSelect): integer;
.
OpenGraph(). Info - ,
mapCreateObject() mapCreateSiteObject(),
- . PointStart,PointFinish -
, select - ( ,
).
.
TMapNet.GetShotWayDlg
function GetShotWayDlg(NodeStart, NodeFinish: integer): integer;
.
OpenGraph()
.

.
NodeStart
NodeFinish . ,
, SelectForNet.
, .
TMapNet. GetShotWayDlgAndCreateObject
function GetShotWayDlgAndCreateObject(Info: HOBJ; var PointStart,PointFinish: TDOUBLEPOINT):
integer;
.

.
.
OpenGraph(). Info - ,
mapCreateObject() mapCreateSiteObject(),
- . PointStart,PointFinish -
.
.
TMapNet. GraphHandle
property GraphHandle: HGraph
,
onOpenGraph(...). .
TMapNet.MapViewAcces
property MapViewAcces: TMapViewAcces;
.
, .
.
TMapNet.NetRscName
property NetRscName : string;
.
service.rsc
. ,
, ,
.
, , ,
: , , ,
. :

- ( );

- ( );

- ( );

( );
.

130

TMapNet.NetSitHandle
property NetSitHandle: HSITE
,
. ,
MapViewAcces, (
NetSitName), .
TMapNet.NetSitName
property NetSitName : string
.
MapViewAcces, ,
.
. ,
MapViewAcces ,
.
TMapNet.NetSitNumber
property NetSitNumber: integer
, ,
. .
, NetSitName, .
TMapNet.OpenGraph
function OpenGraph(Map : HMAP; Site : HSITE) : integer;
.
()
. , ,
. ,

. .
Map - ,Site
.
.
TMapNet.SelectColor
property SelectColor : TColor
. clNone. ,
,
. .
(SelectColor= clNone), .
TMapNet.SelectForNet
property SelectForNet: TMapSelect;
. ,
SelectForNet. ,
SelectForNet . , ,
., SelectForNet ,
.. , .

TMapQRep. .

TMapQRep
Delphi QuickReport.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TCustomControl
|
TQRPrintable
|

131

TMapQ
:
published
MapView
TypePrint

Create

:
public
Destroy
:
published
OnChangeMapView
TMapQRep.Create
constructor Create(AOwner: TComponent); override;
.
:
TypePrint := qmVisual;
TMapQRep.Destroy
destructor Destroy; override;
TMapView,
.
TMapQrep. MapView
property MapView: TMapView;
, .
,
.
TMapQRep.TypePrint
TTypePrint =
(qmVisual, // MapView
qmReal); //
property TypePrint: TTypePrint;
.
,
, () ,
(
).

TMapRsc. .

:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
.
.
ShowDialogRsc,
.
MapApi.
RscApi.h.
- ,
, ,

132

. RSC. RSC

:
a c () ap:
aa ( 32 ), ;
(16 ), ;
a p ( 1 256);
pp p pa a ,pap ..( 0 255 p
apa );
a ap:
aa a ( 32 );
( 32 ), ;
aa a (11 );
apap aa (, a, , , , );
p ;
apa pa;
aap (a a a aaa);
pa a ( aa p);
a a apap;
a apap;

apap, a p a a p pa,
aa a a ;
a, ;
a a apap:
aa apap ( 32 );
( 16 ) ;
aa apap ( 1 65535);
a (, , aapa a a a);
a p (7 );
a, aa aa a apap -
;
pa p apap ( a a
a);
a aapa a a apap:
aa apap ( 1 65535);
aa a apap ( 1 65535);
a apap ( 32 );
:
;
;
:
;
.
:
published
MapView
public
FileName
LocalCount
LocalName
MapLayers
MapSemantics
ObjectCount
ObjectCountForSeri
es
ObjectDescribe
ObjectIncodeByKey
ObjectIncodeByNa
me
ObjectKey
ObjectName
RscHandle
SiteNumber
:
public





()


,



( )

RSC
MapApi

133

CreateRsc
CloseRsc
OpenRsc
ShowDialogRsc

.

RSC
.

TMapRsc.CloseRsc
procedure CloseRsc;
RSC, OpenRsc.
TMapRsc.CreateRsc
procedure CreateRsc;
. ,
.
TMapRsc.FileName
property FileName : string;
, .
TMapRsc.LocalCount
property LocalCount : integer;
.
TMapRsc.LocalName
property LocalName[aNumber : integer] : string;
. 0.
TMapRsc. MapLayers
property MapLayers : TMapLayers;
TMapLayers,
.
TMapRsc.MapSemantics
property MapSemantics : TMapSemantics;
TMapSemanics,
.
TMapRsc.MapView
property MapView : TMapView;
.
TMapView, .
, MapView ,
SiteNumber.
TmapRsc ( OpenRsc) MapView
, TMapRsc
TmapView.
TMapRsc.ObjectCount
property ObjectCount : integer;
.
TMapRsc. ObjectCountForSeries
property ObjectCountForSeries[aExcode, aLocal : integer] : integer;
.
.
TMapRsc.ObjectDescribe
property ObjectDescribe[aIncode : integer] : TRSCOBJECTDESC;
TRSCOBJECTDESC
Code : integer ;
Local : integer ;
Segment : integer ;
Scale : integer ;

= packed record
//
// (OBJECT_LOCAL)
// 0 ( 255)
// 1 -
// 0 -
Direct : integer ; // (OBJECT_DIRECT)
Bot : integer ; // ( )
Top : integer ; // ( )
Name : array [0..31] of Char; // ( 30)
Key : array [0..31] of Char; // ( ) ( 30)
end;
aIncode ( ).
TMapRsc.ObjectIncodeByKey
property ObjectIncodeByKey[aKey : string] : integer;
( ) .

134

TMapRsc.ObjectIncodeByName
property ObjectIncodeByName[aKey : string] : integer;
( ) .
TMapRsc.ObjectKey
property ObjectKey[aIncode : integer] : string;
( ) ( )
aIncode ( 1).
TMapRsc.ObjectName
property ObjectName[aIncode : integer] : string;
( ) aIncode
( 1).
TMapRsc.OpenRsc
function OpenRsc(aFileName : string) : HRSC;
aFileName.
.
RscHandle. RSC
MapView , TmapRsc
, TmapView
OpenRsc.
TMapRsc.RscHandle
function OpenRsc(aFileName : string) : HRSC;
,
MapApi.
TMapRsc.ShowDialogRsc
procedure ShowDialogRsc;
.
(, ).
TMapRsc.SiteNumber
property SiteNumber : integer;
,
TmapRsc. MapView.

TMapRst. .
.
.
:
TObject
|
TPersistent
:
public
ActualRstFrame
ColorCount
ElementSize
Inversion
IsRstLocate
Location
Number
Precision
RstBright
RstContrast
RstGamma
RangeScaleVisible
RstFileName
RstFrameMeters
RstHeight
RstLength
RstScale
RstView
RstViewOrder
RstWidth






-





,







135

ViewByBorder

public
DeleteBorder
GetRstBorder
GetRstColors
GetRstPalette
GetRstPoint
PlanePointColor
SetRstColors
SetLocation2
SetLocation2NewRst
SetRstBorder
SetRstPlanePoint
SetRstPoint
SaveRaster



(
/)
(
/)



TMapRst.ActualRstFrame
property ActualRstFrame: TMAPDFRAME
- .
.
TMapRst.ColorCount
property ColorCount: integer
.
TMapRst.DeleteRstBorder
function DeleteRstBorder: integer;
.
,
.
.
TMapRst.ElementSize
property ElementSize: integer
.
TMapRst.GetRstBorder
function GetRstBorder(Border: HOBJ): integer;
. Border ,
, .
Border .
.
TMapRst.GetRstColors
function GetRstColors(var aPalette: TArrayCOLORREF): integer;
TArrayCOLORREF = array of TColorRef;
(
). aPalette,
ColorCount, 256. ColorCount > 256,
.
.
TMapRst.GetRstPalette
function GetRstPalette (var aPalette: TArrayCOLORREF): integer;
TArrayCOLORREF = array of TColorRef;
(
). aPalette,
ColorCount, 256.
ColorCount > 256, .
.
TMapRst.GetRstPlanePoint
function GetRstPlanePoint(var Value: integer; x, y : double): integer;

. ( 256 ) Value
. TrueColor (
256 ) Value

136

COLORREF.
.
TMapRst.GetRstPoint
function GetRstPoint(var Value: integer; Row, Col : integer): integer;

Row() Col(). ( 256 )
Value .
TrueColor ( 256 ) Value
COLORREF.
.
TMapRst.Inversion
property Inversion: boolean
(false)
(true).
, .
TMapRst.IsRstLocate
property IsRstLocate: boolean
. , true.
( - )
TMapRst.Location.
TMapRst.Location
property Location: TDOUBLEPOINT
-
( ).
IsRstLocate,
, , true.
TMapRst.Number
property Number: integer;
, ,
.
TMapRst.PlanePointColor
function PlanePointColor(x, y : double): COLORREF;

. COLORREF.
.
TMapRst.Precision
property Precision: double
( ).
TMapRst.RangeScaleVisible
property RangeScaleVisible : TViewScaleRange
TViewScaleRange = packed record
TopScale: integer;
BottomScale: integer;
end;
.
, .
TMapRst.RstBright
property RstBright: TRstBright
type TRstBright = -16..16
.
RstBright=0 () .
, .
, .
TMapRst.RstContrast
property RstContrast: TRstContrast
type TRstContrast = -16..16
.
RstContrast=0 () .
,
.
, .
TMapRst.RstFileName
property RstFileName: string;
.
.

137

TMapRst.RstFrameMeters
property RstFrameMeters: TMAPDFRAME
( ) - .
TMapRst.RstGamma
property RstGamma: TRstGamma
type TRstGamma = -32..32

.
RstGamma=0 () .
,
.
, .
TMapRst.RstHeight
property RstHeight: integer
() .
TMapRst.RstLength
property RstLength: Cardinal
.
TMapRst.RstScale
property RstScale: double
.
TMapRst.RstView
property RstView: TRstViewType
type TRstViewType = 0..5;
= 0 -
= 1 -
= 2 -
= 3 -
= 4 -
= 5 -
.
, .
TMapRst.RstViewOrder
property RstViewOrder: integer

(RstViewOrder=1) (RstViewOrder=0).
, .
TMapRst.RstWidth
property RstWidth: integer
() .
TMapRst.SaveRaster
procedureSaveRaster;
.
,
, .
TMapRst.SetLocation2
function SetLocation2(var pointOLD_1, pointNEW_1,
pointOLD_2, pointNEW_2 : TDOUBLEPOINT;
DlgHandle : HWND = 0): integer;
.
(pointOLD_1, pointOLD_2) (pointNEW_1,
pointNEW_2). .
,
, .
,
DLGHandle . :

(WM_PROGRESSBAR) ;

WPARAM - (0% - 100%);

- WM_PROGRESSBAR, .
.
GISPICTR.DLL.
.
TMapRst. SetLocation2NewRst
function SetLocation2NewRst(var pointOLD_1,
pointNEW_1,

138

pointOLD_2,
pointNEW_2 : TDOUBLEPOINT;
NewRstName: string;
DlgHandle : HWND = 0): integer;
,
, , NewRstName ,
NewRstName.
(pointOLD_1, pointOLD_2)
(pointNEW_1, pointNEW_2). .
,

, .
,
DLGHandle .
:

(WM_PROGRESSBAR) ;

WPARAM - (0% - 100%);

- WM_PROGRESSBAR, .
.
GISPICTR.DLL.
.
TMapRst.SetRstBorder
function SetRstBorder(Border: HOBJ): integer;

Border.
Border .
.
TMapRst.SetRstColors
function SetRstColors(const aPalette: TArrayCOLORREF): integer;
TArrayCOLORREF = array of TColorRef;
.
aPalette, 256.
.
TMapRst.SetRstPlanePoint
function SetRstPlanePoint(Value: integer; x, y : double): integer;
TMapRst.SetRstPoint
function SetRstPoint(Value: integer; Row, Col : integer): integer;
. ()
Row() Col(),
Value. ( 256 ) Value
, TrueColor (
256 ) COLORREF. ,
(SaveRaster),
.
.
TMapRst.ViewByBorder
property ViewByBorder: boolean
( true) (false).
, .
. ()
X, Y ( ),
Value. ( 256 ) Value
, TrueColor ( 256 )
COLORREF. ,
(SaveRaster), .
.

TMapRsts. - .
.

TMapRst.

, .
:
TObject
|

139

TPersistent
:
public
MapRsts
NameRsts
RstCount

:
public
Append
CreateRst
CreateAndAppendRst
DefineProperties
Delete
DeleteName
mclBuildZoneVisibility

TMapRsts.Append
function Append(ARstFileName: string): integer;
function Append(ARstFileName: string; mode : integer): integer;
.

.
0.
ARstFileName .
mode : / (GENERIC_WRITE
0) (GENERIC_READ).
mode , /.
.
TMapRsts.CreateAndAppendRst
Type
PCOLORREF = ^COLORREF;
function CreateAndAppendRst(RstFileName : string;
WidthPix, HeightPix, BitsInPix : Cardinal;
palette : PCOLORREF; colorcount : Cardinal;
scale, precision : double; location : TDOUBLEPOINT) : HMAP;
RstFileName
:
WidthPix, HeightPix ();
BitsInPix ( : 1 , 4
16 , 8 256 , );
palette (
1, 4, 8);
colorcount ;
scale ;
precision ( ,
);
location () - .
. .
TMapRsts.CreateRst
Type
PCOLORREF = ^COLORREF;
function CreateRst(RstFileName : string;
WidthPix, HeightPix, BitsInPix : Cardinal;
palette : PCOLORREF; colorcount : Cardinal;
scale, precision : double) : HMAP;
RstFileName :
WidthPix, HeightPix ;
BitsInPix ( );
palette ;
colorcount ;
scale
precision .
, .
TMapRsts.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
MapRst,

140

.
TMapRsts.Delete
! , .
procedure Delete(Number: integer);
.
Number .
.
TMapRsts.DeleteName
procedure DeleteName(ARstFileName: string);
.
ARstFileName .
.
TMapRsts.MapRsts
property MapRsts[Number: integer]: TMapRst;
.
.
Number .
TMapRsts. mclBuildZoneVisibility
function mclBuildZoneVisibility(namersw : string; var zonevisibility : TBUILDZONEVISIBILITY): integer;
.
. namersw. .
.
TMapRsts.RstCount
property RstCount: integer;
.
0.

TMapScreen. (,
) .
( )
() .

.
, .
,

TMapView.

( ), : (
) (
).
, : 4096
, 4096 .
4.
( )
:
1. (
- MapScreen.ScreenRepaint);
2. ( mapapi, winapi)
MapScreen.
MapScreenUpdate;
3.
-MapScreen.RepaintWindow;
:
1. (
) - MapScreen.ClearObjects.

. ,
InvalidateRect;
2.
;

141

3.


- MapScreen.RepaintWindow;

gisscrn.dll, .
\examp\delphi5\trafic2\traffic.dpr.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TScrollingWinControl
|
TMapViewAccess
|
TMapViewWindow
|
TMapView
MapScreen TMapView.
, , .
:
public
SavedCenterPointPlane
ScreenHandle
OleVisible



API
/ OLE

:
public
ClearObjects
CreateLoxodrome
CreateOrthodrome
CreateVisibilityZone
CurrentProjectionParametersDi
alog
FreeMapScreenDc
GetCenter
GetMapScreenDc
GeneralFilterInMap
MapSortDialog
Repaint

RepaintWindow
SaveMapToSxfExDialog
SaveMapToTxfExDialog
SetCenter
SetAppendDataMode
SetRegion
ScreenRepaint
UpdateMapFromSxfDialog
WorkSystemParametersDialog



.
.

.

,





()

().

,
(
)


( ).
() SXF
() TXF
( SXF)


(1 , 0 - )




SXF, TXF DIR

142


:
published
OnMapScreenUpdate

, ,
OnMapScreenUpdate .
TMapScreen.ClearObjects
procedure ClearObjects(aPRect : Prect);
.
.
.
. aPRect ,
.
TMapScreen.CreateLoxodrome
function CreateLoxodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.
first - .
second - .
pArr - . count.
count -
0.
TMapScreen.CreateOrthodrome
function CreateOrthodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.
first - .
second - .
pArr - . count.
count - .
0.
TMapScreen.CreateVisibilityZone
function CreateVisibilityZone (rstName : GTKPCHAR; aZone : TBuildZoneVisibility)): Integer;
.
RstName - .
aZone - (.maptype.h).
.
RstName.
.
0.
TMapScreen.CurrentProjectionParametersDialog
function CurrentProjectionParametersDialog(parm : PTASKPARMEX = nil): integer;

, .

(mapIsGeoSupported() != 0).
.
, ,
.
(mapPlaneToGeo, mapGeoToPlane, mapPlaneToGeoWGS84,
mapAppendPointPlane, mapInsertPointPlane, mapUpdatePointPlane, mapAppendPointGeo )
, .
\
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll.
mappasp.chm.
TMapScreen. FreeMapScreenDc

143

procedure FreeMapScreenDc;

GetMapScreenDc.

TMapScreen.GeneralFilterInMap
()
().
function GeneralFilterInMap (site : HSite; list : integer; precision : double; aWnd : HWnd): Integer;

( , ,
).
Site - .
list
- .
precision - ( ,
).
aHwnd - , (
).
0x590:
wparm : ;
lparm : .
= mapGetObjectCount(hMap; list)
-
= mapGetSiteObjectCount(hMap; hSit) -
0x590.
0.
TMapScreen.GetMapScreenDc
function GetMapScreenDc : HDC;
.
.
(Windows/ XWindow).
.
.
TMapScreen .GetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure GetCenter(var aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
aPoint.
aPlaceOut.
TMapScreen.MapSortDialog
function TMapView.MapSortDialog(parm : PTASKPARMEX = nil): integer;
.
parm . TASKPARM maptype.pas
(maptype.h). Handle parm .
parm ,
InitTaskParmEx (maputil.pas).
.
gisvectr.dll
mapvectr.chm.

TMapScreen.OnMapScreenUpdate
TMapScreenUpdateEvent = procedure (Sender : TMapScreen; aMapPaintRect : TRect;
aLeftInWin, aTopInWin : integer) of object;
property OnMapScreenUpdate : TmapScreenUpdateEven;
.
.
aMapPaintRect ( PP_PICTURE).
aLeftInWin, aTopInWin
( ).
TMapScreen.OleVisible
property OleVisible : boolean;
/ OLE
, true, OLE
, 2011 *.omp.
, false, OLE

144

.
*.omp OLE (Word, Exel, Paint .).
TMapScreen.Repaint
procedure Repaint;
, ,

.
OnMapScreenUpdate.
TMapScreen.RepaintWindow
procedure RepaintWindow;
.
OnMapScreenUpdate .
TMapScreen.SavedCenterPointPlane
property SavedCenterPointPlane : TDOUBLEPOINT;
,
SavePositionMapInCenterWindow.
RestorePositionMapInCenterWindow.
.
.
TMapScreen.SaveMapToSxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToSxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() SXF
MapName - , (hmap),
OutName - SXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapScreen.SaveMapToTxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToTxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() TXF ( SXF)
MapName - , (hmap),
OutName - TXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.

145

TMapScreen.ScreenHandle
property ScreenHandle : HSCREEN;
, mapapi
.
TMapScreen.ScreenRepaint
ScreenRePaint(aPaintRectInWin : PRect);
,
OnMapScreenUpdate. aPaintRectInWin ,
. aPaintRectInWin = nil,
.
TMapScreen.SetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure SetCenter(const aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
,
aPoint.
aPlaceIn.
TMapScreen.SetAppendDataMode
.
function SetAppendDataMode(mode : integer) : integer;
: .
: mode - (1 - , 0 - );
: .
(
AppendData, MapSites.Append .)
.

.

, .

.
,
.
TMapScreen.SetRegion
function SetRegion: integer;
.
.
TMapScreen. UpdateMapFromSxfDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function UpdateMapFromSxfDialog(var SxfName: string; Parm : PTASKPARM = nil) : integer;
SXF, TXF DIR ( SXF TXF)
sxfname - SXF, .
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.

146

TMapScreen.WorkSystemParametersDialog
function WorkSystemParametersDialog(parm : PTASKPARMEX = nil): integer;
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll
mappasp.chm.

TMapSection. .
, , TMapSections.
.
:
TObject
|
TPersistent
|
TCollectionItem
:
public
Point

CountPoint
PlaceInp
PlaceOut
X
Y

published

:
public
Assign
Create

Destroy
Update

OnChangePoint

DefineProperties

:
published
TMapSection.Create
constructor Create(Collection: TCollection); override;
.
TCollectionItem.Create.
TMapSection.CountPoint
property CountPoint: integer;
.
0.
.
Update.
TMapSection.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
FX, FY, HeightCount, HeightArray,
.
TMapSection.Destroy
destructor Destroy; override;

147

, ,
TCollectionItem.Destroy.
TMapSection.OnChangePoint
property OnChangePoint: TNotifyEvent;
.
TMapSection.PlaceInp
property PlaceInp: TPPLACE;
.
,
.
.
TMapSection.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TMapSection.Point
property Point: TCompMapPoint;
.

.
.
.
Update.
TMapSection.Update
procedure Update;
.

.
TMapSection.X
property X: double;
.

.
.
PlaceInp PlaceOut.
.
Update.
TMapSection.Y
property Y: double;
.

.
.
PlaceInp PlaceOut.
.
Update.

TMapSections. .


.
(
). . ,
, - .
( ,
.
/ , ,
. ProfilDlgHandle 0.
:

148

TMapSections.Update := false;
TMapSections.AppendSection(); //
//
for ii := 1 to TMapSections.PointCount - 1
do TMapSections.Sections.Items[ii].CountPoint := ;
MapSect.Update := true;
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
public
FullHeightCount
HeightCounts
Heights
ProfilDlgIsCurvatureE
arth
ProfilDlgDeltaCurrent
ProfilDlgDeltaLeft
ProfilDlgDeltaRight
ProfilDlgHandle
ProfilDlgColorProf
ProfilDlgColorLine
ProfilDlgIsMiddleHeig
ht
ProfilDlgIsLineCross
ProfilDlgIsLineFCL
ProfilDlgIsLineFL
ProfilDlgIsLineNet
ProfilDlgIsLineRelief
ProfilDlgStepVertical
ProfilDlgStepHorizont
al
published
ErrorHeight
MapView
PointCount
Sections
Update












( )
( - - )
( - )


()
()

:
public
AppendSection
Create
CreateHeightArray
DeleteSection
Destroy
HeightArray
InsertSection
ProfilDlgClose
ProfilDlgOpen
ProfilDlgSetCurrentPoi
nt
UpdateSection
:
OnChangeMapView
OnProfilDlgCLosed
OnUpdate

149

TMapSections.AppendSection
procedure AppendSection(AMapPoint: TCompMapPoint);
.
,
2.
TMapSections.Create
constructor Create(AOwner: TComponent); override;
.
TColMapSection
-111111 ErrorHeight.
TMapSections.CreateHeightArray
procedure CreateHeightArray;
, Update
.
Update=true
.
TMapSections.DeleteSection
procedure DeleteSection(Number: integer);
Number.
1.
TMapSections.Destroy
destructor Destroy; override;
( TColMapSection)
.
TMapSections.ErrorHeight
property ErrorHeight: double;


, .
, ,
.
TMapSections.FullHeightCount
property FullHeightCount: integer;
.
, , ,
.
TMapSections.HeightArray
procedure HeightArray(var AHeightArray: array of double);
AHeightArray .
FullHeightCount.
TMapSections.HeightCounts
property HeightCounts[Number: integer]: integer;

Number.
1.
TMapSections.Heights
property Heights[Number: integer]: double;
.
1 FullHeightCount.
TMapSections.InsertSection
procedure InsertSection(Number: integer; AMapPoint: TCompMapPoint);

Number.
2.
1.
TMapSections. MapView
property MapView: TMapView;
, .
,
.
TMapSections.OnProfilDlgCLosed
property OnUpdate: TNotifyEvent;
.
TMapSections.OnUpdate
property OnProfilDlgCLosed: TNotifyEvent;

150

.
TMapSections.PointCount
property PointCount: integer;
.
2.
TMapSections.ProfilDlgClose
function ProfilDlgClose : integer;
.
TMapSections.ProfilDlgColorProf
property ProfilDlgColorProf : integer;
.
TMapSections.ProfilDlgColorLine
property ProfilDlgColorLine : integer;
, , (
).
TMapSections.ProfilDlgIsCurvatureEarth
property ProfilDlgIsCurvatureEarth : integer;
: 0 - 1 - .
TMapSections.ProfilDlgDeltaCurrent
property ProfilDlgDeltaRight : double;
(
).
TMapSections.ProfilDlgDeltaLeft
property ProfilDlgDeltaLeft : double;
(
).
TMapSections.ProfilDlgDeltaRight
property ProfilDlgDeltaRight : double;
(
).
TMapSections.ProfilDlgIsLineCross
property ProfilDlgIsLineCross : integer;
: 0 - , 1 - .
TMapSections.ProfilDlgIsLineFCL
property ProfilDlgIsLineFCL : integer;
- - : 0 - , 1 - .
TMapSections.ProfilDlgIsLineFL
property ProfilDlgIsLineFL : integer;
- : 0 - , 1 - .
TMapSections.ProfilDlgIsLineNet
property ProfilDlgIsLineNet : integer;
: 0 - , 1 - .
TMapSections.ProfilDlgIsLineRelief
property ProfilDlgIsLineRelief : integer;
: 0 - , 1 - .
TMapSections.ProfilDlgHandle
property ProfilDlgHandle: HBUILDPROFIL;
.
TMapSections.ProfilDlgIsMiddleHeight
property ProfilDlgIsMiddleHeight : integer;
: 0 - , 1 - .
TMapSections.ProfilDlgOpen
function ProfilDlgOpen(aCrdx, aCrdy : double; aMapObj : TMapObj) : integer;
.
, , aMapObj. aCrdx, aCrdy .
TMapSections.ProfilDlgSetCurrentPoint
function ProfilDlgSetCurrentPoint(var point : TDOUBLEPOINT): integer;
point
TMapSections.ProfilDlgStep Horizontal
property ProfilDlgStep Horizontal : integer;
/ .

151

TMapSections.ProfilDlgStepVertical
property ProfilDlgStepVertical : integer;
/ .
TMapSections.Sections
property Sections: TColMapSection;
.
.
TMapSections.Update
property Update: boolean;
/ .
true
CreateHeightArray.
TMapSections.UpdateSection
procedure UpdateSection(Number: integer; AMapPoint: TCompMapPoint);
Number.
2.
1.

TMapSelect. /.
.
,
.
TmapSelect ,
TMapView,
. TmapSelect ,
,
SiteNumber, , .
, : ClearAll.
, , SiteNumber,
.
( ClearAll) TmapSelect
.
TmapSelect
( , , ),
. SelectSample.
, , /
( ).
:
TObject
|
TPersistent
:
public
AllMaps
CheckKey
Excode
Incode
KeyObject
Layers
Lists
Local
MapSites
MaxKey
MinKey
PlaceInp
PlaceOut
SelectHandle
SelectNew
SemanticCode
SemanticCondition
SemanticCount
SemanticValue
SelectObjectCount



/
/
/ ( )
/ ()
/
/
/





MapSelect




,

152

SiteNumber

:
public
AddSemantic
Assign
Clear
ClearAll
ClearSampleAll
ClearSemantic
DeleteSemantic
GetDFrame
GetRect
GetRegionOut
GetSeekSelect
GetViewSelect
SelectSample
SelectSeekArea
SetRegionOut
SetSiteEnabledForSample
SetSelect
SetSeekSelect
SetSelectKey
SetViewSelect
UnSelectSeekArea


TMapSelect





,
BMP
,
BMP ,
,
BMP


/ ()
/
,
BMP
, .
/




/

TMapSelect.AddSemantic
function AddSemantic(Code: integer; Value: string; Condition: TSemanticCondition): integer;

Code, Value Condition.
.
, SiteNumber.
TMapSelect.AllMaps
property AllMaps:boolean;
()
. ()
MapSites.
(, ), false.
true/false / .
TMapSelect.Assign
procedure Assign(Source:TPersistent);override;
Source, TMapSelect.
TMapSelect.
TMapSelect.CheckKey
property CheckKey[Number: integer]: boolean;
.
,
MinKey MaxKey.
true,
- false.
, SiteNumber.
TMapSelect.Clear
procedure Clear;
( )
/.
, SiteNumber.

TMapSelect.ClearAll
procedure ClearAll;
( )
/
.
TMapView .
TMapSelect.ClearSampleAll

153

procedure ClearSampleAll;
.
TMapView .
TMapSelect.ClearSemantic
procedure ClearSemantic;
/ .
, SiteNumber.
TMapSelect.DeleteSemantic
procedure DeleteSemantic(Number: integer);
Number.
1.
, SiteNumber.
TMapSelect.Excode
property Excode[aExcode, aLocal : integer]: boolean;
/ .
.
true , false
.
aExcode () , aLocal
(OL_LINE, OL_MARK ).
aExcode 1.
. ,
:
Excode[-1, 0] := false;
Excode[aExcode, OL_LINE] := true;
, SiteNumber.
TMapSelect.GetDFrame
function GetDFrame(NotNull : boolean) : TMAPDFRAME;
,
BMP, , PlaceOut.
SetRegionOut. , NotNull=true,
.
TMapSelect.GetRect
Function GetRect(NotNull : boolean) : TRECT;
,
BMP, . SetRegionOut.
, NotNull=true, .
TMapSelect.GetRegionOut
procedure GetRegionOut(NotNull: WordBool; var X1: Double; var Y1: Double; var X2: Double; var Y2:
Double);
,
BMP, , PlaceOut.
, NotNull=true,
.
(X1,Y1) ;
(X2,Y2) .
TMapSelect.GetSeekSelect
procedure GetSeekSelect(aSite:integer);
aSit TMapSelect.
aSite -1, TMapView .
TMapSelect.GetViewSelect
procedure GetViewSelect(aSite:integer);
aSit
TMapSelect. aSite -1, TMapView .
TMapSelect.InCode
property InCode[Number: integer]: boolean;
/ .
.
true , false
.
Number .
Number 1.
. ,
:
InCode[-1] := false;
InCode[Number] := true;

154

, SiteNumber.
TMapSelect.IsSample
property IsSample[aSiteNumber : integer]: boolean;
.
true , aSiteNumber
. aSiteNumber= -1, .
TMapSelect.KeyObject
property KeyObject[aKeyObject : string]: boolean;
/ ( )
.
true , false
.
aKeyObject ( ) .
aKeyObject ( ).
. ,
:
KeyObject[] := false;
KeyObject[ ] := true;
, SiteNumber.
TMapSelect.Layers
property Layers[Number: integer]: boolean;
/ ().
().
true () , false
.
Number (). 0.
Number 1.
. ,
:
Layers [-1] := false;
Layers [Number] := true;
, SiteNumber.
TMapSelect.Lists
property Lists[Number: integer]: boolean;
/ .
.
true , false
.
Number .
.
TMapSelect.Local
property Local[Number: integer]: boolean;
.
true , false
.
Number (OL_xxxx).
Number .
Number 1.
. ,
:
Local [-1] := false;
Local [Number] := true;
, SiteNumber.
TMapSelect.MapSites
property MapSites[Number: integer]: boolean;
/
.
true /
, false
/, /
.
Number .
Number 1.
.
1, 0 /
.
TMapSelect.MaxKey
property MaxKey: integer;

155

.
.
.
, SiteNumber.

SetSelectKey.
SetSelectKey(-1, -1);
TMapSelect.MinKey
property MinKey: integer;
.
.
.
, SiteNumber.

SetSelectKey.
SetSelectKey(-1, -1);
TMapSelect.PlaceInp
property PlaceInp: TPPLACE;
.
,
.
.
TMapView .
TMapSelect.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TMapView .
TMapSelect.SelectHandle
property SelectHandle[Number: integer] :HSELECT;
c Number.
MapAPI.
0.
TMapSelect.SelectNew
procedure SelectNew;
TmapSelect.
. true,

, false.
true ,
TmapSelectDialog.Execute.
TMapView .
TMapSelect.SelectObjectCount
property SelectObjectCount(aSiteNumber : integer) : integer;
, .
aSiteNumber
. aSiteNumber=-1 .
, , , 0.
TMapSelect.SelectSample
function SelectSample(seting : boolean; listname : string; key : integer) : integer;
( seting = true) ( seting=false)
key listname.
(TmapView.SetViewSelected).
0.
TMapView .
! SelectSample TMapView ,
SelectSample ,
, .
SelectSample ,
SetSiteEnabledForSample.
ClearSampleAll.
TMapSelect.SelectSeekArea
function SelectSeekArea(aSiteN : integer; aObject : TMapObjAcces; aDistance : double;
aFilter, aInside, aVisible, aAction : integer) : integer;
/ ,
aObject.

156

/.
:
SiteN
- , .
SiteN = -1 - .
aObject - ( TMapObj) - .
TMapObj.Metric. aObject
( TmapObj, ).
aObject . .
aDistance - .
aFilter
- / (1/0) , TMapSelect.
aInside -
0 - ( aDistance),
1 - ,
2 - .
aVisible - / (1/0) . -
,
(
TMapView.ViewSelect).
aAction
- : / (1/0).
, ,
(TMapView.SetViewSelected).
,
.
TMapSelect.SemanticCode
property SemanticCode[Number: integer]: string;
,
Number.
1.
, SiteNumber.
TMapSelect.SemanticCondition
TSemanticCondition = ( //
SC_BAD,
//
SC_LESS,
//
SC_EQUAL,
//
SC_LESSEQ,
//
SC_MORE,
//
SC_NOTEQ,
//
SC_MOREEQ,
//
SC_ANY
// );
property SemanticCondition[Number: integer]: string;
,
Number.
1.
, SiteNumber.
TMapSelect.SemanticCount
property SemanticCount: integer;
.
0.
, SiteNumber.
TMapSelect.SemanticValue
.
property SemanticValue[Number: integer]: string;
:
,
Number.
1.
, SiteNumber.
TMapSelect.SetRegionOut
procedure SetRegionOut(X1: Double; Y1: Double; X2: Double; Y2: Double);
,
BMP, , PlaceInp.
(X1,Y1) ;
(X2,Y2) .
0.
TMapSelect.SetSeekSelect
procedure SetSeekSelect(aSite:integer);
aSit TMapSelect.
aSite -1, TMapView .
TMapSelect.SetSelect
procedure SetSelect;

157

SetSelect
, .
, SiteNumber.
TMapSelect.SetSelectKey
procedure SetSelectKey(aMin, aMax : integer);
.
SetSelectKey , .
aMin, aMax , 0. -1,
.
TMapSelect.SetSiteEnabledForSample
procedure SetSiteEnabledForSample;
/ ,
( SelectSammple).
.
TMapSelect.SetViewSelect
procedure SetViewSelect(aSite:integer);
aSit TMapSelect.
aSite -1, TMapView .
TMapSelect.SiteNumber
property SiteNumber: integer;
/ ,
/.


.
1, 0 /
.
TMapSelect.UnSelectSeekArea
procedure UnselectSeekArea(aSiteN : integer);
/ .
aSiteN - , . SiteN=-1 .

TMapSelectDialog. /.

,
.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
Caption
HelpEnabled
MapView
ModalResult
Note
SeekMapAll
SeekMapNumber
SeekVisual
ShowAllFromRSC
RestoreEnabled
:





/


.
" "

158

public
Execute

:
published
OnChangeMapView

MapView

TMapSelectDialog.Caption
property Caption: TCaption;
, .
TMapSelectDialog.Execute
function Execute(MapSelect: TmapSelect; Find : boolean): boolean;
- /.
/ MapSelect. Find =
true , ,
.
( Ok) MapSelect
true, ( Cancel) MapSelect
false.
TMapPrintDialog.HelpEnabled
property HelpEnabled: boolean;
.
true Application.HelpFile ,
6703 6704
, .
TMapSelectDialog. MapView
property MapView: TMapView;
, .
,
.
TMapSelectDialog. ModalResult
property ModalResult : TModalResult;
. : mrCancel
- , mrOk , mrAll (
TMapView.SetViewSelected).
TMapSelectDialog.Note
property Note : integer;
.
TMapSelectDialog.SeekMapAll
.
property SeekMapAll : boolean;
:
MapSelect
. RestoreEnabled = false
, .
TMapSelectDialog.SeekMapNumber
property SeekMapNumber : integer;
MapSelect ,
. RestoreEnabled = false
and SeekMapAll = false ,

TMapSelectDialog.SeekVisual
property SeekVisual : boolean;
..
true,
.
.
TMapSelectDialog.ShowAllFromRSC
property ShowAllFromRSC : boolean;
" ".
true, rsc
, .
.
TMapSelectDialog.RestoreEnabled
property RestoreEnabled : integer;

159

"< >.vcl". RestoreEnabled true


. SeekMapAll,
SeekMapNumber .

TMapSelectObjectRsc.
.


( ) .

:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
:
published
Caption
HelpEnabled
Locals
MapEditEnabled



,
,


,

MapView
RestoreEnabled
public
ObjectIncode
SiteNumber

:
public
Execute
ExecuteForMapObj
SetBeginObjectForExcode
SetBeginObjectForName


TMapObj

:
published
OnChangeMapView

MapView

TMapSelectObjectRsc.Caption
property Caption: TCaption;
, .
TMapSelectObjectRsc.Execute
function Execute(var aObjInfo : TMAPOBJECTINFO) : boolean;
TMAPOBJECTINFO = record //
NumbSite : integer; // ( = 0)
Incode
: Integer; //
ExCode : integer; //
Local
: integer; //
Segment : integer; // o
Name
: string;
//
end;
.
true aObjInfo ,
.
TMapSelectObjectRsc.ExecuteForMapObj
function ExecuteForMapObj(aMapObj : TMapObj; aCreate : boolean) : boolean;

160

.
aMapObj .
aCreate = true aMapObj
, aMapObj :
, , .
TMapSelectObjectRsc.HelpEnabled
property HelpEnabled: boolean;
.
true Application.HelpFile ,
6300, .
TMapSelectObjectRsc.Locals
property Locals : TLOCALS;
TLOCAL = (L_LINE, L_SQUARE, L_MARK, L_TEXT, L_VECTOR, L_PATTERN);
TLOCALS = set of TLOCAL;
(, , ) ,
.
TMapSelectObjectRsc.MapEditEnabled
property MapEditEnabled: boolean;
, .
true , ,
.
TMapSelectObjectRsc.MapView
property MapView: TMapView;
, .
,
.
TMapSelectObjectRsc.ObjectInCode
property ObjectInCode : integer;
,
.
TmapSelectObjectRsc.RestoreEnabled
property RestoreEnabled: boolean;
, .
true, ,
.
TmapSelectObjectRsc. SetBeginObjectForExcode
function SetBeginObjectForExcode(aSiteNumber, aExcode, aLocal : integer) : boolean;
,
.
aSiteNumber , aExcode , aLocal
. true.
TmapSelectObjectRsc.SetBeginObjectForName
function SetBeginObjectForName(aSiteNumber : integer; aName : string; aLocal : integer) : boolean;
,
.
aSiteNumber , aName , aLocal .
true.
TMapSelectObjectRsc.SiteNumber
property SiteNumber: integer;
.
, .
1 .

TMapSelectRect.
.
MapView MapWindow
.
:
TObject
|
TPersistent
|

161

TComponent
|
TMapComponent
|
TgtkAction
|
TMapSelectRect
, .
StartAction.
StopAction.
: SelectedRect = (X,Y-. . ,
X,Y-. . ), Selection = true, - Selection = false,
. ( )
SelectionMode.
,
, . ,
MenuEnabled false.

(SelectionMode = smSlopeRect). FPoint1,
FPoint2, FPoint3, FPoint4 ,
, , SelectedRect . FPoint1,
FPoint2, FPoint3, FPoint4
SelectionMode.
:
public
Active

ActionPreview

FPoint1

(
)

FPoint2

FPoint3

FPoint4

ActionNotForEvent

published
ColorRect
Cursor
LineWidth
MapMove
MapView
MapWindow
Pplace
SelectedRect
Selection
SelectionMode




/ -


MapView
MapWindow


,
.
.

:
public
Create
Destroy
StartAction
StopAction

:
published
OnChangeMapView
OnStopAction
OnStopActionQuery
OnDoRect

MapView


.

162

TMapSelectRect.Active
property Active : boolean;
.
true, .
TMapSelectRect. ActionNotForEvent
property ActionNotForEvent : TActionNotForEventSet;
TActionNotForEvent =
( ActionNotMouseEvent,
ActionNotKeyEvent,
ActionNotClickEvent
);
TActionNotForEventSet = set of TActionNotForEvent;
.
.
TMapSelectRect. ActionPreview
property ActionPreview : boolean;
(
).
true,
, .
TMapSelectRect.ColorRect
property ColorRect : TColor;
, ColorRect Xor.
TMapSelectRect.Create
constructor Create(Aowner: TComponent); override;
:
ColorRect = clBlack;
LineWidth = 3;
Cursor = crCross;
MapMove = true;
Pplace := PP_PLANE.
TMapSelectRect.Cursor
property Cursor: TCursor;
.
Cursor=crCross. ,
( StartAction).
TMapSelectRect. Destroy
destructor Destroy; override;
TMapSelectRect, StopAction.
TMapSelectRect. FPoint1
property FPoint1 : TDoublePoint;
.
TMapSelectRect. FPoint2
property FPoint2 : TDoublePoint;
.
TMapSelectRect. FPoint3
property FPoint3 : TDoublePoint;
.
TMapSelectRect. FPoint4
property FPoint4 : TDoublePoint;
.
TMapSelectRect.LineWidth
property LineWidth : integer;
. 3.
TMapSelectRect.MapMove
property MapMove: Boolean;
(true) (false)
.
.
SelectionMode =
smStandart, smEdit, smStandart_Edit, smTwoClicks_Edit
.
TMapSelectRect.MapView
property MapView : TMapView;

163

, .
TMapSelectRect. MapWindow
property MapWindow : TMapWindow;
,
.
TMapSelectRect.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .
TmapSelectRect.OnDoRect
property OnDoRect : TNotifyEvent;
.
smStandart, smTwoClicks, OnDoRect
.
(smEdit, smStandart_Edit,
smTwoClicks_Edit), OnDoRect
.
TMapSelectRect. OnStopAction
property OnStopAction : TNotifyEvent;
.
, .
TMapSelectRect.OnStopActionQuery
TStopActionQueryEvent = procedure (Sender : TObject; var CanStop : Boolean) of
object;.
property OnStopActionQuery : TStopActionQueryEvent;
.
, StopAction. CanStop
false, .
TMapSelectRect.PPlace
property PPlace: TPPlace;
,
. PP_PICTURE,
PP_PLANE PP_GEO. ,
PP_PLANE.
TmapSelectRect. SelectedRect
property SelectedRect : TMapDFrame;
,
PPlace. ,
StartAction SelectedRect , PPlace
, SelectionMode
smEdit.
TMapSelectRect.Selection
property Selection: boolean;

true , Selection=false.
TmapSelectRect. SelectionMode
property SelectionMode: TSelectionMode;
TSelectionMode =
(smStandart,
//
smTwoClicks,
//
smEdit,
//
smStandart_Edit, //
smTwoClicks_Edit,
// .
smSlopeRect);
//
SelectionMode .

164

:
-

( Windows, ..
,
,
, );
( , ..
,
,
, );
(
, SelectedRect.
.
StopAction,
);
( ,
);
( ,
);
(
,
,
, ,
,
.

TMapSelectRect. StartAction
procedure StartAction; virtual;
.
Cursor.
.
.
OnMouseUp, .. , SelectedRect =
(X,Y-. . , X,Y-. . ), Selection = true.
, .
MapView ( MapWindow).
TMapSelectRect. StoptAction
procedure StopAction; virtual;
.

TMapSemantic. .
.
,
.
,
.
. ,
. ,
.
.
.

.
,
.
.
, , ( , ,
- OLE, , ,
..), , ,
.
,
(, ).
" ", ,
.
.

165

, RSC. : 10
(" ")
1 - , 2 - ..

,
.
:
TObject
|
TPersistent
:
public
AvailabelSemanticCode
AvailabelSemanticCount
AvailabelSemanticName
ClassificatorCode
ClassificatorCount
ClassificatorName
Describe
SemanticCode
SemanticCount
SemanticName
SemanticStyle
SemanticValue
SemanticValueCount
SemanticValueName

:
public
Add
AddWithValue
AddWithValueAsInteger
AddWithValueAsFloat
AddWithValueAsDouble
Delete
DeleteByCode
FindByCode
GetSemanticValueAsInteger
GetSemanticValueAsFloat
GetSemanticValueAsDouble
SetSemanticValueAsInteger
SetSemanticValueAsFloat
SetSemanticValueAsDouble

TMapSemantic.Add
function Add(Code: integer): integer;
.

.

, 0.
Code
.
TMapSemantic.AddWithValue
function AddWithValue (Code: integer, Value:string): integer;

, Value.

166

, 0.
Code
.
TMapSemantic.AddWithValueAsDouble
function AddWithValueAsDouble (Code: integer, Value:string): integer;

,
Value.

, 0.
Code
.
. ,
,
. , Windows,
22,3 22,29999999987605. ,
,
,
AddWithValue, .
,
.
TMapSemantic.AddWithValueAsFloat
function AddWithValueAsFloat (Code: integer, Value:single): integer;

,
Value.

, 0.
Code
.
. ,
,
. , Windows,
22,3 22,29999999987605. ,
,
,
AddWithValue, .
,
.
TMapSemantic.AddWithValueAsInteger
function AddWithValueAsInteger (Code: integer, Value:integer): integer;

, Value.

, 0.
Code
.
TMapSemantic.AvailabelSemanticCode
property AvailabelSemanticCode[Number: integer]: integer;
,
.
Number
.

.

0.
TMapSemantic.AvailabelSemanticCount
property AvailabelSemanticCount: integer;
,
.
, ,
.
0.
TMapSemantic.AvailabelSemanticName
property AvailabelSemanticName[Code: integer]: string;
,
.
Code
.

167


0.
TMapSemantic. ClassificatorCode
property ClassificatorCode[Number1,NumberValue:integer] : integer;
. Number
.
NumberValue
.
TMapSemantic. ClassificatorCount
property ClassificatorCount[Number:integer] : integer;
.
Number .
TMapSemantic. ClassificatorName
property ClassificatorName[Number1,NumberValue:integer] : string;
.
Number .
NumberValue
.
TMapSemantic.Delete
procedure Delete(Number: integer);
.
Number
. Number = -1, .
TMapSemantic.DeleteByCode
procedure DeleteByCode(Code: integer; All : boolean);

.
Code . All true,
, .
TMapSemantic. Describe
property Describe[Number:integer] : TSEMANTICTYPE;

.
MapType.pas.
Number .
TMapSemantic.FindByCode
Function FindByCode(Code: integer);

. 0.
Code .
TMapSemantic.GetSemanticValueAsDouble
function GetSemanticValueAsDouble (Number:integer; var Value: double): integer;

(8 ). Value.
Number .
,
, , 0.
TMapSemantic.GetSemanticValueAsFloat
function GetSemanticValueAsFloat (Number:integer; var Value: single): integer;

(4 ). Value.
Number .
,
, , 0.
TMapSemantic.GetSemanticValueAsInteger
function GetSemanticValueAsInteger(Number:integer; var Value: integer): integer;
.
Value.
Number .
,
, , 0.
TMapSemantic.SemanticCode
property SemanticCode[Number: integer]: integer;
.
Number .

168

0.
TMapSemantic.SemanticCount
property SemanticCount: integer;
.
0.
TMapSemantic.SemanticName
property SemanticName[Number: integer]: string;
.
Number .

.
TMapSemantic.SemanticStyle
TSemanticStyle = ( //

SS_NODECODE,
//
SS_NORMALDECODE, //
SS_FULLDECODE
//

);
property SemanticStyle: TSemanticStyle;
.
,
SemanticValue.

GetSemanticValueAsInteger,
GetSemanticValueAsFloat,
GetSemanticValueAsDouble .
TMapSemantic.SemanticValue
property SemanticValue[Number: integer]: string;
,
SemanticStyle.
Number .

.
TMapSemantic. SemanticValueCount
property SemanticValueCount[Code: integer]: integer;
,
.
Code .
0.
TMapSemantic.SemanticValueName
property SemanticValueName[Code: integer; Number: integer]: string;
,
.
:
Code
-
.
Number
.
,
.
TMapSemantic.SetSemanticValueAsDouble
procedure SetSemanticValueAsDouble(Number:integer; Value: integer);

(8 ). Value.
Number .
TMapSemantic.SetSemanticValueAsFloat
procedure SetSemanticValueAsFloat(Number:integer; Value: integer);

(4 ). Value.
Number .
TMapSemantic.SetSemanticValueAsInteger
procedure SetSemanticValueAsInteger(Number:integer; Value: integer);
.
Value.
Number .

169

TMapSemantics.
.
, *.RSC
.
.

. ,
, , . a apap a
aap a, , , . p
apap aa a (app, pa p: 5 - 1,
5 10 - 2 ..), apap a (apa
p: p - 1, p - 2 ..). apap a aap a,
a a ( a - , p pa
apap p ap paa a,
). aap a a apap
a - a a . a
a a aa.

:
( 1)
()
( )
( )

:
TObject
|
TPersistent
:
public
ClassificatorValueCount
ClassificatorValueCode
ClassificatorValueName
DescribeByCode
DescribeByNumber
KeyByCode
NumberByKey
SemanticCode
SemanticCodeName
SemanticCount
SemanticName
SemanticNameCode
SiteNumber
TypeByCode

TMapSemantics. ClassificatorValueCode
property ClassificatorValueCode[aCode, aValueNumber : integer] : integer;

aValueNumber
aCode.
TMapSemantics. ClassificatorValueCount
property ClassificatorValueCount[aCode : integer] : integer;

aCode.
TMapSemantics. ClassificatorValueName
property ClassificatorValueName[aCode, aValueNumber : integer] : string;

170


aValueNumber
aCode.
TMapSemantics.DescribeByCode
property DescribeByCode[aCode : integer] : TRSCSEMANTICEX;

aCode.
TMapSemantics.DescribeByNumber
property DescribeByNumber[aNumber : integer] : TRSCSEMANTICEX;

aNumber.
TMapSemantics.KeyByCode
property KeyByCode[aCode : integer] : string;
( ) aCode.
TmapSemantics.NumberByKey
property NumberByKey[aKey : string] : integer;

() aKey.
TMapSemantics.SemanticCode
property SemanticCode[Number: integer]: integer;
.
Number .
1.
TMapSemantics.SemanticCodeName
property SemanticCodeName[sName : string ]: integer;

.
TMapSemantics.SemanticCount
property SemanticCount: integer;
, .
0.
TMapSemantics.SemanticName
property SemanticName[Number: integer]: string;
.
Number .
1.
TMapSemantics.SemanticNameCode
property SemanticNameCode[Code: integer]: string;

.
Code .
TMapSemantics.SiteNumber
property SiteNumber : integer;

.
TmapView.
TMapSemantics.TypeByCode
property TypeByCode[aCode : integer] : integer;
Code.
maptype.pas:
SEMT_TSTRING = 0

SEMT_TNUMBER = 1

SEMT_TBMPFILE = 10

BMP

SEMT_TOLEFILE = 11

, OLE

SEMT_TREFER

SEMT_TMAPFILE = 13

(
)

SEMT_TTXTFILE = 14
SEMT_TPCXFILE = 15


PCX

SEMT_TCODE

= 12

= 16

171

TMapSite. .
.

( ).
:
TObject
|
TPersistent
:
public
Number
PlaceOut
SiteBottom
SiteBright
SiteContrast
SiteCopyFlag
SiteEditFlag
SiteFileName
SiteHandle
SiteInquiryFlag
SiteLayers
SiteLeft
SiteMode
SiteName
SiteNameUn
SiteRangeScaleVisi
ble
SiteRight
SiteScale
SiteTop
SiteTransparent
SiteType
SiteViewOrder
SiteVisible



()









()



()

()

(MT_xxxx)

:
public
ClearSite
CopySite
DeleteSite
GetSiteColors
GetSitePalette
SaveSite
SiteColorsCount
SiteLayerCount
SiteObjectCount
SiteObjectViewCou
nt
SetSiteBorder
SetSiteColors
WriteLogAccess

( )
( /)
( /)


,

,
()


/

TMapSite.ClearSite
function ClearSite : integer
. .
TMapSite.CopySite
function CopySite(newname : string) : integer;

172

. newname -
. ; , .
, .
DeleteSite. .
TMapSite.DeleteSite
function DeleteSite : integer;
( ). .
TMapSite.GetSiteColors
Type
TArrayCOLORREF = array of TColorRef; //
function GetSiteColors(var aPalette: TArrayCOLORREF): integer;
/.
256. , .
TMapSite.GetSitePalette
Type
TArrayCOLORREF = array of TColorRef; //
function GetSitePalette(aPalette: TArrayCOLORREF): integer;
/.
256. .
TMapSite.Number
property Number: integer;
.
.
TMapSite.Number
property Number: integer;
.
.
TMapSite.PlaceOut
property PlaceOut: TPPLACE;
.
,
.
.
TMapSite.SaveSite
procedure SaveSite(force : integer);
. force - 0, ,
.
TMapSite.SetSiteBorder
function SetSiteBorder( frame : TMAPDFRAME; place : TPPLACE) : integer;
( )
( ). frame
, place.
TMapSite.SetSiteColors
Type
TArrayCOLORREF = array of TColorRef; //
function SetSiteColors(const aPalette: TArrayCOLORREF): integer;
. aPalette
0, .
. 256.
, .
TMapSite.SiteBottom
property SiteBottom: double;
,
PlaceOut.
TMapSite.SiteBright
property SiteBright : integer;
-16 +16.
TMapSite.SiteColorsCount
function SiteColorsCount : integer;
. 0.
TMapSite.SiteContrast
property SiteContrast : integer;

173

-16 +16.
TMapSite.SiteCopyFlag
property SiteCopyFlag: integer;

1
, 0.
.
TMapSite.SiteEditFlag
property SiteEditFlag : integer;
/ .
1 , 0 .
TMapSite.SiteFileName
property SiteFileName: string;
.
.
TMapSite.SiteHandle
property SiteHandle: HSITE;
.
MapAPI.
0.
TMapSite.SiteInquiryFlag
property SiteInquiryFlag : integer;
/ .
1 , 0 .
TMapSite.SiteLayerCount
function SiteLayerCount : integer;
. .
TMapSite.SiteLayers
property SiteLayers: TMapLayers;
- ().
TMapSite.SiteLeft
property SiteLeft: double;
,
PlaceOut.
TMapSite.SiteMode
property SiteMode : integer;
.
. .
TMapSite.SiteName
property SiteName: string;
.
.
TMapSite.SiteNameUn
property SiteNameUn : WideString;
.
.
TMapSite.SiteObjectCount
function SiteObjectCount : integer;
. 0.
TMapSite.SiteObjectViewCount
function SiteObjectViewCount : integer;
,
TMapSelect. .
TMapSite.SiteRangeScaleVisible
type
TScaleRange = packed record
bottom : longint;
top : longint;
end;
property SiteRangeScaleVisible : TScaleRange;
.
1:1
1:40 000 000.

174

TMapSite.SiteRight
property SiteRight: double;
,
PlaceOut.
TMapSite.SiteScale
property SiteScale: integer;
.
.
TMapSite.SiteTop
property SiteTop: double;

PlaceOut.
TMapSite.SiteTransparent
property SiteTransparent : integer;
.
0 ( ) 100 ( ).
TMapSite.SiteType
property SiteType: integer;
.
.
TMapSite.SiteViewOrder
property SiteViewOrder : integer;
.
0 , 1 - .
TMapSite.SiteVisible
property SiteVisible: boolean;
/ .
TMapSite.WriteLogAccess
function WriteLogAccess( ModeAccess : boolean) : integer;
/ .
.
.
,
! ModeAccess=true
, .
0.

TMapSites. - .
.

TMapSite.
,
.

0. 1.
TMapView MapOpen.
Append TMapSites.
:
TObject
|
TPersistent
:
public
FileNameSites
MapSites
NameSites
NumberSiteByHandle
SiteCount




HSITE

:
public
Append

175

DefineProperties
Delete
DeleteFileName
DeleteSiteName

TMapSites.Append
function Append(ASiteFileName: string): integer;
function Append(ASiteFileName: string; mode : integer): integer;
function Append(ASiteFileName: string; mode : integer; transform : integer): integer;
.

.
0.
ASiteFileName .
mode : / (GENERIC_WRITE
0) (GENERIC_READ). mode GENERIC_READ,
; \Log\name.log
\Log\name.tac - .
mode , /.
transform
( ):
0 - ( " "),
1 - ,
-1 - .
transform , .
.
TMapSites.DefineProperties
procedure DefineProperties(Filer: TFiler); override;
MapSite,
.
TMapSites.Delete
procedure Delete(Number: integer);
.
Number .
.
! , .
TMapSites.DeleteFileName
procedure DeleteFileName(aSiteFileName: string);
.
ASiteFileName .
.
TMapSites.DeleteSiteName
procedure DeleteSiteName(aSiteName: string);
.
ASiteName .
.
TMapSites.FileNameSites
property FileNameSites[SiteFileName: string]: TMapSite;
.
.
TmapSite.Number 0.
TMapSites.MapSites
property MapSites[Number: integer]: TMapSite;
.
.
Number .
TMapSites.NameSites
property NameSites[SiteName: string]: TMapSite;
.
SiteName.
TmapSite.Number 0.
TMapSites.NumberSiteByHandle
type
HSITE = integer;
property NumberSiteByHandle[aSiteHandle : HSITE] : integer;

176

aSiteHandle
. . .
TMapSites.SiteCount
property SiteCount: integer;
.
.
0.

TMapThematic. .
TMapThematic ,

.
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent

:
published
MapView
ProjectFileName

ExecSilent
ExecDialog
SetParams

.
.
.

:
public

TMapThematic.ExecSilent
function ExecSilent : integer;

. .
:
-1 ;
-2 ;
-3 ;
-4 ;
-5 ;
-6 gisthem.dll;
-7 .
TMapThematic. ExecDialog
function ExecDialog: integer;
.
. ,
.
. :
-1 ;
-2 ;
-5 ;
-6 gisthem.dll;
-7 .
TMapThematic.MapView
property MapView : TMapView;
, .
TMapThematic.ProjectFileName
property ProjectFileName : string;
.

177

TMapThematic.SetParams
function SetParams: integer;
,
. , ,
0.

.
, .
, ,
, ,
.
. ( ),
.
.
, ,
. .
.
. :
- ( ). ,
.
- ( LINKOBJECT).
.
LINKOBJECT , .
.
- ( <-> ).
,
, .
.
.

.

, , .
.
() , -:
- Dbase, Paradox ,
,
;
- MS SQL Server
, ;
- Oracle
(Alias) , tnsnames.ora
( Oracle);
- ODBC, (ODBC
DSN) ,
ODBC.
,
.
.
- ( ).
, .
- ( ).
(
. ,
( ) .
, 1 ( , ),
, . , 2
3, , .
.
.

.
:
- (, );
- , ,
.
. 1
, ;
- (, );
- .

178

( ).
.
: (
)
()


() (
, ).
.
,

.
,
.
.
( ) ( ) , (
), ( ) .
( ),
( ) .
, , ,
,
.
,
.
.
.
,
. .
().
(
, ).
,
,
, .
,
, .
,
.
, (),
,
( ). ,

. ,
.
.
,
.
,
( ).

, ,
.
.
.
.

TMapView. .
TMapView
.

.
TMapView.
.
. .
MapOpen, MapClose.
() () () ,
, . *.map *.sit.
*.sit TMapSites.Append.
MapSites

179

. 0.
1.
TMapView.
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TScrollingWinControl
|
TMapViewAccess
|
TMapViewWindow
:
public
Active

MapFrame

MapHandle

MapHeight

MapLayers
MapLeft

( )

.









Print


/

,
WMS-

MapLists
MapName
MapType
MapScale
MapSemantics
MapTop
MapWidth
PointHeight
PrinteredNow
PrintSelect
SavedCenterPointPlane
Selecting
TranslateByWMS
ViewSelect
ViewType
published
Align
BackColor
BackPicture
BackStretch
BackTile
BorderStyle
Ctl3D
DragCursor
DragMode
ErrorHeight
FocusSetAuto
GroupEnable
MapBright
MapContour
MapContrast

180

MapFileName
MapMtqs
MapMtrs
MapRsts
MapSites
MapView
MapWinAPI
MapWMS
OleVisible
ParentShowHint
PlaceOut
PopupMenu
PrecisionHeight
PrintScale
PrintSelectHandle
PrintMapType
PropertyFont
Rendering
ShowHint
TabOrder
TabStop
ViewScale
ViewSelectHandle
Visible






C
Windows API
(WMS-)
/ OLE
MapFrame





/

:
protected
CreateParams
public
AdjastData
AppendData
Bitmap
ConvertMetric
ConvertDFrame
Create
CreateAndAppendSite
CreateLoxodrome
CreatePlane
CreateOrthodrome
CreateSite
CreateVisibilityZone
CurrentProjectionParametersDialog
DeleteSiteByFileName
Destroy
GeneralFilterInMap
GetCenter
GetRegionDFrame
GetRegionRect
GetSiteNumberForName
GoPointInWindow
MapClose
MapOpen
MapSort
MapSortDialog
MapTrans
ObjectByKey
Print
SaveFrameToEmf
SaveFrameToEmf Ex
SaveMapToSxfExDialog
SaveMapToTxfExDialog

BMP



.
-
.
C ()

.

,

( )

()

().











EMF
EMF,

() SXF
() TXF (

181

ScaleInPoint
SetCenter
SetAppendDataMode
SetObjSelected
SetRegion
SetViewSelected
ShowAllMapInWindow
TurnAngle
TurnIsActive
TurnSetup
UpdateMapFromSxfDialog
UpdatePictureBorder
UpdatePictureBorderForAll
WorkSystemParametersDialog
WriteLogAccess

SXF)



(1 - ,
0 - )
,
ViewSelect






SXF,
TXF DIR


, MapView

:
published
OnAppendMtq
OnAppendMtr
OnAppendRst
OnAppendSite
OnAppendWMS
OnBuildMtrProcess
OnChangeMap
OnChangeViewScale
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMapClose
OnMapOpen
OnMapPaint
OnMapPaintObject
OnMapSortEvent
OnMapSortListEvent
OnMapSortMapEvent
OnMapSortProcess
OnMouseDown
OnMouseMove
OnMouseUp
OnRemoveMtq
OnRemoveMtr
OnRemoveRst
OnRemoveSite
OnRemoveWMS
OnVScroll
OnHScroll





WMS-






WMS-

TMapView.Active
property Active : boolean;
.
true, .
TMapView.AdjustData
function AdjustData : integer;
(
). (
) - , 0. -

182

.
.
TMapView.AppendData
function AppendData(const aFileName: Ansistring) : integer;
function AppendData(const aFileName: Ansistring; mode : integer) : integer;
function AppendData(const aFileName: Ansistring; mode : integer; transform : integer) : integer;
. aFileName -
(SIT; MTW; MTQ; RSW; MPT).
:
- FILE_MAP - ;
- FILE_RSW - ;
- FILE_MTW - ;
- FILE_MTL - ;
- FILE_MTQ - ;
- FILE_WMS - WMS-.
. ,
(; ; ) .
mode : / (GENERIC_WRITE
0) (GENERIC_READ). mode GENERIC_READ,
;
\Log\name.log \Log\name.tac - .
mode , /.
transform
( ):
0 - ( " "),
1 - ,
-1 - .
transform , .
.
OnAppendSite,
OnAppendRst, OnAppendMtr, OnAppendMtq OnAppendWMS ( ,
).
TMapView.BackColor
property BackColor: TColor;
.
,
, .
, ,
.
Color.
TMapView.BackPicture
property BackPicture: TPicture;
.
, .
BackTile
BackStretch.
TMapView.BackStretch
property BackStretch: boolean;
/ .
, BackPicture,
StretchDraw .
Bitmap .

TMapView.BackTile
property BackTile: boolean;
/ .
, BackPicture,
.
BackStretch true.
TMapView.Bitmap
procedure Bitmap(ABitmap: TBitMap);
BMP ,
PrintSelect, , PrintScale.
BMP ,
OnMapPaint ,
.
.
TMapView.ConvertDFrame

function
ConvertDFrame (aDframeInp : TMAPDFRAME; aPlaceInp, aPlaceOut : TPPLACE) :

183

TMAPDFRAME;
aDframeInp
aPlaceInp aPlaceOut.
aPlaceOut .
aDframeInp,
aPlaceInp aDframeInp.
TMapView.ConvertMetric
function ConvertMetric(var aX, aY : double; aPlaceInp, aPlaceOut : TPPLACE) : integer;
aX, aY aPlaceIn
aPlaceOut. 0.
TMapView.Create
constructor Create(AOwner: TComponent); override;
.
:
TMapLayers
MapLayers;
TMapLists
MapLists;
TMapMtrs
MapMtrs;
TMapRsts
MapRsts;
TMapSites
MapSites;
TMapSemantics
MapSemantics;
TMapSelect
ViewSelect;
TMapSelect
PrintSelect;
TPicture
BackPicture;
TFont
PropertyFont,
:
Width
= 50;
Height
= 50;
Rendering
= false;
MapFileName
="
BackStretch
= false;
BackTile
= false;
MapView
= false;
PrintScale
=0
ErrorHeight
= -111111;
BorderStyle
= bsSingle.
TMapView. CreateAndAppendSite
function CreateAndAppendSite(const mapname, rscname : string;
createsite : TCREATESITE) : integer;
.
, .
MapName . RscName .
CreateSite , ( MapType.pas).
.., CreateSite
( ).
0.
TMapView.CreateLoxodrome
function CreateLoxodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.
first - .
second - .
pArr - . count.
count -
0.
TMapView. CreatePlane
function CreatePlane(const mapname, rscname : string;
createplane : TCREATEPLANE) : integer;
-. MapName . RscName
. CreatePlane , (
MapType.pas):
TCREATEPLANE = record
Length : integer;
//
MapName : array [1..32] of char; //
Scale : integer;
//
List : TAPPENDPLANELIST; //
end;
0.
TMapView.CreateOrthodrome
function CreateOrthodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.

184

first - .
second - .
pArr - . count.
count - .
0.
TMapView. CreateSite
function CreateSite(const mapname, rscname : string;
createsite : TCREATESITE) : integer;
. MapName . RscName
. CreateSite , (
MapType.pas).
0.
TMapView.CreateVisibilityZone
function CreateVisibilityZone (rstName : GTKPCHAR; aZone : TBuildZoneVisibility)): Integer;
.
RstName - .
aZone - (.maptype.h).
.
RstName.
.
0.
TMapView.CurrentProjectionParametersDialog
function CurrentProjectionParametersDialog(parm : PTASKPARMEX = nil): integer;

, .

(mapIsGeoSupported() != 0).
.
, ,
.
(mapPlaneToGeo, mapGeoToPlane, mapPlaneToGeoWGS84,
mapAppendPointPlane, mapInsertPointPlane, mapUpdatePointPlane, mapAppendPointGeo )
, .
\
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll.
mappasp.chm.
TMapView.Destroy
destructor Destroy; override;
, ,
:
TMapLayers
MapLayers;
TMapLists
MapLists;
TMapMtrs
MapMtrs;
TMapRsts
MapRsts;
TMapSites
MapSites;
TMapSemantics
MapSemantics;
TMapSelect
ViewSelect;
TMapSelect
PrintSelect;
TPicture
BackPicture;
TFont
PropertyFont,
.
TMapView.DeleteSiteByFileName
function DeleteSiteByFileName(FileName : string) : integer;
( ).
.
FileName .
TMapView.GeneralFilterInMap
()

185

().
function GeneralFilterInMap (site : HSite; list : integer; precision : double; aWnd : HWnd): Integer;

( , ,
).
Site - .
list
- .
precision - ( ,
).
aHwnd - , (
).
0x590:
wparm : ;
lparm : .
= mapGetObjectCount(hMap; list)
-
= mapGetSiteObjectCount(hMap; hSit) -
0x590.
0.
TMapView.ErrorHeight
property ErrorHeight: double;
.

PointHeight
, .
, ,
.
TMapView.FocusSetAuto
property FocusSetAuto: boolean;
/ .
, .
false, ,
. true.
TMapView.GetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure GetCenter(var aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
aPoint.
aPlaceOut.
TMapView.GetRegionDFrame
function GetRegionDFramet (aPointPlace : TPPLACE) : TMAPDFRAME;
.
aPointPlace.
TMapView.GetRegionRect
function GetRegionRect : TRECT;
.
TMapView.GetSiteNumberForName
function GetSiteNumberForName(ListName : string) : integer;
.
,
ListName. 1.
0, 1- 1 ...
TMapView.GoPointInWindow
procedure GoPointInWindow(aX, aY : double; aPlaceInp : TPPLACE; var aLeft, aTop : integer);
.
,
aX, aY, aPlaceInp,
aLeft, aTop ( ).
aLeft, aTop ,
aX, aY .
TMapView.GroupEnable
property GroupEnable: boolean;
/ .
.
(,

186

..) .
:
,

;
.
- ( ),
, .
(, ..)
. () .

, ,
.
TMapView.MapBright
property MapBright: integer;
4 +4.
TMapView.MapClose
procedure MapClose;
( MapFileName=).
TMapView.MapContour
property MapContour: boolean;
.
, true, .
TMapView.MapContrast
property MapContrast : integer ;
4 +4.
TMapView.MapFileName
property MapFileName: string;
.
.
.
.
PrintScale MapScale, ViewSelect PrintSelect
.
/ , .
TMapView.MapFrame
property MapFrame: TMAPDFRAME;
, PlaceOut.
X1, Y1 (-) . X2, Y2
(-) .

.
TMapView.MapHandle
property MapHandle: HMap;
.
MapAPI.
0.
TMapView.MapHeight
property MapHeight: integer;
.
VertScrollBar.Range.
0.
TMapView.MapLayers
property MapLayers: TMapLayers;
- ()
. (
) TMapRsc
MapSites.
TMapView.MapLeft
property MapLeft: integer;

.
0.
. (HorzScrollBar.Show = false, VertScrollBar.Show = false),
MapLeft MapTop .
TMapView.MapLists

187

property MapLists: TMapLists;


-
.
TMapView.MapMtqs
property MapMtqs: TMapMtqs;
-
.
TMapView.MapMtrs
property MapMtrs: TMapMtrs;
-
.
TMapView.MapName
property MapName: string;
.
.
TMapView.MapOpen
function MapOpen(const aMapFileName : string; aMapView : boolean) : boolean;
function MapOpen(const aMapFileName : string; aMapView : boolean; mode : integer) : boolean;
aMapFileName MapView
aMapView.
mode : / (GENERIC_WRITE
0) (GENERIC_READ). mode GENERIC_READ,
; \Log\name.log
\Log\name.tac - .
mode , /.
true.
TMapView.MapRsts
property MapRsts: TMapRsts;
- .
TMapView.MapScale
property MapScale: integer;
.

,
.
0.
TMapView.MapSemantics
property MapSemantics: TMapSemantics;
,
.
TMapView.MapSites
property MapSites: TMapSites;
- .
TMapView.MapSort
procedure MapSort(AllList: boolean; InThread: boolean);
.
.
AllList :
true - ;
false - , .
InThread :
true - ( );
false - .
gisvecex.dll.
.
.
.
TMapView.MapSortDialog
function TMapView.MapSortDialog(parm : PTASKPARMEX = nil): integer;
.
parm . TASKPARM maptype.pas
(maptype.h). Handle parm .
parm ,
InitTaskParmEx (maputil.pas).
.
gisvectr.dll

188

mapvectr.chm.
TMapView.MapTop
property MapTop: integer;

.
0.
. (HorzScrollBar.Show = false, VertScrollBar.Show = false),
MapLeft MapTop .
MapView.MapTrans
function MapTrans(ObjReal: TMapObj; ObjTeor: TMapObj): boolean;
.
- ( )
() .
ObjReal ObjTeor,
.
false.
gisvecex.dll.
.
.
.
TMapView.MapType
property MapType: integer;
(MT_xxxx).
.

,
.
MT_BADMAPTYPE.
TMapView.MapView
property MapView: boolean;
/ .
, true,
.
, false, ,
BackPicture , ,
, BackColor.
true , .. MapFileName
.
TMapView.MapWidth
property MapWidth: integer;
.
HorzScrollBar.Range.
0.
TMapView.MapWinAPI
property MapWinAPI: boolean;
Windows API.
, true,
Windows API, .
, false,
, .
TMapView.MapWMS
property MapWMS : TMapWMS;
-
(WMS-).
TMapView.ObjectByKey
function ObjectByKey(Site: integer; List: string; Key: integer; MapObj: TMapObj):boolean;
Key
Site List,
.
1, 0 .
1.
Site 0, List .
MapView MapObj TMapView.
MapObj
true.
false,
MapObj .
TMapView.OleVisible

189

property OleVisible: boolean;


/ OLE
, true, OLE
, 2008 *.omp.
, false, OLE
.
*.omp OLE (Word, Exel, Paint .).
TMapView.OnAppendMtq
TMapMtqEvent = procedure (Sender: TObject; MapMtq: TMapMtq) of object;
property OnAppendMtq: TMapMtqEvent;
.
.
:
MapMtq
- .
TMapView.OnAppendMtr
TMapMtrEvent = procedure (Sender: TObject; MapMtr: TMapMtr) of object;
property OnAppendMtr: TMapMtrEvent;
.
.
:
MapMtr
- .
TMapView.OnAppendRst
TMapRstEvent = procedure (Sender: TObject; MapRst: TMapRst) of object;
property OnAppendRst: TMapRstEvent;
.
.
:
MapRst - .
TMapView.OnAppendSite
TMapSiteEvent = procedure (Sender: TObject; MapSite: TMapSite) of object;
property OnAppendSite: TMapSiteEvent;
.
.
:
MapSite
- .
TMapView.OnAppendWMS
TMapWMSEvent = procedure (Sender:TObject; MapWmsAccess:TMapWmsAccess) of object;;
property OnAppendWMS : TMapWMSEvent;
WMS-.
:
MapWmsAccess - , WMS-.
TMapView.OnBuildMtrProcess
TBuildMtrProcess = procedure (Sender: TObject; MtrName: string; Persent: integer; var StopProcess:
boolean) of object;
property OnBuildMtrProcess: TBuildMtrProcess;
.

.

StopProcess true. StopProcess false.
:
MtrName
- .
Persent
- .
StopProcess - .
TMapView.OnChangeMap
TChangeMapEvent = procedure (Sender: TObject;OldMapFileName: string; NewMapFileName: string) of
object;
property OnChangeMap: TChangeMapEvent;
.
.

OnMapClose OnMapOpen .
:
OldMapFileName - .
NewMapFileName - .
TMapView.OnChangeViewScale
TChangeScaleEvent = procedure (Sender: TObject; OldScale: integer; NewScale: integer) of object;
property OnChangeViewScale: TChangeScaleEvent;

190

ViewScale.
:
Sender
- TmapView, TmapWindow.
OldScale
- .
NewScfle
- .
TMapView.OnHScroll
TScrollEvent = procedure (var Msg: TMessage)of object;
property OnHScroll: TScrollEvent read FOnHScroll write FOnHScroll;
.
TMapView.OnMapClose
property OnMapClose: TNotifyEvent;

.
TMapView.OnMapOpen
.
property OnMapOpen: TNotifyEvent;
:

.
TMapView.OnMapPaint
TMapPaintEvent = procedure (Sender : TObject; aCanvas : TCanvas; MapPaintRect : TRect) of object;
property OnMapPaint: TMapPaintEvent;
Paint, Print, BitMap.
.
,
, .
TmapView, TMapWindow .
:
Sender
- TMapView, TMapWindow.
MapPaintRect -
(, ). ,
.
aCanvas
- Sender. ! aCanvas
:
MapLeft, -MapTop. , 0,0;
10,20 MapLeft, MapTop; MapLeft + 10, MapTop + 20.
: X1, Y1, X2, Y2
. Point:TcompMapPoint.
Point.PlaceInp := PP_PLANE;
Point.PlaceOut := PP_PICTURE;
Point.SetPoint(X1, Y1);
Point.GetPoint(Rect1.Left, Rect1.Top);
Point.SetPoint(X2, Y2);
Point.GetPoint(Rect1.Right, Rect1.Bottom);
aCanvas.FrameRect(Rect1);
TMapView.OnMapPaintObject
TMapPaintEventObject = procedure (Sender : TObject; aCanvas : TCanvas;
aMapPaintRect : TRect; aLeftPosition, aTopPosition : integer;
aMapPaintEventType : TMapPaintEventType) of object;
TMapPaintEventType =
( PaintNone,
PaintInWindow,
PaintInPrinter,
PaintInBitMap

//
// (
TMapViewWindow.Paint)
// (
TMapViewWindow.Print)
// BitMap
( TMapViewWindow.BitMap)

);
OnMapPaintObject : TmapPaintEventObject;
Paint, Print, BitMap.
.
OnMapPaint,
aMapPaintEventType.
,
, .
TmapView, TMapWindow .
:
Sender
- TMapView, TMapWindow.
MapPaintRect -

191

(, ). ,
.
aCanvas
- Sender. ! aCanvas
:
aLeftPosition, aTopPosition. ,
aLeftPosition, aTopPosition; aLeftPosition + 10, aTopPosition + 20
0, 0; 10, 20.
aMapPaintEventType- :
( ), , ,
BitMap.
. ,
.
TMapView.OnMapSortEvent
TMapSortEvent = procedure (Sender:TObject;var StopProcess:boolean) of object;
propertyOnMapSortEvent:TMapSortEvent;
, -
.

.

StopProcess true. StopProcess false.
:
StopProcess - .
TMapView.OnMapSortListEvent
TMapSortListEvent = procedure (Sender: TObject; ListCount: integer; ListNumber: integer; var
StopProcess: boolean) of object;
property OnMapSortListEvent: TMapSortListEvent;
,
.

.

StopProcess true. StopProcess false.
:
ListCount
- .
ListNumber - .
StopProcess - .
TMapView.OnMapSortMapEvent
TMapSortMapEvent = procedure (Sender: TObject; MapCount: integer; MapNumber: integer; var
StopProcess: boolean) of object;
property OnMapSortMapEvent: TMapSortMapEvent;
,
.

.

StopProcess true. StopProcess false.
:
MapCount
- .
MapNumber - .
StopProcess - .
TMapView.OnMapSortProcess
TMapSortProcessEvent = procedure (Sender: TObject; Persent: integer; var StopProcess: boolean) of
object;
property OnMapSortProcess: TMapSortProcessEvent;
.

.

StopProcess true. StopProcess false.
:
Persent
- .
StopProcess - .
TMapView.OnRemoveMtq
TMapMtqEvent = procedure (Sender: TObject; MapMtq: TMapMtq) of object;
property OnRemoveMtq: TMapMtqEvent;
.
:
MapMtq
- .

192

TMapView.OnRemoveMtr
TMapMtrEvent = procedure (Sender: TObject; MapMtr: TMapMtr) of object;
property OnRemoveMtr: TMapMtrEvent;
.
:
MapMtr
- .
TMapView.OnRemoveRst
TMapRstEvent = procedure (Sender: TObject; MapRst: TMapRst) of object;
property OnRemoveRst: TMapRstEvent;
.
:
MapRst - .
TMapView.OnRemoveSite
TMapSiteEvent = procedure (Sender: TObject; MapSite: TMapSite) of object;
property OnRemoveSite: TMapSiteEvent;
.
.
:
MapSite
- .
TMapView.OnRemoveWMS
TMapWMSEvent = procedure (Sender:TObject; MapWmsAccess:TMapWmsAccess) of object;;
property OnRemoveWMS : TMapWMSEvent;
WMS-.
WMS- Delete
TMapWMS.
:
MapWmsAccess - , WMS-.
TMapView.OnVScroll
TScrollEvent = procedure (var Msg: TMessage)of object;
property OnVScroll: TScrollEvent read FOnVScroll write FOnVScroll;

.
TMapView.PlaceOut
property PlaceOut: TPPLACE;
MapFrame.
,
.
.
TMapView.PointHeight
property PointHeight[Point: TCompMapPoint]: double;

.
, ErrorHeight.

TMapView.PrecisionHeight
property PrecisionHeight: boolean;
.
, true, , PointHeight,
(
),
.
, true, ,
( ) .
TMapView.Print
procedure Print;
,
PrintSelect, , PrintScale.
,
.
, WindowsAPI,
MapWinAPI.
BMP ,
OnMapPaint ,
.
.
TMapView.PrinteredNow
property PrinteredNow : boolean ;

193

true TMapView.Print.
TMapView.PrintMapType
.
TPrintMapType = (
//
PT_PRINT,
// ( win api)
PT_PRINTGLASS,
//
PT_PRINTCONTOUR, // ,
//
PT_PRINTRST,
// ( win api)
PT_PRINTGLASSRST,
//
PT_PRINTCONTOURRST // ,
);
property PrintMapType : TPrintMapType;
:
: ,
, , , ,
, ,
.
.
. PT_PRINT.
TMapView.PrintScale
property PrintScale: integer;
BMP
.
0.
TMapView.PrintSelect
property PrintSelect: TMapSelect;
.
/,
BMP
.
TMapView.PrintSelectHandle
property PrintSelectHandle: HSelect;

.
MapAPI.
0.
TMapView.PropertyFont
property PropertyFont: TFont;
, .

.
TMapView.Rendering
property Rendering: boolean;
/ .
, false, .
true, .
Refresh.
TMapView.SavedCenterPointPlane
property SavedCenterPointPlane : TDOUBLEPOINT;
,
SavePositionMapInCenterWindow.
RestorePositionMapInCenterWindow.
.
.
TMapView.SaveFrameToEmf
function SaveFrameToEmf(const EmfName : string;
var parm : TMETAFILEBUILDPARM) : integer;

EMF, .
EmfName. TMETAFILEBUILDPARM (
) MapType.pas. 0.
OnMapPaint
.
TMapView.SaveFrameToEmfEx
function SaveFrameToEmfEx(const EmfName : string;
var parm : TMETAFILEBUILDPARMEX) : integer;

194


EMF, .
EmfName. TMETAFILEBUILDPARMEX (
) MapType.pas. 0.
OnMapPaint
.
TMapView.ScaleInPoint
.
procedure ScaleInPoint(NewScale : integer; Point : TCompMapPoint);
:
NewScale
Point.
TMapView.SaveMapToSxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToSxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() SXF
MapName - , (hmap),
OutName - SXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapView.SaveMapToTxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToTxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() TXF ( SXF)
MapName - , (hmap),
OutName - TXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapView.Selecting
property Selecting: boolean;
/ .
, false,
.
true, ,
ViewSelect.

195

.
TMapView.SetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure SetCenter(const aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
,
aPoint.
aPlaceIn.
TMapView.SetAppendDataMode
.
function SetAppendDataMode(mode : integer) : integer;
: .
: mode - (1 - , 0 - );
: .
(
AppendData, MapSites.Append .)
.

.

, .

.
,
.
TMapView.SetObjSelected
procedure SetObjSelected(aObjSelect : TMapSelect; aColor : COLORREF;
aRepaint : boolean);

, , aObjSelect.

aObjSelect

(
TmapSelect.SelectSample) , , ,
/ aObjSelect. aObjSelect = nil ,
. Color .
aRepaint = true, .
TMapView.SetRegion
function SetRegion: integer;
.
.
TMapView.SetViewSelected
procedure SetViewSelected(View : boolean; Color : COLORREF);

, , ViewSelect.

ViewSelect

(
TmapSelect.SelectSample) , , ,
/ ViewSelect. Color
. View = false,
.
TMapView.ShowAllMapInWindow
procedure ShowAllMapInWindow;

.

TMapView.TranslateByWMS
property TranslateByWMS: boolean;
, WMS. , (WMS-), true.
TMapView.TurnAngle
function TurnAngle: double;
.
( Pi +Pi),
.
TMapView.TurnIsActive

196

function TurIsActive : boolean;


.
true,
.
TMapView.TurnSetup
function TurnSetup(aAngle, aFixation : double) : double;

. aAngle ( Pi +Pi).
aFixation
( 0 Pi/6). ,
aFixation , .
.
TMapView.UpdateMapFromSxfDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function UpdateMapFromSxfDialog(var SxfName: string; Parm : PTASKPARM = nil) : integer;
SXF, TXF DIR ( SXF TXF)
sxfname - SXF, .
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapView. UpdatePictureBorder
function UpdatePictureBorder : boolean;
.
, true.
( )
.
TMapView. UpdatePictureBorderForAll
procedure UpdatePictureBorder;
MapView
. (
)
.
TMapView.ViewScale
property ViewScale: integer;
.
,
.
MapWidth
MapHeight, MapLeft MapTop ,
.
.
0.
TMapView.ViewSelect
property ViewSelect: TMapSelect;
.
/,
.
TMapView.ViewSelectHandle
property ViewSelectHandle: HSelect;
.
MapAPI.
0.

197

TMapView.ViewType
.
property ViewType: integer;
:
. (
MapType.pas):
cVT_SCREEN
- ( DIB)
cVT_SCREENCONTOUR -
cVT_PRINT
- ( WIN API)
cVT_PRINTTRANSP
- ( )
cVT_PRINTCONTOUR
- ( )
TMapView.WorkSystemParametersDialog
function WorkSystemParametersDialog(parm : PTASKPARMEX = nil): integer;
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll
mappasp.chm.
TMapView.WriteLogAccess
function WriteLogAccess(AllMap, ModeAccess : boolean) : integer;
/ .
.
.
,
! AllMap = true, ,
(). ModeAccess=true
, .
0.

TMapWindow. .
TMapWindow .

TMapView. TMapWindow
, .
TMapView, TMapWindow.MapView.

, .
:
TObject
|
TPersistent
|
TComponent
|
TControl
|
TWinControl
|
TScrollingWinControl
|
TMapViewAccess
|
TMapViewWindow
:
public
MapFrame

198

MapHandle

MapHeight

MapLeft


.



Print


/


MapTop
MapWidth
PrinteredNow
PrintSelect
SavedCenterPointPlane
Selecting
ViewSelect
ViewType
published
Align
BackColor
BackPicture
BackStretch
BackTile
BorderStyle
Ctl3D
DragCursor
DragMode
FocusSetAuto
MapBright
MapContour
MapContrast
MapVisible
OleVisible
ParentShowHint
PlaceOut
PopupMenu
PrintScale
PrintMapType
Rendering
ShowHint
TabOrder
TabStop
ViewScale
Visible

/



C
/ OLE
MapFrame


/

:
protected
CreateParams
public
Bitmap
ConvertMetric
ConvertDFrame
Create
CreateLoxodrome
CreateOrthodrome
CreateVisibilityZone
CurrentProjectionParametersDi
alog
Destroy
GeneralFilterInMap
GetCenter
GetRegionDFrame

BMP


.
.

.

,

()

().

199

GetRegionRect
GoPointInWindow
MapSortDialog
Print
SaveMapToSxfExDialog
SaveMapToTxfExDialog
SetCenter
SetObjSelected
SetRegion
SetViewSelected
UpdateMapFromSxfDialog
UpdatePictureBorder
WorkSystemParametersDialog





() SXF
() TXF (
SXF)

,
ViewSelect


SXF, TXF
DIR

:
published
OnChangeMapView
OnChangeViewScale
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnEnter
OnExit
OnKeyDown
OnKeyPress
OnKeyUp
OnMapPaint
OnMapPaintObject
OnMouseDown
OnMouseMove
OnMouseUp

MapView

TMapWindow.BackColor
property BackColor: TColor;
.
,
, .
, ,
.
Color.
TMapWindow.BackPicture
property BackPicture: TPicture;
.
, .
BackTile
BackStretch.
TMapWindow.BackStretch
property BackStretch: boolean;
/ .
, BackPicture,
StretchDraw .
Bitmap .

TMapWindow.BackTile
property BackTile: boolean;
/ .
, BackPicture,
.
BackStretch true.
TMapWindow.Bitmap
procedure Bitmap(ABitmap: TBitMap);
BMP ,
PrintSelect, , PrintScale.

200

BMP ,
OnMapPaint ,
.
.
TMapWindow.ConvertDFrame

function
ConvertDFrame (aDframeInp : TMAPDFRAME; aPlaceInp, aPlaceOut : TPPLACE) :
TMAPDFRAME;
aDframeInp
aPlaceInp aPlaceOut.
aPlaceOut .
aDframeInp,
aPlaceInp aDframeInp.
TMapWindow.ConvertMetric
function ConvertMetric(var aX, aY : double; aPlaceInp, aPlaceOut : TPPLACE) : integer;
aX, aY aPlaceIn
aPlaceOut. 0.
TMapWindow.Create
constructor Create(AOwner: TComponent); override;
.
TMapWindow.CreateLoxodrome
function CreateLoxodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.
first - .
second - .
pArr - . count.
count -
0.
TMapWindow.CreateOrthodrome
function CreateOrthodrome (first, second, pArr : PDoublePoint; count : integer): Integer;
.
first - .
second - .
pArr - . count.
count - .
0.
TMapWindow.CreateVisibilityZone
function CreateVisibilityZone (rstName : GTKPCHAR; aZone : TBuildZoneVisibility)): Integer;
.
RstName - .
aZone - (.maptype.h).
.
RstName.
.
0.
TMapWindow.CurrentProjectionParametersDialog
function CurrentProjectionParametersDialog(parm : PTASKPARMEX = nil): integer;

, .

(mapIsGeoSupported() != 0).
.
, ,
.
(mapPlaneToGeo, mapGeoToPlane, mapPlaneToGeoWGS84,
mapAppendPointPlane, mapInsertPointPlane, mapUpdatePointPlane, mapAppendPointGeo )
, .
\
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll.

201

mappasp.chm.
TMapWindow.Destroy
destructor Destroy; override;
.
TMapWindow.GeneralFilterInMap
()
().
function GeneralFilterInMap (site : HSite; list : integer; precision : double; aWnd : HWnd): Integer;

( , ,
).
Site - .
list
- .
precision - ( ,
).
aHwnd - , (
).
0x590:
wparm : ;
lparm : .
= mapGetObjectCount(hMap; list)
-
= mapGetSiteObjectCount(hMap; hSit) -
0x590.
0.
TMapWindow.FocusSetAuto
property FocusSetAuto: boolean;
/ .
, .
false, ,
. true.
TMapWindow.GetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure GetCenter(var aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
aPoint.
aPlaceOut.
TMapWindow.GetRegionDFrame
function GetRegionDFramet (aPointPlace : TPPLACE) : TMAPDFRAME;
.
aPointPlace.
TMapWindow. GetRegionRect
function GetRegionRect : TRECT;
.
TMapWindow.GoPointInWindow
procedure GoPointInWindow(aX, aY : double; aPlaceInp : TPPLACE; var aLeft, aTop : integer);
,
aX, aY, aPlaceInp,
aLeft, aTop ( ).
aLeft, aTop ,
aX, aY .
TMapWindow.MapBright
property MapBright: integer;
4 +4.
TMapWindow.MapContour
property MapContour: boolean;
.
, true, .
TMapWindow.MapContrast
property MapContrast : integer ;
4 +4.
TMapWindow.MapFrame

202

property MapFrame: TMAPDFRAME;


, PlaceOut.
X1, Y1 (-) . X2, Y2
(-) .

.
TMapWindow.MapHandle
property MapHandle: HMap;
.
MapAPI.
0.
TMapWindow.MapLeft
property MapLeft: integer;

.
0.
. (HorzScrollBar.Show = false, VertScrollBar.Show = false),
MapLeft MapTop .
TMapWindow.MapSortDialog
function TMapView.MapSortDialog(parm : PTASKPARMEX = nil): integer;
.
parm . TASKPARM maptype.pas
(maptype.h). Handle parm .
parm ,
InitTaskParmEx (maputil.pas).
.
gisvectr.dll
mapvectr.chm.
TMapWindow.MapTop
property MapTop: integer;

.
0.
. (HorzScrollBar.Show = false, VertScrollBar.Show = false),
MapLeft MapTop .
TMapWindow. MapView
property MapView: TMapView;
, .
,
.
TMapWindow.MapVisible
property MapVisible: boolean;
/ .
, true,
.
, false, ,
BackPicture , ,
, BackColor.
TMapWindow.MapWidth
property MapWidth: integer;
.
HorzScrollBar.Range.
0.
TMapWindow.OleVisible
property OleVisible: boolean;
/ OLE
, true, OLE
, 2011 *.omp.
, false, OLE
.
*.omp OLE (Word, Exel, Paint .).
TMapWindow.OnChangeMap
TChangeMapEvent = procedure (Sender: TObject;OldMapFileName: string; NewMapFileName: string) of
object;
property OnChangeMap: TChangeMapEvent;

203

.
.

OnMapClose OnMapOpen .
:
OldMapFileName - .
NewMapFileName - .
TMapWindow.OnChangeMapView
TChangeMapViewEvent = procedure (Sender: TObject; OldMapView: TMapView; NewMapView:
TMapView) of object;
property OnChangeMapView: TChangeMapViewEvent;
MapView.
:
OldMapView - .
NewMapView - .
TMapWindow.OnChangeViewScale
TChangeScaleEvent = procedure (Sender: TObject; OldScale: integer; NewScale: integer) of object;
property OnChangeViewScale: TChangeScaleEvent;
ViewScale.
:
Sender
- TmapView, TmapWindow.
OldScale
- .
NewScfle
- .
TMapWindow.OnMapPaint
TMapPaintEvent = procedure (Sender : TObject; aCanvas : TCanvas; MapPaintRect : TRect) of object;
property OnMapPaint: TMapPaintEvent;
Paint, Print, BitMap.
.
,
, .
TmapView, TMapWindow .
:
Sender
- TMapView, TMapWindow.
MapPaintRect -
(, ). ,
.
aCanvas
- Sender. ! aCanvas
:
MapLeft, -MapTop. , 0,0;
10,20 MapLeft, MapTop; MapLeft + 10, MapTop + 20.
: X1, Y1, X2, Y2
. Point:TcompMapPoint.
Point.PlaceInp := PP_PLANE;
Point.PlaceOut := PP_PICTURE;
Point.SetPoint(X1, Y1);
Point.GetPoint(Rect1.Left, Rect1.Top);
Point.SetPoint(X2, Y2);
Point.GetPoint(Rect1.Right, Rect1.Bottom);
aCanvas.FrameRect(Rect1);
TMapView.OnMapPaintObject
TMapPaintEventObject = procedure (Sender : TObject; aCanvas : TCanvas;
aMapPaintRect : TRect; aLeftPosition, aTopPosition : integer;
aMapPaintEventType : TMapPaintEventType) of object;
OnMapPaintObject : TmapPaintEventObject;
TMapPaintEventType =
( PaintNone,
PaintInWindow,
PaintInPrinter,
PaintInBitMap

//
// (
TMapViewWindow.Paint)
// (
TMapViewWindow.Print)
// BitMap
( TMapViewWindow.BitMap)

);
Paint, Print, BitMap.
.
OnMapPaint, .
,
, .

204

TmapView, TMapWindow .
:
Sender
- TMapView, TMapWindow.
MapPaintRect -
(, ). ,
.
aCanvas
- Sender. ! aCanvas
:
aLeftPosition, aTopPosition. ,
aLeftPosition, aTopPosition; aLeftPosition + 10, aTopPosition + 20
0, 0; 10, 20.
aMapPaintEventType- :
( ), , ,
BitMap.
. ,
.
TMapWindow.PlaceOut
property PlaceOut: TPPLACE;
MapFrame.
,
.
.
TMapWindow.Print
procedure Print;
,
PrintSelect, , PrintScale.
,
.
, WindowsAPI.
BMP ,
OnMapPaint ,
.
.
TMapWindow.PrinteredNow
property PrinteredNow : boolean ;
true TMapWindow.Print.
TMapWindow.PrintMapType
TPrintMapType = (
//
PT_PRINT,
// ( win api)
PT_PRINTGLASS,
//
PT_PRINTCONTOUR, // ,
//
PT_PRINTRST,
// ( win api)
PT_PRINTGLASSRST,
//
PT_PRINTCONTOURRST // ,
);
property PrintMapType : TPrintMapType;
: ,
, , , ,
, ,
.
.
. PT_PRINT.
TMapWindow.PrintScale
property PrintScale: integer;
BMP
.
0.
TMapWindow.PrintSelect
property PrintSelect: TMapSelect;
/,
BMP
.
TMapWindow.PropertyFont
property PropertyFont: TFont;
, .

205

.
TMapWindow.Rendering
property Rendering: boolean;
/ .
, false, .
true, .
Refresh.
TMapWindow.SavedCenterPointPlane
property SavedCenterPointPlane : TDOUBLEPOINT;
,
SavePositionMapInCenterWindow.
RestorePositionMapInCenterWindow.
.
.
TMapWindow.SaveMapToSxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToSxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() SXF
MapName - , (hmap),
OutName - SXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapWindow.SaveMapToTxfExDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function SaveMapToTxfExDialog(MapName : string = ''; OutName : string = ''; Parm : PTASKPARM =
nil) : integer;
() TXF ( SXF)
MapName - , (hmap),
OutName - TXF ( ),
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.
TMapWindow.ScaleInPoint
procedure ScaleInPoint(NewScale : integer; Point : TCompMapPoint);
NewScale

206

Point.
TMapWindow.Selecting
property Selecting: boolean;
/ .
, false,
.
true, ,
ViewSelect.
.
TMapWindow.SetCenter
type
TDOUBLEPOINT = packed record
X:double;
Y:double;
end;
type
procedure SetCenter(const aPoint : TDOUBLEPOINT; aPlaceOut : TPPLACE = PP_PLANE);
,
aPoint.
aPlaceIn.
TMapWindow.SetObjSelected
procedure SetObjSelected(aObjSelect : TMapSelect; aColor : COLORREF; aRepaint : boolean);

, , aObjSelect.

aObjSelect

(
TmapSelect.SelectSample) , , ,
/ aObjSelect. aObjSelect = nil ,
. Color .
aRepaint = true, .
TMapWindow.SetRegion
function SetRegion: integer;
.
.
TMapWindow.SetViewSelected
procedure SetViewSelected(View : boolean; Color : COLORREF);

, , ViewSelect.

ViewSelect

(
TmapSelect.SelectSample) , , ,
/ ViewSelect. Color
. View = false,
.
TMapWindow. UpdateMapFromSxfDialog
type
//
TTASKPARM = packed record
Language:longint;
// (1 -ENGLISH,/ 2 - RUSSIAN, ...)
Resource:longint;
//
HelpName:GtkPChar;
// ".hlp"
IniName:GtkPChar;
// ".ini"
PathShell:GtkPChar;
// (exe,dll,...)
ApplicationName:GtkPChar; //
Handle:HWND;
//
end;
PTASKPARM = ^TTASKPARM;
function UpdateMapFromSxfDialog(var SxfName: string; Parm : PTASKPARM = nil) : integer;
SXF, TXF DIR ( SXF TXF)
sxfname - SXF, .
parm
- , TASKPARM maptype.pas (maptype.h),
Handle .
parm ,
InitTaskParm (maputil.pas).

gisvectr.dll
mapvectr.chm.

207

TMapWindow. UpdatePictureBorder
function UpdatePictureBorder : boolean;
.
, true.
( )
.
TMapWindow.ViewScale
property ViewScale: integer;
.
,
.
MapWidth
MapHeight, MapLeft MapTop ,
.
.
0.
TMapWindow.ViewSelect
property ViewSelect: TMapSelect;
/,
.
TMapWindow.ViewType
property ViewType: integer;
. (
MapType.pas):
cVT_SCREEN
- ( DIB)
cVT_SCREENCONTOUR -
cVT_PRINT
- ( WIN API)
cVT_PRINTTRANSP
- ( )
cVT_PRINTCONTOUR
- ( )
TMapWindow..WorkSystemParametersDialog
function WorkSystemParametersDialog(parm : PTASKPARMEX = nil): integer;
.
(HMAP),
mapPlaneToWorkSystemPlane, mapWorkSystemPlaneToGeo ..
parm . TASKPARMEX
maptype.pas (maptype.h).
parm ,
InitTaskParmEx (maputil.pas).
.
gispasp.dll
mappasp.chm.

TMapWmsAccess. WMS-.
,
TMapView TMapScreen.
,
c WMS-. (Web Map Service (WMS)
).
, web-,
giswmsacces.dll. .
OGC WMS, OGC WMTS, TMS 17
.
, WMS-, - epsg.csg,
epsg.csp, epsg.csu.
. .
WMS-
TMapView TMapScreen MapOpen AppendData
. , / ,
WMS-.
,
, URL- WMS-.
- WMS-.
:
WMTS#IP=http://gisserver.ru/Panorama/wms/default.aspx&ID1=Russia&Name1=&Matrix=urn:og

208

c:def:wkss:OGC:1.0:GlobalCRS84Scale
TMapWMSBuildURLDialog.
:
TObject
|
TPersistent
:
public
EPSGCode
Number
RangeScaleVisible
WMSBright
WMSContrast
WMSName
WMSView
WMSViewOrder

EPSG WMS-
WMS-
, WMS-
WMS-
WMS-
WMS-
WMS-
WMS-

public
GetWMSGeoFrame
GetWMSPlaneFrame
GetWMSProjectionData

WMS-
WMS, EPSG


WMS-

TMapWmsAccess.EPSGCode
property EPSGCode: integer;
EPSG WMS-.
.
.
TMapWmsAccess.GetWMSGeoFrame
function GetWMSGeoFrame(var frame: TMAPDFRAME): integer;

WMS-, EPSG ( EPSGCode).
TMapWmsAccess.GetWMSPlaneFrame
property EPSGCode: integer;
EPSG WMS-.
.
TMapWmsAccess.GetWMSProjectionData
property EPSGCode: integer;
EPSG WMS-.
.
TMapWmsAccess.Number
property Number: integer;
WMS-,
, WMS-.
WMS- 1.
TMapWmsAccess.RangeScaleVisible
property RangeScaleVisible : TViewScaleRange
TViewScaleRange = packed record
TopScale: integer;
BottomScale: integer;
end;
WMS.
, .
TMapWmsAccess. WMSBright
property WMSBright: TRstBright
type TRstBright = -16..16
WMS-.
RstBright=0 () .
, .
, .
TMapWmsAccess. WMSContrast
property WMSContrast: TRstContrast
type TRstContrast = -16..16

209

WMS-.
RstContrast=0 () .
,
.
, .
TMapWmsAccess.WMSName
property WMSName: string;
WMS-.
.
TMapWmsAccess.WMSView
property WMSView: TRstViewType
type TRstViewType = 0..5;
= 0 -
= 1 -
= 2 -
= 3 -
= 4 -
= 5 -
WMS-.
, .
TMapWmsAccess.WMSViewOrder
property WMSViewOrder: integer
WMS-
(WMSViewOrder=1) (WMSViewOrder=0).
, .

TMapWms. - WMS-.
,
TMapView TMapScreen.
WMS TMapWMSAccess,
, c WMS-. (Web Map Service (WMS)
).
, web-,
giswmsacces.dll. .
OGC WMS, OGC WMTS, TMS 17
.
, WMS-, - epsg.csg,
epsg.csp, epsg.csu.
. .
WMS-
TMapView TMapScreen MapOpen AppendData
, Append . ,
/ ,
WMS-.
,
, URL- WMS-.
- WMS-.
:
WMTS#IP=http://gisserver.ru/Panorama/wms/default.aspx&ID1=Russia&Name1=&Matrix=urn:og
c:def:wkss:OGC:1.0:GlobalCRS84Scale
TMapWMSBuildURLDialog.
:
TObject
|
TPersistent
:
public
MapWMSAccess
WMSCount
:

WMS-
WMS-

210

public
Append
Delete
GetNumber

WMS-

WMS-

TMapWMS.Append
function Append(aWMSConnectionString : string): integer;
WMS-.

WMS- .
WMS- 1.
0.
aWMSConnectionString WMS-.
,
, URL- WMS-.
- WMS-.
:
WMTS#IP=http://gisserver.ru/Panorama/wms/default.aspx&ID1=Russia&Name1=&Matrix=urn:og
c:def:wkss:OGC:1.0:GlobalCRS84Scale
TMapWMSBuildURLDialog.
TMapWMS.Delete
! WMS- , .
procedure Delete(Number: integer);
WMS- .
Number WMS- .
.
TMapWMS.GetNumber
function GetNumber(aWMSName : string): integer;
WMS- WMS- .
WMS- .
WMS- 0.
WMS- 1.
TMapWMS.MapWMSAccess
property MapWMSAccess [Number: integer]: TMapWMSAccess;
WMS-.
Number WMS- .
WMS- 1.
TMapWMS.WMSCount
property WMSCount: integer;
WMS-.
0.

TMapWMSBuildURLDialog. " WMS-".


WMS-.
(Web Map Service (WMS)
).
, web-,
giswmsacces.dll. .
OGC WMS, OGC WMTS, TMS 17
.
, WMS-, - epsg.csg,
epsg.csp, epsg.csu.
. .
wmslist.ini,
.
. wmslist.ini
2011.
- ,
, . ,
(TMapView TMapScreen), , ,
, , WMS. ,
, WMSConnectionString.
, ,

211

, WMSConnectionString.
Execute.
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapView
Regime
WMSConnectionString


(//)
WMS-

:
public
Create
Execute
:
published
OnShow
OnClose

.
.

TMapWMSBuildURLDialog.Create
constructor Create(AOwner: TComponent); override;
.
TMapWMSBuildURLDialog.Execute
function Execute: Boolean;
Execute WMS-.
WMSConnectionString.
, , ,
WMSConnectionString.
(TMapView
TMapScreen), , (, ),
, , WMS-.
TMapWMSBuildURLDialog.MapView
property MapView: TMapView;
. ,
(, ),
, , WMS-.
TMapWMSBuildURLDialog.OnClose
OnClose: TNotifyEvent;
.
TMapWMSBuildURLDialog.OnShow
OnShow: TNotifyEvent;
.
TMapWMSBuildURLDialog.Regime

212

type
TMapWMSBuildURLDialogRegime = (

dlgOpen = 0, //
dlgAppend = 1, //
dlgEdit = 2); //

property Regime : TMapWMSBuildURLDialogRegime;


, , WMS-
.
, , ,
WMSConnectionString.
(TMapView
TMapScreen), , , ,
, WMS-.
TMapWMSBuildURLDialog.WMSConnectionString
property WMSConnectionString : AnsiString;

(WMS-).
, ,
, .

TMoveToDialog. .
" "
:
1. " " " "
. , "
" " ".
2. " " (,
)
.
3. " "
.
-
.
""
" ".
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
publi
DisplayFormat
Marker

published
MapView

:
public
Create
Execute

213

Execute, Marker
" " .
Marker , DisplayFormat
dfPlane ( ).
Execute true, ""
, .
:
published
OnFormatChanged
OnMarkerChange
OnShow
OnClose

.
.
.
.

TMoveToDialog.Create
constructor Create(AOwner: TComponent); override;
.
TMoveToDialog.DisplayFormat
property DisplayFormat: TDisplayFormat;
.
"
" "":
TDisplayFormat=(
dfPlane
= 1,
//
dfMap
= 2,
//
dfPicture
= 3, //
dfRadians
= 4, //
dfDegrees
= 5, //
dfDMS
= 6, // , ,
dfRadiansWGS84 = 7,
drDegreesWGS84 = 8,
dfDMSWGS84
= 9,

// , WGS84
// , WGS84
// , , , WGS84

dfPlane42
= 10, // 1942
dfRadiansPZ90
= 11, // , -90
drDegreesPZ90 = 12, // , -90
dfDMSPZ90
= 13 // , , , -90
);
dfPlane.
TMoveToDialog.Execute
function Execute: boolean; reintroduce;
.
( ""), ,
, OnMarkerChange,
. "
", OnFormatChanged.
"" ( false),
"" "
" ( true).
TMoveToDialog. MapView
property MapView: TMapView;
,
.
TMoveToDialog.Marker
property Marker[APlace: TPP_PLACE]: TDoublePoint;
. ( )
APlace: TPP_PLACE .

TMoveToDialog.OnFormatChanged
property OnFormatChanged: TNotifyEvent;
.
"
".

214

TMoveToDialog.OnClose
OnClose: TNotifyEvent;
.
TMoveToDialog.OnMarkerChange
TMarkerChange = procedure(ASender: TObject; var AMarker: TDoublePoint; var APlace: TPPlace)of
object;
property OnMarkerChange: TMarkerChange;
.

TMoveToDialog.OnShow
OnShow: TNotifyEvent;
.
:
procedure TForm1.Button1Click(Sender: TObject);
var Stored: TDoublePoint;
begin
MoveToDialog1.MapView := MapView1;
Stored.X:= MapView1. MapLeft+MapView1.ClientWidth div 2;
Stored.Y:= MapView1. MapTop+MapView1.ClientHeight div 2;
MoveToDialog1.Marker[PP_PICTURE]:= Stored;
if not MoveToDialog1.Execute then
MoveToDialog1.Marker[PP_PICTURE]:= Stored;
end;
procedure TForm1. MoveToDialog1FormatChanged(Sender: TObject);
begin
with MoveToDialog1 do
case DisplayFormat of
dfDegrees: StatusBar1.Text:= Format('%.4f, %.4f', [Marker[PP_GEO].X*180/Pi,
Marker[PP_GEO].Y*180/Pi]);
dfPlane: StatusBar1.Text:= Format('%.4f, %.4f', [Marker[PP_PLANE].X, Marker[PP_PLANE].Y]);
dfRadians: StatusBar1.Text:= Format('%.6f, %.6f', [Marker[PP_GEO].X, Marker[PP_GEO].Y])
.
end;
end;

TMetricDialog. .
(
)
.
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapFind
MapView
:
public
Create
Execute
:
published

TMapFind, .
.

215

OnShow
OnClose

.
.

TMetricDialog.Create
constructor Create(AOwner: TComponent); override;
.
TMetricDialog.Execute
procedure Execute; reintroduce;
Execute
MapFind. MapFind
""/"".
(X , Y - ) ( B, L) .
,
. , ()
,
(H). ,
() . , ,
, , .
, ( ),
(-111111).
"" ( )
.
.
( X, Y)
( ):
- (X,Y);
- (B, L);
- dX, dY;
- ;
- ;
- ;
- ().
TMetricDialog.MapFind
property MapFind: TMapFind;
MapFind .
TMetricDialog.MapView
property MapView: TMapView;
, ,
.
TMetricDialog.OnClose
OnClose: TNotifyEvent;
.
TMetricDialog.OnShow
OnShow: TNotifyEvent;
.

TMtrLegendTree. .
" "
.
.
, .
: mlegtree
:
TObject
|
TPersistent
|
TControl

216

|
TWinControl
|
TCustomTreeView
|
TTreeView
|
TMtrLegendTree
:
published
ColorBoxHeight
ColorBoxWidth
MapView
MatrixType
MtrNumber
UnitName



( TMapView, TMapWindow
TMapScreen).
( )
.

:
public
ClearTree
Create
Destroy
FillTree

TMtrLegendTree. ClearTree
procedure ClearTree;
.
TMtrLegendTree.ColorBoxHeight
property ColorBoxHeight : integer;
.
TMtrLegendTree.ColorBoxWidth
property ColorBoxWidth : integer;
.
TMtrLegendTree.Create
constructor Create(AOwner: TComponent); override;
. .
TMtrLegendTree.Destroy
destructor Destroy; override;
. .
TMtrLegendTree.FillTree
procedure FillTree;
. ,
MapView , MtrNumber.
TMtrLegendTree.MapView
property MapView : TMapViewAcces;
, ,
.
TMtrLegendTree.MatrixType
type
TMatrixType = (mtMTW = 0, mtMTQ = 1);
property MatrixType : TMatrixType;
, . mtMTW
, mtMTQ .
, . MtrNumber
.
TMtrLegendTree.MtrNumber
property MtrNumber : integer;
.

217

,
. MatrixType ,
(mtMTW , mtMTQ ).
TMtrLegendTree.UnitName
property UnitName : string;
. ,
,
/.

TOpenAtlasDlg. ,
.
" " ,
.

: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapAtlas
MapView

TMapAtlas,
.
.

:
public
Create
Execute
:
published
OnChange
OnShow
OnClose

(..
MapView).
.
.

TOpenAtlasDlg.Create
constructor Create(AOwner: TComponent); override;
.
TOpenAtlasDlg.Execute
function Execute: Boolean; reintroduce;
Execute " ".
( ) .
"".
.
, .
"". ""
. ,
.
. MapView
, , , .
, .
TOpenAtlasDlg.MapAtlas
property MapAtlas: TMapAtlas;
,

218

. MapAtlas ,
.

TOpenAtlasDlg.MapView
property MapView: TMapView;
, ()
.
TOpenAtlasDlg.OnChange
OnChange: TNotifyEvent;
() .
TOpenAtlasDlg.OnClose
OnClose: TNotifyEvent;
.
TOpenAtlasDlg.OnShow
OnShow: TNotifyEvent;
.

TOpenMapDialog. .

.
: mapdialg
:
TObject
|
TPersistent
|
TComponent
|
TCommonDialog
|
TOpenDialog
:
publi
FileType
published
DialogMode
FileName
MapView
Preview

, ,
.



:
public
Create
Destroy
Execute

Execute, TMapView,
MapView, , .
TMapView ,
, GisToolKit RSW:
*.map
*.sit
*.rsw, *.rst
*.mtw
*.mtq
*.mtl

,
TMapView

219

*.bmp
*.pcx
*.tif

Windows Bitmap
Z-Soft PaintBrash
Tag Image


RSW
ConvertToRsw

Execute true, , ,
TMapView. FileType,
,
, .
ofEnableSizing(Options),
false,
, - .
TOpenMapDialog.Create
.
constructor Create(AOwner: TComponent); override;
:
:
Preview
= True
Options
= [ofFileMustExist, ofHideReadOnly];
Title
=
DialogMode
= DmNone
Filter
=
(*.map, *.sit)
(*.rsw, *.rst)
(*.mtw, *.mtl, *.mtq)
(*.bmp, *.pcx, *.tif)

TOpenMapDialog.Destroy
destructor Destroy; override;
, .
TOpenMapDialog.DialogMode
TMapOpenDlgMode = (dmNone, dmPropAndView, dmPropOnly, dmViewOnly); property DialogMode:
TMapOpenDlgMode;
.
Execute.
:
dmNone
, Windows
dmPropAndView

dmPropOnly

dmViewOnly

dmPropAndView.
TOpenMapDialog.Execute
function Execute: boolean;
.
DialogMode.
( Ok), ,
TMapView, TMapView, MapView,
, MapView .
true , ( Cancel)
false.
( FileType),
(. ).
:
procedure TForm1.Button1Click(Sender: TObject);
var
RSWname : string; // RSW
begin
OpenMapDialog1.MapView := MapView1;
if not OpenMapDialog1.Execute then exit; //
if OpenMapDialog1.FileType = ftNotMap //
then exit;
if OpenMapDialog1.FileType = ftMap //
then MapView1.MapView := true;
if OpenMapDialog1.FileType = ftPicture then // RSW
begin
//
if ConvertToRSW(OpenMapDialog1.FileName, //
0,
//

220

MapView1.MapHandle,
RSWname)<>0 then

//.

begin
ShowMessage(' RSW!');
exit;
end
else
begin
MapView1.MapFileName := RSWname;
MapView1.MapView := true;
end;
end;
TOpenMapDialog.FileName
property FileName: string;
,
. TMapVeiw,
MapView,
.
TOpenDialog.
TOpenMapDialog.FileType
TMapOpenDlgFileType = (ftMap, ftPicture, ftNotMap);
property FileType: TMapOpenDlgFileType;
.
, TMapView,
RSW.
ftMap

TMapView:
- (*.map, *.sit);
- (*.rsw, rst);
- (*.mtw, *.mtq, *.mtl);
ftPicture
, GisToolKit
RSW (
ConvertToRSW).
ftNotMap
.
TOpenMapDialog. MapView
property MapView: TMapView;
,
, (,
), TMapView.
TOpenMapDialog.Preview
property Preview: boolean;
,
.
, , .. DialogMode=
dmPropAndView DialogMode= dmViewOnly.
.

.
:
- : *.map, *.sit;
- : *.rsw, *.rst;
- : *.mtw, *.mtq, *.mtl;
- Windows BitMap: *.bmp.

TSemanticDialog.
.
(
)
.
: mdialog
:
TObject

221

|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapFind
MapView

TMapFind, .
.

:
public
Create
Execute
:
published
OnShow
OnClose

.
.

TSemanticDialog.Create
constructor Create(AOwner: TComponent); override;
.
TSemanticDialog.Execute
procedure Execute; reintroduce;
Execute
MapFind. MapFind
""/"".
, ,
.
. :
- ( ,
);
- ( ,
);
- ( );
- ( );
- ( ,
);
- ( ).
,

.
, ,
.
,
. .
"",
.TSemanticDialog.MapFind
property MapFind: TMapFind;
MapFind , .
TSemanticDialog.MapView
property MapView: TMapView;
, ,
.
TSemanticDialog.OnClose
OnClose: TNotifyEvent;
.
TSemanticDialog.OnShow
OnShow: TNotifyEvent;
.

222

TSemUpdateDlg. .
( )
.
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapFind
MapView
SelectionColor

TMapFind, MapSelect
.
.
.

:
public
Create
Execute

:
published
OnShow
OnClose

.
.

TSemUpdateDlg.Create
constructor Create(AOwner: TComponent); override;
.
TSemUpdateDlg.Execute
function Execute: Boolean; reintroduce;
" ".
Execute, ,
SelectionColor.
:
1. " "
..
.
2. ""
.
3. " "
.
4. ""
" " ,
, .
, ,
. "*" ,
. , "*12" "
" , "12".
Execute true, ""
, false.
TSemUpdateDlg.MapFind
property MapFind: TMapFind;
MapFind
MapFind.MapSelect /.
TSemUpdateDlg.MapView

223

property MapView: TMapView;


,
.
TSemUpdateDlg.OnClose
OnClose: TNotifyEvent;
.
TSemUpdateDlg.OnShow
OnShow: TNotifyEvent;
.

TUndoDialog. .
" "
/.
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapView

:
public
Create
Execute

:
published
OnFinish
OnProcess
OnStart
OnShow
OnClose

.
.
.

.
.

TUndoDialog.Create
constructor Create(AOwner: TComponent); override;
.
TUndoDialog.Execute
procedure Execute; reintroduce;
" ".

"". ,
" ".
, .
"
".
TUndoDialog.MapView
property MapView: TMapView;
, .

224

TUndoDialog.OnClose
OnClose: TNotifyEvent;
.
TUndoDialog.OnFinish
OnFinish: TNotifyEvent;
().
TUndoDialog.OnProcess
OnProcess: TNotifyEvent;
TUndoDialog.OnShow
OnShow: TNotifyEvent;
.
TUndoDialog.OnStart
TProcessEvent
= procedure(ASender: TObject; APercent: Integer)of object;
OnProcess: TProcessEvent;
().
APercent .

TViewScaleRangeDialog. " ".


-
.
,
. , , , WMS
.
(, ,
..)
( ) .
TViewScaleRangeDialog .

.
GISFORMS.DLL.
Panorama.chm:
TOPIC=General1; ID=IDN_SCALEVIEW (7063).
: mdialog
:
TObject
|
TPersistent
|
TComponent
|
TMapComponent
|
TComMapDialog
:
published
MapView
TopScale
BottomScale
Title

:
public
Create
Execute
:
published
OnShow
OnClose

.
.

225

TViewScaleRangeDialog.BottomScale
property BottomScale: integer;
.
. ,
,
.
TViewScaleRangeDialog.Create
constructor Create(AOwner: TComponent); override;
.
TViewScaleRangeDialog.Execute
function Execute: Boolean;
Execute .
TopScale BottomScale.
TViewScaleRangeDialog.MapView
property MapView: TMapView;
. ,
, , .
TViewScaleRangeDialog.OnClose
OnClose: TNotifyEvent;
.
TViewScaleRangeDialog.OnShow
OnShow: TNotifyEvent;
.
TViewScaleRangeDialog.TopScale
property TopScale: integer;
.
. ,
,
.


, ,
.

-
GIS ToolKit
. -

, .
- API-,
mapproc.pas ( *.inc). ,
API, - API.
Maputil.pas.

function CreateMapDialog(var mapname : string; hmap : HMAP = 0; parm : PTASKPARMEX = nil):
integer;

function CreatePlanDialog(var mapname : string; parm : PTASKPARMEX = nil): integer;
() DIR ( SXF TXF)
function SaveMapToDirDialog(hMap: HMAP; DirName : string = ''; Parm : PTASKPARM = nil) : integer;
DIR ( SXF \ TXF,
function LoadDirToMapDialog(var DirName, MapName : string; Parm : PTASKPARM = nil) : integer;
SXF TXF
function LoadSxfToMapDialog(var SxfName, MapName : string; Parm : PTASKPARM = nil) : integer;


.
( ),
, , ..
.
. ,
Windows ,
.
, ,
( 1,5 )
.
, .

, , , . .
Mapproc.pas.
function mapGetScreenSize : integer;
.
function mapSetScreenSize(aSize : integer) : integer;
(100 - 2000).
. 0
function mapSetScreenSizeEx(aSize : integer; aHdc : HDC) : integer;
(100 - 2000).
. aHdc - .
0
function mapGetScreenScale : integer;
.
function mapSetScreenScale(aScale : integer) : integer;
(100 - 200).
.
0.
function mapGetScreenPrecision : integer;
.

227

function mapSetScreenPrecision(aValue : integer) : integer;


(1000 - 100000).
.
0.
function mapScreenMeter2Pixel(aMetric : double) : integer;
function mapScreenPixel2Meter(aPixel : integer) : double;
.
procedure SetScreenSizeAndScaleNormal;
,
0.26 .

ConvertToRsw.
(*.rsw).
:
conv2rsw.pas
:
function ConvertToRSW (InputFile: string;
HelpPage: integer;
MapHandle: HMap;
var OutputFile: string) : integer;
InputFile
HelpPage
MapHandle
OutputFile

(BMP, TIFF, PCX)


RSW.

(RSW)

0.
RSW
:
BMP (Windows Bitmap);
TIFF (Tag Image);
PCX (Z-Soft PaintBrash).

, :
- BMP. Bmp -

228

Windows OS2. ()
.
PCX. PCX . .
() .
TIF.
TIF ( 6.0). ,
() .

OutputFile
,
rsw.
,
HelpPage. , Application.HelpFile. (
) ,
.
....
(
- , RSW).
.

.
.
,
() (INI- *.ini).


.
, .
INI- ,
(MapHandle). , ,
(0,0). .
RSW. (
) OutputFile.

EditSelectRect.
.
function EditSelectRect(MapView: TMapView; Place:
TPPlace; Color: TColor; SelectionMode:
TselectionMode; var SelectRect: TMapDFrame): boolean;
DlgSelRt.
, .
:
MapView TMapView c ;
Place (PP_PICTURE, PP_PLANE PP_GEO);
Color - .
SelectionMode - .
:
TSelectionMode =
(smStandart,
//
smTwoClicks,
//
smEdit,
//
smStandart_Edit, //
smTwoClicks_Edit);
// .
SelectRect
Place;
true ,
SelectRect.
:

229

C SelectionMode ,
:
-

( Windows, ..
,
,
, );
( , ..
,
,
, );
(
, SelectedRect
, Pplace,
;
StopAction,
);
( ,
,
,
);
( ,
,
,
).

, ,
.
. .
, .
.
.

,
.
,
.

SelectObjectFromRsc.
( *.Rsc).
function SelectObjectFromRsc(aMapView : TMapView; aLocals : TLOCALS;
var aObjInfo : TMAPOBJECTINFO): boolean;
DLgGetOb. ,
, (
).
:
aMapView TmapView c ;
aLocals ;
aObjInfo
NumbSite 1 .
Incode Excode Local, Name Local

230

(Local 1, ).
true
, aObjInfo.

SetGISLanguage.
.
procedure SetGisLanguage(Language:TMAPAPILANGUAGE);
type
TMAPAPILANGUAGE = ( //
ML_NONE,
//
ML_ENGLISH,
//
ML_RUSSIAN
//
);
. ,
ML_RUSSIAN.
!!!
.

231



:
TMapView.MapMtrs - :


*.mtr.


Shift Ctrl, , ( )
, ,
.
> <.
>> <<.

, .
TMapView.MapFileName -
, .

232

TMapView.MapRsts
TMapView.MapSites
,
( *.rsw, *.sit).
:

233

T
MT_BADMAPTYPE
MT_TOPOGRAPHIC
MT_GEOGRAPHIC
MT_GLOBE
MT_CITYPLAN
MT_LARGESCALE
MT_AERONAUTIC
MT_SEANAUTIC
MT_AVIATION
MT_BLANK

= 0 -
= 1 -
= 2 - -
= 3 - ()
= 4 -
= 5 -
= 6 -
= 7 -
= 8 -
= 9 -

T
TR_ABSOLUTE
TR_AMOUNT

= 0 -
= 1 -


CSC_COUNTTOPO
= 7 -
CSC_COUNTGEOG
= 5 - -
CSC_COUNTAERO
= 2 -
CSC_COUNTCITYPLAN = 2 -

PR_NOADEQUACY
= 0 -
PR_ADEQUACY
= 1 -
" "
MP_GAUSSCONFORMAL
= 1 - -
MP_CONICALORTHOMORPHIC = 2 -
MP_CYLINDRICALSPECIAL
= 3 -
MP_LAMBERT
= 4 -
MP_STEREOGRAPHIC
= 5 -
MP_POSTEL
= 6 -
MP_AZIMUTHALOBLIQUE
= 7 -
MP_MERCATORMAP
= 8 -

MP_URMAEV
= 9 -
(.)
MP_POLYCONICAL
= 10 -
MP_SIMPLEPOLYCONICAL
= 11 -

MP_PSEUDOCONICAL
= 12 -
MP_STEREOGRAPHICPOLAR
= 13 -
MP_CHEBISHEV
= 14 -
MP_GNOMONIC
= 15 -
MP_CYLINDRICALSPECIALBLANK=16 -

234

" "
EK_UNDEFINED
= -1 -
EK_KRASOVSKY42
= 1 - 1942.
EK_WGS_76
= 2 - 1976.
EK_HEFORD
= 3 - 1909.
EK_CLARKE_80
= 4 - 1880.
EK_CLARKE_66
= 5 - 1866.
EK_EVEREST_57
= 6 - 1857.
EK_BESSEL
= 7 - 1841.
EK_AIRY
= 8 - 1830.
EK_WGS_84
= 9 - 1984.
" "
HS_BALTIC
= 1 -
HS_LAMANSH
= 6 -
HS_NORMALNULL
= 16 - C
HS_MARSEL
= 22 -
HS_USAKANADA
= 24 - ,

HS_BALTIC77
= 25 - 1977 .
HS_OKHOTSK
= 26 -
HS_PEACEOCEAN
= 27 -
" "
CS_ORTHOGONAL
= 1 - 42
CS_UNIVERSALMERCATOR = 2 -
CS_NATIONALGRID
= 3 -

CS_AREAORTHOGONAL
= 4 -
CS_SYSTEM_63
= 5 - 63
CS_CONDITION
= 6
CS_GEOCOORDINATE
= 7 -
" "
MU_KILOMETRE
= 5 -
MU_METRE05
= 4 - 0.5
MU_METRE
= 0 -
MU_DECIMETRE
= 1 -
MU_CENTIMETRE
= 2 -
MU_MILLIMETRE
= 3 -
MU_SECOND01
= 66 - 0.1
MU_RADIAN
= 64 -
MU_RADIAN8
= 67 - 10e-8
MU_DEGREE
= 65 -
MU_FOOT
= 16 -
" "
FK_TRAPEZE = 1 -
FK_TRAPEZECURVE = 2 -
FK_RECTANGULAR = 3 -
FK_CIRCLE = 4 -

235

" "
MIK_MAP
= 1 -
MIK_PHOTO
= 2 -
MIK_IMAGE
= 3 -
MIK_GRAM
= 4 -
" "
MIT_MAPRUN
= 1 -
MIT_FINAL
= 2 -
MIT_MANUSCRIPT
= 3 -
MIT_UPDATE
= 4 -
MIT_SPECIAL
= 5 -
MIT_CONSTANT
= 6 -
MIT_FGM
= 7 -
MIT_FGMMAPRUN
= 8 -
MIT_FGMMANUSCRIPT = 9 -
MIT_FGMFINAL
= 10 -
MIT_FGMCONSTANT
= 11 -
MIT_FGMSPECIAL
= 12 -
" "
PIK_SPACE
= 1 -
PIK_AERO
= 2 -
PIK_PHOTOGRAM
= 3 -
-
SG_FGKSCALEMLN
=1
SG_FGKSCALE500
=2
SG_FGKSCALE200
=3
SG_FGKSCALE100
=4
SG_FGKSCALE50
=5
SG_FGKSCALE25
=6
SG_FGKSCALE10
=7
-
SO_FGEOSCALE10MLN = 1
SO_FGEOSCALE5MLN
=2
SO_FGEOSCALE2MLN
=3
SO_FGEOSCALEMLN
=4
SO_FGEOSCALE500
=5

SA_FARSCALE4MLN
=1
SA_FARSCALE2MLN
=2

SP_FCPSCALE25
=1
SP_FCPSCALE10
=2

TVT_COUNTMAPTYPE
= 10 -
TVT_COUNTUNIT
= 12 -
TVT_COUNTELL
= 10 -
TVT_COUNTHEIGHT
= 9 -
TVT_COUNTCOORD
= 8 -

236

TVT_COUNTPROJ
= 17 -
TVT_COUNTMAPINITKIND = 5 -
TVT_COUNTMAPINITTYPE = 13 -
TVT_COUNTPHOTO
= 4 -
TVT_COUNTFRAME
= 5 -

KM_IDDOUBLE2 = $7FFC7FFC -
KM_IDDOUBLE3 = $7FF87FF8 -

KM_IDBAD
= $7FF87FF7 -
11
KM_IDFLOAT2 = $7FFD7FFD -
KM_IDSHORT3 = $7FFB7FFB -
KM_IDLONG3
= $7FFA7FFA -
KM_IDFLOAT3 = $7FF97FF9 -

OL_LINE
= 0 -
OL_SQUARE
= 1 -
OL_MARK
= 2 -
OL_TEXT
= 3 -
OL_VECTOR
= 4 -
OL_PATTERN
= 5 -


TMAPDFRAME
TPPLACE
TTASKPARMEX

TMAPDFRAME
().
TMAPDFRAME = packed record
X1:double;
Y1:double;
X2:double;
Y2:double;
end;
(X1,Y1) ;
(X2,Y2) .

(. ). ,
X , Y ,
X , Y .
TPPLACE

TPPLACE = (PP_MAP, PP_PICTURE, PP_PLANE, PP_GEO);
PP_MAP
-
PP_PICTURE
-
PP_PLANE
-
PP_GEO
-
TTASKPARMEX

TTASKPARMEX = packed record
Language
:
longint;
Resource
:
longint;
HelpName
:
GtkPChar;
IniName
:
GtkPChar;
PathShell
:
GtkPChar;
Handle
:
HWND;
DocHandle
:
HWND;
StayOnTop
:
longint;
end;
PTASKPARMEX = ^TTASKPARMEX;
Language
- (1 ENGLISH, 2 - RUSSIAN, ...)
Resource
-
HelpName
-
IniName
- ".ini"
PathShell
- (exe,dll,...)
ApplicationName -
Handle
-
DocHandle
-
StayOnTop
- StayOnTop

Copyright Panorama Group 2012


www.gisinfo.ru
e-mail: panorama@gisinfo.ru