<span style="font-family:arial,sans-serif;font-size:13px">raster2pgsql -b 1 -t 1200x1200 -C -I -M -s 2193 -R /mnt/nfs/data/nzdem3.img > nzdem3-raster-C-I-M-s_2193.sql</span><br><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">is the command I ran for this. (Of course I imported the .sql file into PostGIS with psql -f ...</span></div><div class="gmail_extra"><br clear="all">
<div>Tim-Hinnerk Heuer<br><br>Twitter: @geekdenz<br><div>Blog: <a href="http://www.thheuer.com/" target="_blank">http://www.thheuer.com</a></div></div><br>
<br><br><div class="gmail_quote">On 9 December 2012 01:00, Pierre Racine <span dir="ltr"><<a href="mailto:Pierre.Racine@sbf.ulaval.ca" target="_blank">Pierre.Racine@sbf.ulaval.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Could you do this:<br>
<br>
SELECT (ST_Metadata(rast)).* FROM nzdem3;<br>
<div class="im"><br>
Pierre<br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:postgis-users-bounces@lists.osgeo.org">postgis-users-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:postgis-users-">postgis-users-</a><br>
> <a href="mailto:bounces@lists.osgeo.org">bounces@lists.osgeo.org</a>] On Behalf Of Tim-Hinnerk Heuer<br>
</div><div class="im">> Sent: Saturday, December 08, 2012 6:57 AM<br>
> To: PostGIS Users Discussion<br>
> Subject: Re: [postgis-users] PostGIS - Simple Raster Point Query<br>
><br>
> Thanks Pierre for your quick answer, however it didn't work :-(. Also tried<br>
> reversing the coordinates to no success. The raster is tiled already. Is there<br>
> another way maybe?<br>
><br>
> Thanks, TIm<br>
><br>
> Tim-Hinnerk Heuer<br>
><br>
> Twitter: @geekdenz<br>
><br>
</div>> Blog: <a href="http://www.thheuer.com" target="_blank">http://www.thheuer.com</a> <<a href="http://www.thheuer.com/" target="_blank">http://www.thheuer.com/</a>><br>
<div class="im HOEnZb">><br>
><br>
><br>
> On 9 December 2012 00:49, Pierre Racine <<a href="mailto:Pierre.Racine@sbf.ulaval.ca">Pierre.Racine@sbf.ulaval.ca</a>> wrote:<br>
><br>
><br>
>       select st_value(rast,ST_SetSRID(ST_Point(1821416, 5649720), 2193))<br>
> from nzdem3<br>
><br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>