Changes between Version 5 and Version 6 of frmts_wtkraster.html


Ignore:
Timestamp:
Sep 20, 2009, 8:43:00 AM (15 years ago)
Author:
jorgearevalo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • frmts_wtkraster.html

    v5 v6  
    7676'''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.
    7777
    78 Example 1:
     78'''Example 1''':
    7979
    8080Load [http://www.gis4free.org/gdal_wktraster_autotest/autotest/gdrivers/data/utm.tif this one-band grayscale image] (utm.tif) to PostGIS using loader script:
     
    9292The ''wktraster_database'' must be a PostgreSQL database with PostGIS and WKT Raster extensions enabled.
    9393
    94 Example 2:
     94'''Example 2''':
    9595
    9696Load [http://www.gis4free.org/gdal_wktraster_autotest/autotest/gdrivers/data/small_world.tif this RGB image] (small_world.tif) to PostGIS using loader script:
     
    107107
    108108
    109 Example 3:
     109'''Example 3''':
    110110
    111111Using the first image (utm.tif), let's create an overview of the image of half size in PostGIS.
    112112
    113113{{{
    114 >$ python gdal2wktraster.py -r utm.tif -t utm -l 2 -V -k 100x100 -o utm.sql -s 26711 -I -M
     114>$ python gdal2wktraster.py -r utm.tif -t utm -l 2 -V -k 100x100 -o utm_ov2.sql -s 26711 -I -M
    115115}}}
    116116
     
    118118
    119119The '''-l 2''' flag represents the overview level. 2 means an overview of the 50% of the original image size.
     120
     121As usual, to execute the generated SQL code, run as '''postgres''' this command:
     122
     123{{{
     124>$ psql -d <wktraster_database> -f utm_ov2.sql
     125}}}
    120126
    121127== '''3.2 - Reading data''' ==