[Portugal] conversão de coordenadas

Hugo hfpmartins gmail.com
Quinta-Feira, 12 de Julho de 2012 - 08:02:11 PDT


Como o Duarte indicou,

Se quiseres fazer a transformação de coordenadas no OpenLayers com a transf
de Bursa-Wolf tens que definir o seguinte:

Proj4js.defs["EPSG:27492"] = "+proj=tmerc +lat_0=39.66666666666666
+lon_0=-8.131906111111112 +k=1 +x_0=180.598 +y_0=-86.98999999999999
+ellps=intl +units=m
+towgs84=-239.749,88.181,30.488,0.263,0.082,1.211,2.229";

Continuo a achar que é preferíevl fazeres esta transformação no postgis. Só
tens que actualizar as definições do sistema com o seguinte:

UPDATE spatial_ref_sys set proj4text = '+proj=tmerc
+lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1 +x_0=180.598
+y_0=-86.98999999999999 +ellps=intl +units=m
+towgs84=-239.749,88.181,30.488,0.263,0.082,1.211,2.229 ' where srid=27492;


Abc,

Hugo

On Thu, Jul 12, 2012 at 3:50 PM, duartecarreira <dncarreira at gmail.com>wrote:

> Pedro, tenta definir manualmente a projecção 27492 e incluir o towgs84:
>
> Proj4js.defs["EPSG:27492"]="+title=Datum 73 / Modified Portuguese Grid
> +proj=tmerc +lat_0=39.66666666666666 +lon_0=-8.131906111111112 +k=1.000000
> +x_0=180.598 +y_0=-86.98999999999999 +ellps=intl +units=m
> +towgs84=-223.237,110.193,36.649 +no_defs  no_defs <>";
>
> Este exemplo tem uma transf de molodensky... se colocares 7 params ele
> assume uma transf de bursa-wolf.
>
> Mais info aqui:
> http://trac.osgeo.org/openlayers/wiki/Documentation/Dev/proj4js
>
>
> Duarte
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/conversao-de-coordenadas-tp4987946p4988001.html
> Sent from the OSGeo Portuguese Local Chapter mailing list archive at
> Nabble.com.
> _______________________________________________
> Portugal mailing list
> Portugal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/portugal
>



-- 
Hugo Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/portugal/attachments/20120712/d31a74ad/attachment.html>


More information about the Portugal mailing list