sqli2map {SQLiteMap}R Documentation

Read SQLite geometry table into Map object

Description

From SQLite database transforms the source geometries in WKT form to Map object.

Usage

sqli2map(geoms, gcol)

Arguments

geoms table contains the WKT geometry field
gcol the geometry field of geoms table

Value

Returns Map object depending on the source geometry type.

Author(s)

Norbert Solymosi <solymosi.norbert@gmail.com>

See Also

sqli2sp, sqli.dump, maptools package

Examples

sqli.db <- system.file("sqlimaps/sids.db3", package="SQLiteMap")
drv <- dbDriver("SQLite")
con <- dbConnect(drv, dbname = sqli.db)

sql <- 'select * from sidsmap order by gid'
rs <- dbSendQuery(con, sql)
geom.tab <- fetch(rs, n = -1)

sids.map <- sqli2map(geoms=geom.tab, gcol='geom')

[Package SQLiteMap version 0.3 Index]