<div>ok, well that may be the issue, I was trying to union a rasterised table of adjacent polygons. So will the corners may touch I doubt they overlap, but here is the output of st_metadata for two of the polygons that are adjacent:</div>

<div><br></div><div><div>Clarendon<span class="" style="white-space:pre">       </span>698486.043582936<span class="" style="white-space:pre">  </span>617384.893096908<span class="" style="white-space:pre">  </span>153<span class="" style="white-space:pre">       </span>229<span class="" style="white-space:pre">       </span>250<span class="" style="white-space:pre">       </span>250<span class="" style="white-space:pre">       </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>3448<span class="" style="white-space:pre">      </span>4</div>

<div>Manchester<span class="" style="white-space:pre">  </span>683177.872077352<span class="" style="white-space:pre">  </span>632613.85425893<span class="" style="white-space:pre">   </span>117<span class="" style="white-space:pre">       </span>182<span class="" style="white-space:pre">       </span>250<span class="" style="white-space:pre">       </span>250<span class="" style="white-space:pre">       </span>0<span class="" style="white-space:pre"> </span>0<span class="" style="white-space:pre"> </span>3448<span class="" style="white-space:pre">      </span>4</div>

</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 7, 2012 at 6:01 PM, Pierre Racine <span dir="ltr"><<a href="mailto:Pierre.Racine@sbf.ulaval.ca" target="_blank">Pierre.Racine@sbf.ulaval.ca</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">By "on the same grid" I mean " at least one of any of the four corners of any pixel of one raster falls on any corner of the grid of the other raster" as stated in the ST_SameAlignment() doc.<br>


<br>
What is (are) the pixel size?<br>
<div class="im HOEnZb"><br>
> -----Original Message-----<br>
> From: <a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:postgis-users-">postgis-users-</a><br>
> <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Rhys A.D. Stewart<br>
</div><div class="im HOEnZb">> Sent: Wednesday, November 07, 2012 5:51 PM<br>
> To: PostGIS Users Discussion<br>
</div><div class="HOEnZb"><div class="h5">> Subject: Re: [postgis-users] st_union(rast) returning null because of non<br>
> alignment,<br>
><br>
> Pierre,<br>
><br>
> If by on the same grid you mean equal, then no hey are not. Here they are.<br>
><br>
><br>
> 1: POLYGON((766242.610093044 641994.463110607,779742.610093044<br>
> 641994.463110607,779742.610093044 648494.463110607,766242.610093044<br>
> 648494.463110607,766242.610093044 641994.463110607))<br>
> 2:POLYGON((698486.043582936 617384.893096908,736736.043582936<br>
> 617384.893096908,736736.043582936 674634.893096908,698486.043582936<br>
> 674634.893096908,698486.043582936 617384.893096908))<br>
><br>
> Thanks,<br>
><br>
> Rhys<br>
><br>
><br>
> On Wed, Nov 7, 2012 at 5:40 PM, Pierre Racine <<a href="mailto:Pierre.Racine@sbf.ulaval.ca">Pierre.Racine@sbf.ulaval.ca</a>><br>
> wrote:<br>
><br>
><br>
>       Hi Rhys,<br>
><br>
>       Both rasters must also have their upperlefx and upperlefty on the same<br>
> grid.<br>
><br>
>       Could you do:<br>
><br>
>       SELECT ST_AsText(ST_ConvexHull(rast))<br>
><br>
>       on both rasters and post the result here?<br>
><br>
>       Thanks,<br>
><br>
>       Pierre<br>
><br>
><br>
>       > -----Original Message-----<br>
>       > From: <a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:postgis-users-">postgis-users-</a><br>
>       > <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Rhys A.D. Stewart<br>
>       > Sent: Wednesday, November 07, 2012 5:33 PM<br>
>       > To: PostGIS Users Discussion<br>
>       > Subject: [postgis-users] st_union(rast) returning null because of non<br>
> alignment,<br>
>       ><br>
>       > Greetings,<br>
>       ><br>
>       > according to the trusty docs online two rasters are aligned when they<br>
> share the<br>
>       > same skew, scale and srid. Created a raster using st_asraster  and<br>
> according to<br>
>       > st_metadata scale, skew and srid are all equal. Howvere st_unon<br>
> complains<br>
>       > saying that 'The two rasters provided do not have the same alignment.<br>
>       > Returning NULL'<br>
>       ><br>
>       > I noticed that  ticket #1336 as possibly relating to my issue, but I'm not<br>
> entirely<br>
>       > sure. My posgis version is:<br>
>       > POSTGIS="2.0.0 r9605" GEOS="3.3.3-CAPI-1.7.4" PROJ="Rel. 4.8.0, 6<br>
> March<br>
>       > 2012" GDAL="GDAL 1.9.0, released 2011/12/29" LIBXML="2.7.8"<br>
>       > LIBJSON="UNKNOWN" TOPOLOGY RASTER<br>
>       ><br>
>       ><br>
>       > What am I missing or doing incorrectly?<br>
>       ><br>
>       > Regards,<br>
>       ><br>
>       > Rhys<br>
><br>
>       _______________________________________________<br>
>       postgis-users mailing list<br>
>       <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
>       <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
><br>
><br>
<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>