DK11 for Python | tatukgis.pdk.TGIS_Shape.DistanceCS | Constructors | Methods | Properties
Calculate WGS84 distance between a point and the shape.
# Python def DistanceCS( self, _ptg: TGIS_Point, _prec: float ) -> float:
Name | Type | Description |
---|---|---|
_ptg | TGIS_Point | reference point |
_prec | float | precision /not longer distance than/; point inside the polygon is always not greater then _prec; if _prec less than 0, then being outside/inside polygon means the same; |
Type | Description |
---|---|
float | Distance between shapes in meters (if CS of layers are known). |