User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.setcsbywktfile_string

Table of Contents

IGIS_Viewer.SetCSByWKTFile method

DK for Delphi | GisInterfaces.IGIS_Viewer.SetCSByWKTFile | Methods | Properties

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 | Java | ActiveX | Python.

Syntax

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

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:55

Page Tools