PostGIS Raster Layer

Oct 30, 2013 at 7:50 PM
Is it possible to use a PostGIS Raster Table layer in SharpMap? Haven't seen any mention in any threads or a quick review of the code. I am using SharpMap in a Winform if that helps.
Coordinator
Nov 3, 2013 at 6:23 PM
have you had a look at http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html?

If I understand that correctly you have to pass something like the following as filename:
var gdal = new GdalRasterLayer("PG\":host='<host>' port:'<port>' dbname='<dbname>' user='<user>' password='<password>' [schema='<schema>'] [table='<raster_table>'] [where='<sql_where>'] [mode='<working_mode>']\"");
Hth FObermaier
Nov 5, 2013 at 11:48 AM
Thanks, I'll look into it. I had to stop experimenting and do a project. As soon as I have some time I will try this.