-
Notifications
You must be signed in to change notification settings - Fork 1
dist_info
Jip Claassens edited this page Oct 9, 2025
·
3 revisions
Network functions dist_info
- dist_info(arcs, points, [optional] maxSqrDist)
The dist_info(arcs, points) function is used to get the distance between the point from the points and the CutPoint on the arc/polygon outline from the arcs. This is the same as the dist attribute from the connect_info function.
The arcs should contain unique geometries. Use the unique function to make a domain unit with unique geometries.
- data items arcs and points with fpoint or dpoint value type
- data item arcs with composition type arc or polygon. Be aware that if you connect points to polygons, use a split_polygon to avoid connecting to segments that separate different rings (lakes or islands) in a polygon.
The values type of arcs and points must match.
attribute<float32> dist2road (location) := dist_info(road/geometry, location/geometry);
| road/geometry |
|---|
| {2 {399246, 112631}{398599, 111866}} |
| {3 {398599, 111866}{399495, 111924} {401801, 111524}} |
| {2 {401529, 114921}{398584, 114823}} |
domain road, nr of rows = 3
| location/geometry |
|---|
| {398600, 114903} |
| {398696, 111741} |
| {399138, 112601} |
| {399289, 114903} |
| {399476, 111803} |
| {401331, 115135} |
| {401729, 111353} |
| {401729, 112156} |
domain location, nr of rows = 8
| dist |
|---|
| 79.42 |
| 131.00 |
| 63.09 |
| 56.51 |
| 119.52 |
| 220.47 |
| 180.79 |
| 610.40 |
domain location, nr of rows = 8
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.