PostGIS Raster: Porovnání verzí
Řádek 30: | Řádek 30: | ||
<pre> | <pre> | ||
st_srid | 2065 | st_srid | 2065 | ||
st_numbands | | st_numbands | 1 | ||
st_bandpixeltype | | st_bandpixeltype | 16BUI | ||
st_width | 7881 | st_width | 7881 | ||
st_height | 3246 | st_height | 3246 | ||
st_pixelwidth | | st_pixelwidth | 59.9999373525213 | ||
st_pixelheight | | st_pixelheight | 89.991627410955 | ||
st_georeference | | st_georeference | 59.9999373525 | ||
: 0.0000000000 | : 0.0000000000 | ||
: 0.0000000000 | : 0.0000000000 | ||
: -89.9916274109 | |||
: -904259.0558398400 | |||
: -935192.9920546100 | |||
</pre> | </pre> | ||
Verze z 4. 4. 2012, 08:08
PostGIS Raster je rozšíření pro PostGIS umožňující uložení, manipulaci, zpracování a dotazování rastrových dat v prostředí PostGIS/PostgreSQL.
Více přednášky Úvod do zpracování prostorových dat.
Poznámky
Načtení rozšíření PostGIS Raster do dané databáze.
psql -d pgis_student -f /usr/share/postgresql/<verze>/contrib/rtpostgis.sql
Stažení testovacích dat.
wget http://geo.fsv.cvut.cz/~landa/vyuka/postgis/dem.tif
Import dat do databáze.
raster2pgsql -I -s 2065 dem.tif | psql pgis_student
Příklad jednoduchého dotazu.
SELECT ST_SRID(rast), ST_NumBands(rast), ST_BandPixelType(rast, 1),
ST_Width(rast), ST_Height(rast), ST_PixelWidth(rast),
ST_PixelHeight(rast), ST_GeoReference(rast)
FROM dem;
st_srid | 2065 st_numbands | 1 st_bandpixeltype | 16BUI st_width | 7881 st_height | 3246 st_pixelwidth | 59.9999373525213 st_pixelheight | 89.991627410955 st_georeference | 59.9999373525 : 0.0000000000 : 0.0000000000 : -89.9916274109 : -904259.0558398400 : -935192.9920546100