User Tools

Site Tools


api:dk11:java:tatukgis.jdk.tgis_shapepolygon.distance2partcs_tgis_point_double_integer_tgis_point

Table of Contents

TGIS_ShapePolygon.Distance2PartCS method

DK11 for Java | tatukgis.jdk.TGIS_ShapePolygon.Distance2PartCS | Constructors | Fields | Methods | Properties

Calculate the WGS84 distance between a point and a part in the current shape.

Available also on: Delphi | .NET.

Overrides TGIS_Shape.Distance2PartCS.

Syntax

// Java
public double Distance2PartCS(
  TGIS_Point _ptg,
  double _prec,
  int _part,
  /* ref */ @ValueTypeParameter VarParameter<TGIS_Point> _proj
);
// Oxygene
public
  function Distance2PartCS(
    _ptg : TGIS_Point;
    _prec : Double;
    _part : Integer;
    var _proj : TGIS_Point
  ) : Double; override;

Parameters

Name Type Description
_ptg TGIS_Point reference point
_prec double
Double
precision /not longer distance than/; point inside polygon is always not greater than _prec; if _prec less then 0 then being outside/inside polygon means the same;
_part int
Integer
part number to which the distance will be computed
_proj TGIS_Point point projected to a nearest element of the shape

Result

Type Description
double
Double
Distance in meters (if CS of layers are known).
2020/05/07 01:14

Page Tools