Hi Pierre,<br>I will be back on in a couple of hours.. have to rush out. But thanks a million for all your suggestions! Cannot get this working without your help! :)<br><br>Cheers,<br>Ed<br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 3:59 PM, Ed Linde <span dir="ltr"><<a href="mailto:edolinde@gmail.com">edolinde@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ok, just to get this right.. :) , you are suggesting I keep my OSM as is (id: 900913). Load in the tif rasters as srid (4326) and then "reproject" the OSM road geometry to srid = 4326 right? So it matches the srid of my raster! I ask because you said to reproject to 900913 in your mail. <br>

<br>Cheers,<br>Ed<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Mon, Feb 27, 2012 at 3:53 PM, 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">
<div>> I checked the srids of the geometry and the rasters and they are both now set to<br>
> --> 900913!<br>
<br>
</div>But you loaded the raster with -s 900913. Right? That does not make the raster coordinates to be transformed. You actually corrupted your rasters. You have to load them in their proper srid (4326) and reproject them afterward (or reproject the geometries) to 900913. I would go with reprojecting the geometries.<br>


<div><br>
> I was using qgis and I think I made a mistake because I think the tif files on disk<br>
> are using srid = 4326, while the postgis layer I added was using 900913 for osm.<br>
> I have never used OpenJump.. is it possible to view both my raster and road<br>
> geometries from postgis on to qgis? Or you recommend installing OpenJump?<br>
<br>
</div>I do. It's still the best/stable tool to work both raster and vectors. You can't display raster but you can display their extent and their vectorization (with ST_DumpAsPolygon()) as in the tutorial.<br>
<div><br>
> Also, do I still need to do some sort of reprojection on the geometries? Is the<br>
> SRID of 900913 reported for my rasters...reliable information?<br>
<br>
</div>Again, the loader do not reproject. It just assign the srid you tell him. You have to reproject at some point (before or after loading, before or while intersecting).<br>
<div><div><br>
Pierre<br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net" target="_blank">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></div></blockquote></div><br>