Hi,<br>just a note: we have no problem using the same grids in OS Windows. (tested with Postgres 8.4 and Postgis 1.4 or 1.5)<br><br>HTH,<br>Fred.<br><br><br><div class="gmail_quote">2010/6/9 Luís de Sousa <span dir="ltr"><<a href="mailto:luis.a.de.sousa@gmail.com">luis.a.de.sousa@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear Frank,<br>
<br>
Thank you for your message, please read my comments below:<br>
<div class="im"><br>
>A few suggestions:<br>
><br>
> * The +nadgrids= directive can include a full path if you want to be<br>
>   certain that path issues are not coming into play.<br>
<br>
</div>I tried this first, the result is exactly the same.<br>
<div class="im"><br>
> * If you can ensure that the PROJ_DEBUG environment variable is set to<br>
>   some value before running the postgres server, you may well see proj<br>
>   debug output in the terminal window or log for the server.  This should<br>
>   include information on what grid shift files are picked up and used for<br>
>   transformations.<br>
<br>
</div>Ok, I'll try that next.<br>
<div class="im"><br>
> * Your email did not make it clear what the definitions were for<br>
>   pt:dlxhg, +init=pt:pttm06 or what the proj4text for 3763 is in the<br>
>   database making it hard to see if the transform was the same as you<br>
>   did with cs2cs.<br>
<br>
</div>Here are the definitions in the /usr/share/proj directory:<br>
<br>
# PTTM06 do datum ETRS89<br>
<pttm06><br>
+proj=tmerc<br>
+ellps=GRS80<br>
+towgs84=0,0,0<br>
+lat_0=39d40'05.73"N<br>
+lon_0=08d07'59.19"W<br>
<><br>
<br>
# Hayford-Gauss datum Lisboa<br>
<dlxhg><br>
+proj=tmerc<br>
+ellps=intl<br>
+nadgrids=ptLX_e89.gsb<br>
+lat_0=39d40<br>
+lon_0=8d07'54.862"W<br>
<><br>
<br>
And here are the strings in the PostGis database:<br>
<br>
pontosDTU=# select proj4text from spatial_ref_sys where srid = 20791;<br>
 +proj=tmerc +lat_0=39.66666666666666 +lon_0=1 +k=1 +x_0=0 +y_0=0<br>
+ellps=intl +pm=lisbon +units=m +no_defs<br>
+nadgrids=/usr/share/proj/ptLX_e89.gsb<br>
<br>
pontosDTU=# select proj4text from spatial_ref_sys where srid = 3763;<br>
 +proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1<br>
+x_0=0 +y_0=0 +ellps=GRS80 +units=m +no_defs<br>
<br>
If you or somebody else want to try it up, the gird files package is<br>
available from the University of Oporto, courtesy of prof J.A.<br>
Gonçalves:<br>
<br>
<a href="http://www.fc.up.pt/pessoas/jagoncal/coordenadas/grelhas.zip" target="_blank">http://www.fc.up.pt/pessoas/jagoncal/coordenadas/grelhas.zip</a><br>
<br>
I unpacked all its contents to /usr/share/proj. Btw, my system is Ubuntu 9.10.<br>
<br>
Before I go, I just want to make sure that in principle PostGis should<br>
be able to use the grid files simply by the indication of its<br>
location, no additional configurations needed. Is this correct?<br>
<br>
Thank you once more,<br>
<font color="#888888"><br>
Luís<br>
</font><div><div></div><div class="h5">_______________________________________________<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>