User Tools

Site Tools


api:dk11:delphi:gisviewer.tgis_viewer.screentomap_tpoint



TGIS_Viewer.ScreenToMap method

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

Converts point coordinates from screen coordinates to map coordinates.

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

Syntax

Implements IGIS_Viewer.ScreenToMap.

// Delphi
public
  function ScreenToMap(
    const _pt : TPoint
  ) : TGIS_Point;
// C++ Builder
public:
  TGIS_Point* ScreenToMap(
    TPoint* const _pt
  );

Parameters

Name Type Description
_pt TPoint Coordinate in screen units.

Result

Type Description
TGIS_Point Map coordinates converted from the screen coordinate.

Remarks

USAGE: Convert a screen click position to map coordinates for editing or spatial queries.

map_pt = GIS.ScreenToMap(screen_point)

References

2026/10/31 23:01

Page Tools