<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear all,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Apologies if this has been covered elsewhere  but I am new to PostGIS and need to resolve this, hopefully simple issue.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am trying to get raster images into PostGIS (this is version 2 sitting on top of Postgres 9.1 under windows).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I run the command: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C:\tmp>raster2pgsql –I –C –r *.tif –F public.blockedtif  >blocktif.sql<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Followed by:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C:\tmp>psql –U postgres –d Testing –f blocktif.sql<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>This writes the table (blockedtif) into the public schema of Testing and there is a rast column (although it appears empty, but the table size says otherwise – so I am assuming is normal?).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>When I issue the command:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C:\tmp> gdalinfo “PG:host=localhost port 5432 dbname=Testing user=postgres password=******* schema=public table=blockedtif”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I keep getting the error ERROR 1: Sorry, but table blockedtif doesn’t seem to have regular blocking arrangement…..<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>As I am specifying the Constraint –r (which can be confirmed in the dbase  as enforce_regular_blocking_rast) I do not understand this error. I have tried this with the Kauai.bill file used in the postgis book with the same error.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am not entirely certain what to do next as I need to be able to export the rasters from the dbase as well.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any suggestions would be appreciated. If I have been an idiot (entirely likely) do not be afraid to tell me – I have broad shoulders!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Darrel<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>