User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.centroidscope_widestring_itgis_point

Table of Contents

ITGIS_LayerVector.CentroidScope method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.CentroidScope | Methods | Properties

Calculates a centroid for a scope.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public ITGIS_Point CentroidScope(
  WideString _query,
  ITGIS_Point _centroid
);
' VisualBasic
Public Function CentroidScope(
  ByVal _query As WideString,
  ByVal _centroid As ITGIS_Point
) As ITGIS_Point
// Oxygene
public
  function CentroidScope(
    _query : WideString;
    _centroid : ITGIS_Point
  ) : ITGIS_Point;

Parameters

Name Type Description
_query WideString Query closely mimics the SQL WHERE clause
_centroid ITGIS_Point Current centroid - to be returned if not found

Result

Type Description
ITGIS_Point Found centroid or untouched _centroid value.

Remarks

Use this method to calculate a centroid for a scope. It, in fact, finds the centroid for the first shape.

When using this operation, never call any function which uses FindFirst..FindNext (i.e., any function which iterates through the shapes using it). So never use it inside an operation like Locate, PaintScope, etc.

2020/05/07 01:04