[mapserver-users] Raster Data from PostGIS

Carlos Ruiz boolean10001 at yahoo.com
Mon Nov 29 07:34:40 PST 2010


Florencia,

As far as I know, Mapserver only works with vectorial data on PostGIS. So having 
a kind of BLOB (bytea)
column doesn't work.

I guess you will have to had those TIF files as a file to be able to load it 
using a RASTER layer.

Cheers from México


IC Carlos Ruiz

From: florencia.bujan <florita026 at gmail.com>

To: mapserver-users at lists.osgeo.org
Sent: Mon, November 29, 2010 7:46:56 AM
Subject: [mapserver-users] Raster Data from PostGIS


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.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101129/75ee1798/attachment.htm>


More information about the MapServer-users mailing list