[mapserver-users] Raster Data from PostGIS

Stephen Woodbridge woodbri at swoodbridge.com
Mon Nov 29 10:45:32 EST 2010


Florencia,

I have not tried to do this and I'm not sure it is even possible, but 
you might have some luck using a GDAL connection to pull your postgres 
raster data into mapserver. If you get this to work post a "how to" to 
the list.

Thanks,
   -Steve W

On 11/29/2010 10:34 AM, Carlos Ruiz wrote:
> 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
> <http://Nabble.com>.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org <mailto:mapserver-users at lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list