<div dir="ltr">Wow... that's new. I'm guessing that the array that collects the individual tiles' extents is getting too big. Can you file a ticket?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 12:08 AM, Caitríona Smith <span dir="ltr"><<a href="mailto:kit@hypostasis.com" target="_blank">kit@hypostasis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">Hi All</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><div style="margin:0px;line-height:normal">select version();</div><div style="margin:0px;line-height:normal">                                                 version                        </div><p style="margin:0px;line-height:normal;min-height:13px">                         <br></p><div style="margin:0px;line-height:normal">--------------------------------------------------------------------------------</div><div style="margin:0px;line-height:normal">-------------------------</div><div style="margin:0px;line-height:normal"> 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">Red Hat 4.8.5-4), 64-bit</div><div style="margin:0px;line-height:normal">(1 row)</div><div><br></div></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal"><br></div><div style="margin:0px;line-height:normal">select postgis_full_version();</div><div style="margin:0px;line-height:normal">                                                                            post</div><div style="margin:0px;line-height:normal">gis_full_version                                                                </div><p style="margin:0px;line-height:normal;min-height:13px">            <br></p><div style="margin:0px;line-height:normal">--------------------------------------------------------------------------------</div><div style="margin:0px;line-height:normal">--------------------------------------------------------------------------------</div><div style="margin:0px;line-height:normal">------------</div><div style="margin:0px;line-height:normal"> 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">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">LOGY RASTER</div><div style="margin:0px;line-height:normal">(1 row)</div><div><br></div></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">hmdb=> select count(*) from dtm2015_50x50;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">  count   </div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">----------</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"> 13360464</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">(1 row)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><div style="margin:0px;line-height:normal">hmdb=> select count(*) from dtm2015;</div><div style="margin:0px;line-height:normal">  count  </div><div style="margin:0px;line-height:normal">---------</div><div style="margin:0px;line-height:normal"> 8152320</div><div style="margin:0px;line-height:normal">(1 row)</div><div style="margin:0px;line-height:normal;min-height:13px"><br></div></div><div><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">hmdb=> select addrasterconstraints('dtm2015_50x50'::name, 'rast'::name); </div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">NOTICE:  Adding SRID constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding scale-X constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding scale-Y constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding blocksize-X constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding blocksize-Y constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding alignment constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding number of bands constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding pixel type constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding nodata value constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding out-of-database constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">NOTICE:  Adding maximum extent constraint</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">ERROR:  array size exceeds the maximum allowed (1073741823)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">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">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">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">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"><br></div><div><br></div></div><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/mailman/listinfo/postgis-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/postgis-users</a><br></blockquote></div><br></div>