SpatialLines-class

0th

Percentile

a class for spatial lines

a class that holds spatial lines

Keywords
classes
Note

rbind calls the function SpatialLines, where it is checked that all IDs are unique. If rbind-ing SpatialLines without unique IDs, it is possible to set the argument makeUniqueIDs = TRUE, although it is preferred to change these explicitly with spChFIDs.

Objects from the Class

hold a list of Lines objects; each Lines object holds a list of Line (line) objects.

Extends

Class "Spatial", directly.

See Also

Line-class, Lines-class

Aliases
  • SpatialLines-class
  • [,SpatialLines-method
  • plot,SpatialLines,missing-method
  • summary,SpatialLines-method
  • rbind.SpatialLines
  • coerce,SpatialLines,SpatialPoints-method
  • coerce,SpatialLines,SpatialPointsDataFrame-method
  • coerce,Lines,SpatialPoints-method
  • row.names.SpatialLines
Examples
# from the sp vignette:
l1 = cbind(c(1,2,3),c(3,2,2))
l1a = cbind(l1[,1]+.05,l1[,2]+.05)
l2 = cbind(c(1,2,3),c(1,1.5,1))
Sl1 = Line(l1)
Sl1a = Line(l1a)
Sl2 = Line(l2)
S1 = Lines(list(Sl1, Sl1a), ID="a")
S2 = Lines(list(Sl2), ID="b")
Sl = SpatialLines(list(S1,S2))
summary(Sl)
plot(Sl, col = c("red", "blue"))
Documentation reproduced from package sp, version 0.9-91, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.