User Tools

Site Tools


Table of Contents

TGIS_Shape.AddPointBearing(Double; Double) method

DK11 for Delphi | GisLayerVector.TGIS_Shape.AddPointBearing | Overloads | Constructors | Fields | Methods | Properties

Add a point to the last part of the shape.

Available also on: .NET | Java | ActiveX.


// Delphi
  function AddPointBearing(
    const _bearing : Double;
    const _distance : Double
  ) : Boolean; overload; virtual;
// C++ Builder
  virtual bool AddPointBearing(
    const double _bearing,
    const double _distance
  ) /* overload */;


Name Type Description
_bearing Double bearing in radians
_distance Double distance in map units


Type Description
Boolean True, then function succeed.


If the _compass is True then the bearing will be calculated based on North. Otherwise the bearing is calculated as an angle between last vertex and new point. Shape must have at least one vertex (2 points) in a current part for non-compass computations and at least one point for compass computations. If point can not be added (because no vertex exist or an angle can not be calculated) then function return False.

2020/05/07 01:09

Page Tools