Skip to main content

Distance to Geometry

Distance from each row's point to a line, polygon or set of points: zero inside a polygon.

Syntax​

{ "id": "n1", "op": "geo-distance", "name": "geo-distance", "x": 0, "y": 0, "params": {} }

An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out".

Inputs​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
geometrycode"LINESTRING(-74.02 40.70, -73.99 40.73, -73.97 40.76)"
unitsmenu"m"m, km
namestring"dist"
lngexpr"lng"
latexpr"lat"

Outputs​

PortType
outtable

Details​

  • Category: Rows
  • Operator: geo-distance