Question

writing raster to postgis


Badge +1
I am trying to write raster data to a postgis database. 

 

I have a postgis spatial database and want to load raster to it. So far I have a PostGIS Raster Writer and have created the database in Postgis. When I run it I get the error message below in the log file. 

 

 

2015-05-11 12:08:18| 1.4| 0.1|ERROR |POSTGIS_RASTER writer: This format cannot support palettes. Consider removing or resolving palettes that are attached to the raster 

 

 

Any ideas on how I can load raster into Postgis would be appreciated. 

2 replies

Userlevel 4
Hi

 

 

maybe try the RasterPaletteRemover? You might need to insert a RasterSelector first.

 

 

David
Badge +22
If the palette contains RGB values you can use the RasterPaletteResolver prior writing to postgis

Reply