| sqli2map {SQLiteMap} | R Documentation |
From SQLite database transforms the source geometries in WKT form to Map object.
sqli2map(geoms, gcol)
geoms |
table contains the WKT geometry field |
gcol |
the geometry field of geoms table |
Returns Map object depending on the source geometry type.
Norbert Solymosi <solymosi.norbert@gmail.com>
sqli2sp, sqli.dump, maptools package
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')