I think when the ST_Clip() crop parameter is set to TRUE, ST_Clip() could just change the extent of the empty raster.... When it is set to false, it just returns the raster unmodified.
I'll fill a bug. Thanks, Pierre > -----Original Message----- > From: [email protected] [mailto:postgis-users- > [email protected]] On Behalf Of Bborie Park > Sent: Tuesday, February 24, 2015 10:25 AM > To: PostGIS Users Discussion > Subject: Re: [postgis-users] ST_Clip on a raster without band crashes the > server > > File a bug. It shouldn't work for an empty raster. > > On Tue, Feb 24, 2015 at 6:50 AM, Pierre Racine > <[email protected]> wrote: > > > Hi, > > I have: > > "POSTGIS="2.1.5 r13152" GEOS="3.4.2-CAPI-1.8.2 r0" PROJ="Rel. > 4.8.0, 6 March 2012" GDAL="GDAL 1.11.1, released 2014/09/24" > LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER" > > and > > SELECT ST_Clip(ST_MakeEmptyRaster(42, 42, 0, 0, 1.0, 1.0, 0, 0, > 4269), ST_MakeEnvelope(0, 0, 20, 20, 4269)); > > crashed my server. > > Someone can confirm the bug? > > Thanks, > > Pierre > _______________________________________________ > postgis-users mailing list > [email protected] > http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users > > _______________________________________________ postgis-users mailing list [email protected] http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
