User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_shape.setposition_tgis_point_tgis_layervector_double

Table of Contents

TGIS_Shape.SetPosition method

DK11 for .NET | TatukGIS.NDK.TGIS_Shape.SetPosition | Constructors | Fields | Methods | Properties

Move the whole shape.

Available also on: Delphi | Java | ActiveX | Python.

Syntax

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

Parameters

Name Type Description
_ptg TGIS_Point point to which we are moving ;
_layer TGIS_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

2022/11/16 01:35

Page Tools