<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hey,<br></div>I am faced with a problem I can't solve :<br><br></div>I have a raster obtained by using st_setvalues and several points.<br><br></div>The raster has 2 bands, half of the pixel being set.<br>
</div><br></div>Using the st_pixelaspolygons and the ST_SummaryStats I am sure that some of the pixels of the raster are set.<br><br></div>Now when I use gdalinfo or gdal_translate on this in-base raster, it gives the correct information about the raster (size, position, band type, etc),<br>
</div><b>but the raster has no pixel set!</b><br><br></div>I tried several combination of parameters with non luck.<br><br><br></div><div>postgis version :<br><br>--POSTGIS="2.1.0 r11822" GEOS="3.5.0dev-CAPI-1.9.0 r3963" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.8.0" RASTER<br>
<br></div><div>postgres version : 9.3.3<br><br><br></div>Summary :<br><div style="margin-left:40px">Raster of 50x50 pixels has 2 bands and extent of BOX(1913.5 20887.5,1914.5 20888.5)<br>    band 1 of pixtype 32BSI is in-db with NODATA value of -100000<br>
    band 2 of pixtype 32BSI is in-db with NODATA value of -100000<br><br></div>Band 1 contains(histogram, excluding null values):<br><div style="margin-left:40px">41660    41666.6666666667    32    0.039360393603936<br>41666.6666666667    41673.3333333333    0    0<br>
41673.3333333333    41680    0    0<br>41680    41686.6666666667    656    0.806888068880689<br>41686.6666666667    41693.3333333333    0    0<br>41693.3333333333    41700    125    0.153751537515375<br><br></div><div><div>
<div>gdalinfo :<br><div style="margin-left:40px"> gdalinfo  "PG:host=localhost port=5433 dbname='test_pointcloud' user='postgres' password='youguess' schema='test_raster' table='patch_to_raster'" -stats<br>
Driver: PostGISRaster/PostGIS Raster driver<br>Files: none associated<br>Size is 50, 50<br>Coordinate System is:<br></div><div style="margin-left:40px"><i> CORRECT</i><br></div><div style="margin-left:40px">Origin = (1913.500000000000000,20887.500000000000000)<br>
Pixel Size = (0.020000000000000,0.020000000000000)<br>Corner Coordinates:<br>Upper Left  (    1913.500,   20887.500) (  1d21'30.09"W,  5d51'10.78"S)<br>Lower Left  (    1913.500,   20888.500) (  1d21'30.09"W,  5d51'10.75"S)<br>
Upper Right (    1914.500,   20887.500) (  1d21'30.06"W,  5d51'10.78"S)<br>Lower Right (    1914.500,   20888.500) (  1d21'30.07"W,  5d51'10.75"S)<br>Center      (    1914.000,   20888.000) (  1d21'30.08"W,  5d51'10.76"S)<br>
Band 1 Block=50x50 Type=Int32, ColorInterp=Undefined<br>  Minimum=0.000, Maximum=0.000, Mean=0.000, StdDev=0.000<br>  NoData Value=-100000<br>  Metadata:<br>    STATISTICS_MAXIMUM=0<br>    STATISTICS_MEAN=0<br>    STATISTICS_MINIMUM=0<br>
    STATISTICS_STDDEV=0<br>Band 2 Block=50x50 Type=Int32, ColorInterp=Undefined<br>  Minimum=0.000, Maximum=0.000, Mean=0.000, StdDev=0.000<br>  NoData Value=-100000<br>  Metadata:<br>    STATISTICS_MAXIMUM=0<br>    STATISTICS_MEAN=0<br>
    STATISTICS_MINIMUM=0<br>    STATISTICS_STDDEV=0<br>remi@RemiCura-VirtualUbuntu:/media/sf_E_RemiCura/PROJETS/PC_in_DB/Raster/exported$ <br></div><br></div></div></div></div>