Hi Chris,<br><br>Thanks a lot for your clarifications about this. However i'm having problems when reprojecting vector features with proj4js. Here are the steps taken:<br><br>1. Create a js file for each projection needed inside the defs folder of proj4js<br>
example of EPSG 27492 with corrected local transformations parameters (i've tried to use these parameters in postgis and all came out accurate)<br> 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 +pm=lisbon +units=m +towgs84=-239.749,88.181,30.488,0.263,0.082,1.211,2.229";<br>
<br>2. Included proj4js-combined and all EPSGxxxxx.js in the web page<br><br>3. Defined projections using new OpenLayers.Projection('EPSG:xxxxx');<br><br>4. the code used to reproject:<br><br>var coordMarker = new OpenLayers.Geometry.Point(xcoord, ycoord); //these coords in epsg 27492<br>
<br>OpenLayers.Projection.transform(coordMarker, hg73ipcc, mercator);<br><br>The coordinates introduced were x= 19300.924567 and y=-293208.893092 and the output was x=<span class="objectBox objectBox-number ">-1897829.842341831 and y=</span><span class="objectBox objectBox-number ">4442821.889195204</span>. The expected output should be x=-881320.416615 and y=4442714.696599<br>
<br>I've tried to reproject from epsg:27492 to wgs84 and also got wrong coordinates returned.<br>Am i missing something here??? Any sugestions to solve this?<br><br>Thanks in advance.<br>Best regards,<br><br>Hugo<br clear="all">
<br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43'56.84", W 9°9'35.74"<br>