[mapserver-users] Raster Data from PostGIS

florencia.bujan florita026 at gmail.com
Mon Nov 29 08:46:56 EST 2010


Hi,

I have my data rasters (tif files) into my PostGIS database such as file. 
Any file into database is in "bytea" format.
I want to show this raster layer from PostGIS with mapserver. My "Raster
Table" structure and my .map code are:

TABLE rasters (
  id serial NOT NULL,
  nombre character varying(100),
  archivo_bytea bytea,
  mime character varying(100),
  size double precision
)

LAYER
            NAME 'Raster'
	    TYPE RASTER
	    CONNECTIONTYPE postgis
	    CONNECTION "user=postgres password=... dbname=... host=..."
	    DATA "bytea FROM rasters"
	    STATUS OFF
	    OFFSITE 0 0 0
	    TRANSPARENCY 100
END

Thanks a lot.
Regards.
Florencia
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Raster-Data-from-PostGIS-tp5784362p5784362.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list