User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.cs

Table of Contents

TGIS_Viewer.CS property

DK for Delphi | GisViewer.TGIS_Viewer.CS | Constructors | Fields | Methods | Properties | Events | Events

Coordinate system assigned to the viewer. If set to nil, the coordinate system is turned off. The default is turned off.

Available also on: .NET | Java | ActiveX | Python.

Syntax

// Delphi
public
  property CS : TGIS_CSCoordinateSystem read write;
// C++ Builder
public:
  __property TGIS_CSCoordinateSystem* CS = {read, write};

Value

Remarks

USAGE: Set global coordinate system for all layers. Essential for proper coordinate transformations and accurate geographic representation. All layers must have proper CS; otherwise turned off.

cs = CreateCoordinateSystem(3857)
gis.CS = cs
gis.Reposition()
All layers must have a proper coordinate system. Otherwise the coordinate system will be turned off.

USAGE: Set/get map coordinate system. Controls projection and coordinate handling for all layers. Affects distance, area, and coordinate calculations.

cs = TGIS_CSFactory.CreateWithWKT(wkt_string)
gis.CS = cs

References

2026/09/20 23:49

Page Tools