User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_shape.distance_tgis_point_double

Table of Contents

TGIS_Shape.Distance method

DK11 for Python | tatukgis.pdk.TGIS_Shape.Distance | Constructors | Methods | Properties

Calculate planar distance between a point and the shape.

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

Syntax

# Python
def Distance(
  self,
  _ptg: TGIS_Point,
  _prec: float
) -> float: 

Parameters

Name Type Description
_ptg TGIS_Point reference point
_prec float precision /not longer distance than/; point inside the polygon is always not greater then _prec; if _prec less than 0, then being outside/inside polygon means the same;

Result

Type Description
float Distance between shapes in map units.
2023/08/09 01:59

Page Tools