User Tools

Site Tools


api:dk11:delphi:gislayervector.gisispointinsidepolygon_tgis_point_tgis_shapepolygon_integer

Table of Contents

GisIsPointInsidePolygon(TGIS_Point; TGIS_ShapePolygon; Integer) method

DK11 for Delphi | GisLayerVector.GisIsPointInsidePolygon | Overloads | Methods | Classes | Prototypes

Test if a given point is inside a given polygon.

Syntax

// Delphi
function GisIsPointInsidePolygon(
  const _ptg : TGIS_Point;
  const _shape : TGIS_ShapePolygon;
  const _part : Integer
) : Boolean; overload;
// C++ Builder
extern DELPHI_PACKAGE bool GisIsPointInsidePolygon(
  TGIS_Point* const _ptg,
  TGIS_ShapePolygon* const _shape,
  const int _part
) /* overload */;

Parameters

Name Type Description
_ptg TGIS_Point point to test
_shape TGIS_ShapePolygon polygon to test
_part Integer if >= 0 then calculation done only for selected part ;

Result

Type Description
Boolean True if relation is true.

Remarks

See GisIsPointInsideExtent for example.

2018/03/30 17:16