Description Usage Arguments Details Value Author(s) See Also Examples

Calculate the length of polylines found in a PolySet.

1 |

`polys` |
PolySet to use. |

`rollup` |
level of detail in the results; |

`close` |
Boolean value; if |

If `rollup`

equals `1`

, the results contain an entry for
each unique `PID`

only. Setting it to `3`

prevents roll-up,
and they contain an entry for each unique (`PID`

, `SID`

).

If the `projection`

attribute equals `"LL"`

, this routine uses
Great Circle distances to compute the surface length of each polyline.
In doing so, the algorithm simplifies Earth to a sphere.

If the `projection`

attribute equals `"UTM"`

or `1`

, this
routine uses Pythagoras' Theorem to calculate lengths.

PolyData with columns `PID`

, `SID`

(*may be missing*),
and `length`

. If `projection`

equals `"UTM"`

or
`"LL"`

, lengths are in kilometres. Otherwise, lengths are in the
same unit as the input PolySet.

Nicholas M. Boers, Associate Professor – Computer Science

MacEwan University, Edmonton AB

Last modified `Rd: 2013-04-10`

`calcArea`

,
`calcCentroid`

,
`calcMidRange`

,
`calcSummary`

,
`locatePolys`

.

1 2 3 4 5 6 7 |

```
sh: 1: cannot create /dev/null: Permission denied
-----------------------------------------------------------
PBS Mapping 2.70.4 -- Copyright (C) 2003-2018 Fisheries and Oceans Canada
PBS Mapping comes with ABSOLUTELY NO WARRANTY;
for details see the file COPYING.
This is free software, and you are welcome to redistribute
it under certain conditions, as outlined in the above file.
A complete user guide 'PBSmapping-UG.pdf' is located at
/usr/lib/R/site-library/PBSmapping/doc/PBSmapping-UG.pdf
Packaged on 2017-06-28
Pacific Biological Station, Nanaimo
All available PBS packages can be found at
https://github.com/pbs-software
To see demos, type '.PBSfigs()'.
-----------------------------------------------------------
PID length
1 33 2866.661
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.