sfg_linestring | R Documentation |
constructs sfg LINESTRING object
sfg_linestring(obj, x = NULL, y = NULL, z = NULL, m = NULL)
obj |
matrix or data.frame |
x |
x geometry column |
y |
y geometry column |
z |
z geometry column |
m |
m geometry column |
sfg
object of LINESTRING geometry
sfg_linestring( 1:2 )
sfg_linestring( 1:3 )
sfg_linestring( 1:4 )
sfg_linestring( matrix( 1:24, ncol = 2 ) )
sfg_linestring( matrix( 1:24, ncol = 3 ) )
sfg_linestring( matrix( 1:24, ncol = 4 ) )
sfg_linestring( matrix( 1:24, ncol = 4 ), x = 3, y = 2, z = 3)
sfg_linestring( data.frame( x = 1:10, y = 11:20 ) )
sfg_linestring( data.frame( x = 1:10, y = 11:20, z = 21:30 ) )
sfg_linestring( data.frame( x = 1:10, y = 11:20, z = 21:30 ), x = "x", y = "z" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.