<div dir="ltr">Hello,<div><br></div><div>I am having a problem placing a raster into postgresql. The raster is a 12 band raster approximately 40gig.</div><div><br></div><div>The following command is runs successfully:</div><div>raster2pgsql -C -x -I -Y -F -s 6842 -t 250x250 modis_igbp_stack.tif gis_rasters.modis_IGBP_2012 | gzip -9 > modis_IGBP_2012.sql.gz<br></div><div><br></div><div>However, we have an error when trying to copy the raster into pgsql</div><div>zcat modis_IGBP_2012.sql.gz | sed -e '/^BEGIN/ d' -e '/^CREATE TABLE/ d' -e '/^COPY/ d' -e '/^\\\./ d' -e '/^END/ d' | gzip -2 > copy/MODIS_IGBP.copy.gz<br></div><div><br></div><div>This is the error that we receive</div><div><div style="font-size:13px;margin:0px;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)">+ Loading file modis_igbp for MODIS: Exception in thread "RubyThread-5: /scratch/terrapop-v1/terrapop-staging2/periwinkle/lib/tasks/terrapop_gis_raster.rake:38" org.postgresql.util.PSQLException: ERROR: rt_raster_from_hexwkb: Raster HEXWKB input must have an even number of characters</div><div style="font-size:13px;margin:0px;font-family:'Andale Mono';color:rgb(41,249,20);background-color:rgb(0,0,0)"> Where: COPY modis_igbp, line 59859, column rast: "CREATE INDEX "modis_igbp_2012_rast_gist" ON "gis_rasters"."modis_igbp_2012" USING gist (st_convexhul..."</div><div><br></div>-- <br><div dir="ltr">David Haynes, Ph.D.<div>Research Associate Terra Populous</div><div>Minnesota Population Center</div></div>
</div></div>