DK11 for Python | tatukgis.pdk.TGIS_Shape.Distance2PartCS | Constructors | Methods | Properties
Calculate the WGS84 distance between a point and a part in the current shape.
# Python def Distance2PartCS( self, _ptg: TGIS_Point, _prec: float, _part: int, _proj: VarParameter ) -> float:
Name | Type | Description |
---|---|---|
_ptg | TGIS_Point | reference point |
_prec | float | precision /not longer distance than/; point inside polygon is always not greater than _prec; if _prec less then 0 then being outside/inside polygon means the same; |
_part | int | part number to which the distance will be computed |
_proj | TGIS_Point | point projected to a nearest element of the shape |
Type | Description |
---|---|
float | Distance in meters (if CS of layers are known). |