Skip to main content
Question

writing raster to postgis

  • May 11, 2015
  • 2 replies
  • 36 views

bubblebeb
Contributor
Forum|alt.badge.img+6
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. 
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • May 11, 2015
Hi

 

 

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

 

 

David

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • May 11, 2015
If the palette contains RGB values you can use the RasterPaletteResolver prior writing to postgis