<div dir="ltr">Hello,<div><br></div><div>I have a question about this memory error that I keep running up against. Trying to determine if there are ways around it. This project uses large world extent rasters were the spatial resolution of the datasets range from 30M to 10Km. The following query completes easily for any raster with a resolution of 1K or larger. However, I notice that once I use the raster (globcover) with a resolution of 300M I get this memory error.  "Dimensions requested exceed the maximum (65535 x 65535)"</div><div><br></div><div><a href="http://lists.osgeo.org/pipermail//postgis-users/2012-November/035744.html">http://lists.osgeo.org/pipermail//postgis-users/2012-November/035744.html</a><br></div><div><br></div><div>Reading from this ticket, I found can get the around the error by removing the union function. Is there a systematic way of determining when I will hit this limit. Also this spatial intersection is frequently used in our project as we are taking the geographic boundaries of all 50 US states.</div><div><br></div><div><br></div><div><div>select bound.gid, bound.label, ST_Union(ST_Clip(r.rast,bound.geog::geometry)) as rast</div><div>from gis_scratch.us_1960_2010_hflad_geo1a_us bound</div><div>inner join gis_rasters.globcover_2009 r on ST_Intersects(r.rast, bound.geog::geometry)</div><div>group by bound.gid, bound.label<br></div></div><div><br></div><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>