Postgres Raster image display
Ryan Ollerenshaw
ryanollerenshaw at GMAIL.COM
Mon Oct 22 12:37:28 PDT 2007
How can i use a Postgres database to display raster images with
Mapserver? There are lots of examples on display features this way
and using a gdaltindex to create a shapefile but i cant find any that
talk about using a database to store raster images. Here is what i am
currently trying:
LAYER
NAME "stereo_simp"
TYPE RASTER
PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit
STATUS on
CONNECTION "host=localhost dbname=test user=postgres"
CONNECTIONTYPE POSTGIS
DATA "location FROM stereo"
TILEINDEX "stereo" #the table name
TILEITEM "location" #column that contains the path to the image
END
if i just try and display the image directly it works just fine:
LAYER
NAME "stereo_simp"
TYPE RASTER
PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit
STATUS on
DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif"
END
Thank you for your time,
-Ryan
More information about the MapServer-users
mailing list