Description Usage Arguments Value See Also
Import a raster into the database
1 2 3 4 5 6 7 8 9 10 | pg_load_raster(
dbsettings,
r,
epsg,
tablename,
replace = FALSE,
tilew = NULL,
tileh = NULL,
flags = "-M -Y"
)
|
dbsettings |
A named list of database connection settings returned
by |
r |
The raster to import. |
epsg |
EPSG code for the raster projection. |
tablename |
Name of the raster table in the form |
replace |
If |
tilew |
Width (pixels) of raster tiles as stored in the database
table. Refer to PostGIS documentation for an explanation. If |
tileh |
height (pixels) of raster tiles as stored in the database
table. Refer to PostGIS documentation for an explanation. If |
flags |
Other options to be passed to the PostgreSQL raster2pgsql
program. Default is |
label |
A label to use to construct a file name for writing the raster to disk prior to import. This will be stored in the 'filename' column of the raster table. |
The integer rid
value of the record(s) for the imported
raster.
db_connect_postgis
db_create_postgis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.