User Tools

Site Tools


api:dk11:delphi:gislayer.tgis_layer.unproject_tgis_point

Table of Contents

TGIS_Layer.Unproject method

DK11 for Delphi | GisLayer.TGIS_Layer.Unproject | Constructors | Fields | Methods | Properties | Events

Apply reverse projection (recover from projection) on the single point.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  function Unproject(
    const _ptg : TGIS_Point
  ) : TGIS_Point; virtual;
// C++ Builder
public:
  virtual TGIS_Point* Unproject(
    TGIS_Point* const _ptg
  );

Parameters

Name Type Description
_ptg TGIS_Point point to be unprojected

Result

Type Description
TGIS_Point unprojected point

Example

Delphi

ptg.X := DegToRadians( 18 ) ;
ptg.Y := DegToRadians( 54 ) ;
 
GIS.CenterViewport( Layer.Unproject( ptg ) ) ;
2019/08/13 10:49