User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_shape.setposition_itgis_point_itgis_layervector_double

Table of Contents

ITGIS_Shape.SetPosition method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_Shape.SetPosition | Methods | Properties

Move the whole shape.

Available also on: Delphi | .NET | Java.

Syntax

// C#
public void SetPosition(
  ITGIS_Point _ptg,
  ITGIS_LayerVector _layer,
  double _prec
);
' VisualBasic
Public Sub SetPosition(
  ByVal _ptg As ITGIS_Point,
  ByVal _layer As ITGIS_LayerVector,
  ByVal _prec As Double
)
// Oxygene
public
  procedure SetPosition(
    _ptg : ITGIS_Point;
    _layer : ITGIS_LayerVector;
    _prec : Double
  );

Parameters

Name Type Description
_ptg ITGIS_Point point to which we are moving ;
_layer ITGIS_LayerVector snapping layer; if nil, a shape will not be snapped; just perfect for GPS snap-to-road function
_prec double
Double
snapping precision; only points closer to _ptg than _prec can be found ;

Remarks

Use this method to move the whole shape. Reference point is the same as Centroid.

References

2020/05/28 09:04

Page Tools