DK11 for Python | tatukgis.pdk.TGIS_Shape.SetPosition | Constructors | Methods | Properties
Move the whole shape.
# Python def SetPosition( self, _ptg: TGIS_Point, _layer: TGIS_LayerVector, _prec: float ) -> None:
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 | float | snapping precision; only points closer to _ptg than _prec can be found ; |
Use this method to move the whole shape. Reference point is the same as Centroid.