Hi,<br><br>OK - with ST_SummaryStats it is easy to retrieve the highest value in the raster, but then I only have this value. Now I want to retrieve (information about) the cell/pixel having this value, to be able to visualize the highest point on the map. My original query (see first post) does give me this information (after 45 seconds...).<br><br>How would I go about to get hold of the pixel with the highest value, knowing this value?<br><br>Cheers,<br><br>Egge-Jan<br><br>On Sunday, June 24, 2012 8:47:58 PM UTC+1, DavidRA wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Why don't you use ST_SummaryStats instead ST_Value? That way you can get
<br>easily any basic stat, included the maximum value of the raster. It would be
<br>something like:
<br>
<br>SELECT (ST_SummaryStats(rast)).max FROM raster_table;
<br>
<br>--
<br>View this message in context: <a href="http://postgis.17.n6.nabble.com/Finding-highest-cell-value-in-raster-using-ST-Value-tp4998545p4998554.html" target="_blank">http://postgis.17.n6.nabble.<wbr>com/Finding-highest-cell-<wbr>value-in-raster-using-ST-<wbr>Value-tp4998545p4998554.html</a>
<br>Sent from the PostGIS - User mailing list archive at Nabble.com.
<br>______________________________<wbr>_________________
<br>postgis-users mailing list
<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<wbr>refractions.net</a>
<br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<wbr>net/mailman/listinfo/postgis-<wbr>users</a>
<br></blockquote><br>On Sunday, June 24, 2012 8:47:58 PM UTC+1, DavidRA wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Why don't you use ST_SummaryStats instead ST_Value? That way you can get
<br>easily any basic stat, included the maximum value of the raster. It would be
<br>something like:
<br>
<br>SELECT (ST_SummaryStats(rast)).max FROM raster_table;
<br>
<br>--
<br>View this message in context: <a href="http://postgis.17.n6.nabble.com/Finding-highest-cell-value-in-raster-using-ST-Value-tp4998545p4998554.html" target="_blank">http://postgis.17.n6.nabble.<wbr>com/Finding-highest-cell-<wbr>value-in-raster-using-ST-<wbr>Value-tp4998545p4998554.html</a>
<br>Sent from the PostGIS - User mailing list archive at Nabble.com.
<br>______________________________<wbr>_________________
<br>postgis-users mailing list
<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<wbr>refractions.net</a>
<br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<wbr>net/mailman/listinfo/postgis-<wbr>users</a>
<br></blockquote><br>On Sunday, June 24, 2012 8:47:58 PM UTC+1, DavidRA wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Why don't you use ST_SummaryStats instead ST_Value? That way you can get
<br>easily any basic stat, included the maximum value of the raster. It would be
<br>something like:
<br>
<br>SELECT (ST_SummaryStats(rast)).max FROM raster_table;
<br>
<br>--
<br>View this message in context: <a href="http://postgis.17.n6.nabble.com/Finding-highest-cell-value-in-raster-using-ST-Value-tp4998545p4998554.html" target="_blank">http://postgis.17.n6.nabble.<wbr>com/Finding-highest-cell-<wbr>value-in-raster-using-ST-<wbr>Value-tp4998545p4998554.html</a>
<br>Sent from the PostGIS - User mailing list archive at Nabble.com.
<br>______________________________<wbr>_________________
<br>postgis-users mailing list
<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.<wbr>refractions.net</a>
<br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.<wbr>net/mailman/listinfo/postgis-<wbr>users</a>
<br></blockquote>