开发工具:
文件大小: 2mb
下载次数: 0
上传时间: 2019-08-10
详细说明:NULL
博文链接:https://flyqantas.iteye.com/blog/2216451Georeferenced, Multiband,
Multiresolution and Tiled Coverages
Each raster/tile is georeferenced upperLeftx
upperLeftY
Skew X
scaleX
Supports rotation( or skew)
skew
Supports multiple bands with different
pixeltypes in the same raster
scalbY
1BB, 8BSI, 8BUL, 16BSI, 16BUI, 32BSI, 32BUI, 32BF, 64BF
One nodata value per band
width
Tiled indexed
e.g. SRTM Coverage for Canada
No real limit on size
1 GB per tile, 32 TB per coverage(table)
Rasters are compressed (by PostgreSQL)
Supports irregularly tiled overlapping coverages
Other resolutions(or overviews)are stored in sister tables
List of raster columns available in a raster columns table similar to
the geometry_ columns table
Supports Many Raster Arrangements
missing
mIssing
tile
overlaps
smaller
same
tiles
size tiles
a)warehouse of untiled
irregularly tiled raster
regularly tiled raster
and unrelated images
coverage(36 tiles
coverage(36 tiles)
(4 images)
Table 1
日日
■■
empty space
Table
2
d)rectangular regularly
f rasterized geometries
tiled raster coverage
e)tiled images (2 tables
coverage 9 lines in the
(54 tiles
of 54 tiles)
table)
What You can Do now?
Store and manage rasters in the database
Batch import rasters
raster2pgsql py -r"c:/temp/mytiffolder/*. tif -t mytable -S 4326
-k 50x50- psql -d testdb
Get and set the raster properties
Upper left corner coordinates transformation parameters
srid number of bands
Get and set band properties
Pixel type nodata value
Reproject raster(ST_Transform)
ST Resample(raster), ST_ Rescale(, ST Snap ToGrido
Convert a geometry to a raster (sT AsRaster)
Convert a raster to a set of geometries-values
(ST DumpAsPolygons)
What You can do now?
Dump rasters from the database
With the 'PostGisRaster'GDAL driver
Developed and maintained by Jorge Arevalo
Read only, optimization in progress
GDAL
The write part is still to do(by you?)
Two modes
1. ONE RASTER PER ROW
2 ONE RASTER PER TABLE
What You can do now?
Get raster statistics
ST_ SummaryStats(raster)
Return a set of(min, max, sum, mean, stddev, count (of
withdata pixels)records
10 seconds for one SRTM tile of 3600 x 3600 pixels, 70MB
ST_ Histogram(raster, bin, widthl D)
Return a set of (min, max, count, percent) records for an array
of bins
ST Quantile(raster, quantiles[ l)
Return a set of values for an array of quantile
ST Value Count(raster, values D
Return the frequency for an array of value
What You can do now?
Display rasters
QGis plugin by Mauricio de paulo
mauriciodevgmail.com)
gvsIG plugin by Nacho Brodin (brodinprodevelop. es)
MapServer through GDAL
Normally any software using GDaL to read raster and allowing
passing database connection parameters to GDAL
Display a vectorization of the raster
OpenJump
SELECT ST_ AsBinary ((sT_ BumpAs Polygons(rast).geom
(ST DumpAs Polygonsrast)). val
FROM srtm tiled Where rid=1869
ArcGIS 10
Add Query Layer (same as OpenJump but without ST_ AsBinaryo)
Any software displaying vector PostGis queries
What You can do now?
Edit and compute new rasters
ST Setvalue( of a pixel
ST Reclass( a raster
ST_ MapAlgebra(raster, band
420
6 null null
expression,
1-42
9 null
nodatavalueexpr,
201
8 null null
pixeltype
Expressions are evaluated by the PostgresQL parser
You can use any complex SQL expression
e.g. 'CASE WHEN rast <0 THEN rast+10 ELSE NULL END
You can provide a nodatavalueexpr to handle source nodata
values
What You can Do Now?
Convert rasters to any GDAL format in SQL.
■■口
Get the list of GdaL drivers available sT GDALDrivers)
Convert to any of the available format ( ST_ ASGDALRaster)
SELECT ST ASGDALRaster(rast, USGSDEM)
FROM Srtm 22 03
ST ASTIFFO, ST ASJPEGO, ST ASPNGO
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.