Thanks. The raster I need to visualise is a 4m by 4m grid on the entire map of Denmark! :)<div>So do you classify that as a large raster? If so is there a way to see a portion of it or something?</div><div>I just want to manually check for a few areas on the map that the intersection indeed works</div>
<div>as expected and things haven't gone awry thanks to projection differences or that I had degrees</div><div>instead of meters or some such thing. Well, I still have to first test if this GDAL upgrade will fix </div>
<div>things and if make empty raster .. makes a difference. </div><div><br><br><div class="gmail_quote">On Thu, Mar 22, 2012 at 9:07 PM, Pierre Racine <span dir="ltr"><<a href="mailto:Pierre.Racine@sbf.ulaval.ca">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"><div class="im">> Is there an OpenJump tutorial that shows how I can view rasters and geometries<br>
> from postgis? I do an "Add postgis layer" in QGis and clicking on the layer I can<br>
> set some SQL in there to filter the data coming back...but its still extremely slow!<br>
> So wouldn't mind figuring out how I can get OpenJump to work :)<br>
<br>
</div>OpenJump is very simple. There is a Run Database Query in the file menu. Two details:<br>
<br>
-Make sure to surround every geometry with ST_Asbinary()<br>
-Rasters do not display native. You have to vectorize them with ST_DumpAsPolygons() or ST_PixelAsPolygons()<br>
<br>
A typical OpenJump to display raster:<br>
<br>
SELECT ST_AsBinary((gv).geom) geom, (gv).val<br>
FROM (SELECT ST_DumpAsPolygons(rast) gv FROM rastertable) foo<br>
<br>
do not do this with big rasters...<br>
<div class="HOEnZb"><div class="h5"><br>
Pierre<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div>