<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Hi All</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">I’ve a number of largish rasters that I’m wanting to tile to relatively small tiles, but I’m hitting the array limit on the add maximum extent constraint. </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">If the tile_size is 32x32 or 50x50 I get the error, but a tile size of 64x64 completes. </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">At 50x50 there are 13M rows and at 64x64 there are 8M</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">I’m wanting to use fairly small tiles as I am intending to version control the data at the tile level, and would prefer to keep the area that doesn’t change under control to a minimum.</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">I’m thinking that I might be able to get away with a parent child relationship, and that I may have to do that anyway, for performance, but I’m not sure what the effect of that will be on the extent constraint. </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Is there something else that I am doing wrong, or is there another way around this (I’ve not really looked at the component functions to see what they do)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">I’m running postgis 2.2.1 on postgres 9.5.1 on SL7.2 for my sins</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class="">select version();</div><div style="margin: 0px; line-height: normal;" class="">                                                 version                        </div><p style="margin: 0px; line-height: normal; min-height: 13px;" class="">                         <br class="webkit-block-placeholder"></p><div style="margin: 0px; line-height: normal;" class="">--------------------------------------------------------------------------------</div><div style="margin: 0px; line-height: normal;" class="">-------------------------</div><div style="margin: 0px; line-height: normal;" class=""> PostgreSQL 9.5.1 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (</div><div style="margin: 0px; line-height: normal;" class="">Red Hat 4.8.5-4), 64-bit</div><div style="margin: 0px; line-height: normal;" class="">(1 row)</div><div class=""><br class=""></div></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">select postgis_full_version();</div><div style="margin: 0px; line-height: normal;" class="">                                                                            post</div><div style="margin: 0px; line-height: normal;" class="">gis_full_version                                                                </div><p style="margin: 0px; line-height: normal; min-height: 13px;" class="">            <br class="webkit-block-placeholder"></p><div style="margin: 0px; line-height: normal;" class="">--------------------------------------------------------------------------------</div><div style="margin: 0px; line-height: normal;" class="">--------------------------------------------------------------------------------</div><div style="margin: 0px; line-height: normal;" class="">------------</div><div style="margin: 0px; line-height: normal;" class=""> POSTGIS="2.2.1 r14555" GEOS="3.5.0-CAPI-1.9.0 r4084" PROJ="Rel. 4.8.0, 6 March </div><div style="margin: 0px; line-height: normal;" class="">2012" GDAL="GDAL 1.11.4, released 2016/01/25" LIBXML="2.9.1" LIBJSON="0.11" TOPO</div><div style="margin: 0px; line-height: normal;" class="">LOGY RASTER</div><div style="margin: 0px; line-height: normal;" class="">(1 row)</div><div class=""><br class=""></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">hmdb=> select count(*) from dtm2015_50x50;</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">  count   </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">----------</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> 13360464</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">(1 row)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; line-height: normal;" class="">hmdb=> select count(*) from dtm2015;</div><div style="margin: 0px; line-height: normal;" class="">  count  </div><div style="margin: 0px; line-height: normal;" class="">---------</div><div style="margin: 0px; line-height: normal;" class=""> 8152320</div><div style="margin: 0px; line-height: normal;" class="">(1 row)</div><div style="margin: 0px; line-height: normal; min-height: 13px;" class=""><br class=""></div></div><div class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">hmdb=> select addrasterconstraints('dtm2015_50x50'::name, 'rast'::name); </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding SRID constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding scale-X constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding scale-Y constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding blocksize-X constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding blocksize-Y constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding alignment constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding number of bands constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding pixel type constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding nodata value constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding out-of-database constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">NOTICE:  Adding maximum extent constraint</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">ERROR:  array size exceeds the maximum allowed (1073741823)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">CONTEXT:  SQL statement "SELECT st_ashexewkb(st_envelope(st_collect(st_envelope(rast)))) FROM cjsmith.dtm2015_50x50"</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">PL/pgSQL function _add_raster_constraint_extent(name,name,name) line 20 at EXECUTE</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">PL/pgSQL function addrasterconstraints(name,name,name,text[]) line 104 at assignment</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">PL/pgSQL function addrasterconstraints(name,name,name,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean,boolean) line 53 at RETURN</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div class=""><br class=""></div></body></html>