User Tools

Site Tools


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 | Python.


// 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
  function CentroidScope(
    _query : WideString;
    _centroid : ITGIS_Point
  ) : ITGIS_Point;


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


Type Description
ITGIS_Point Found centroid or untouched _centroid value.


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 etc.

2022/11/16 01:10

Page Tools