User Tools

Site Tools


api:dk11:delphi:fmx.gisviewerwnd.tgis_viewerwnd.setcsbywktfile_string

Table of Contents



TGIS_ViewerWnd.SetCSByWKTFile method

DK for Delphi | FMX.GisViewerWnd.TGIS_ViewerWnd.SetCSByWKTFile | Constructors | Methods | Properties | Events

Sets the coordinate system from a file containing a WKT (Well-Known Text) string with a GEOGCS or PROJCS definition. If the file does not exist or the WKT string is empty, the coordinate system is turned off.

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

Syntax

Implements IGIS_Viewer.SetCSByWKTFile.

// Delphi
public
  procedure SetCSByWKTFile(
    const _path : String
  );
// C++ Builder
public:
  void SetCSByWKTFile(
    const UnicodeString _path
  );

Parameters

Name Type Description
_path String Path to the file with the WKT (Well-Known Text) string, for example a Shapefile .PRJ file.

Remarks

All layers must have a proper coordinate system. Otherwise the coordinate system will be turned off.

2026/08/30 01:47

Page Tools