Changes between Version 5 and Version 6 of frmts_wtkraster.html
- Timestamp:
- Sep 20, 2009, 8:43:00 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
frmts_wtkraster.html
v5 v6 76 76 '''Important:''' If you want to load raster data with out-db storage system, you'll have to apply [http://trac.osgeo.org/postgis/ticket/227 this patch] to the gdal2wktraster script. Please, take into account that this patch has not been included to the gdal2wktraster version on official WKT Raster extension. It's only a beta version. 77 77 78 Example 1:78 '''Example 1''': 79 79 80 80 Load [http://www.gis4free.org/gdal_wktraster_autotest/autotest/gdrivers/data/utm.tif this one-band grayscale image] (utm.tif) to PostGIS using loader script: … … 92 92 The ''wktraster_database'' must be a PostgreSQL database with PostGIS and WKT Raster extensions enabled. 93 93 94 Example 2:94 '''Example 2''': 95 95 96 96 Load [http://www.gis4free.org/gdal_wktraster_autotest/autotest/gdrivers/data/small_world.tif this RGB image] (small_world.tif) to PostGIS using loader script: … … 107 107 108 108 109 Example 3:109 '''Example 3''': 110 110 111 111 Using the first image (utm.tif), let's create an overview of the image of half size in PostGIS. 112 112 113 113 {{{ 114 >$ python gdal2wktraster.py -r utm.tif -t utm -l 2 -V -k 100x100 -o utm .sql -s 26711 -I -M114 >$ python gdal2wktraster.py -r utm.tif -t utm -l 2 -V -k 100x100 -o utm_ov2.sql -s 26711 -I -M 115 115 }}} 116 116 … … 118 118 119 119 The '''-l 2''' flag represents the overview level. 2 means an overview of the 50% of the original image size. 120 121 As usual, to execute the generated SQL code, run as '''postgres''' this command: 122 123 {{{ 124 >$ psql -d <wktraster_database> -f utm_ov2.sql 125 }}} 120 126 121 127 == '''3.2 - Reading data''' ==