[MetaCRS] Translation WGS84 to Mercator
Frank Warmerdam
warmerdam at pobox.com
Tue Nov 23 11:06:06 EST 2010
Косолапов Глеб wrote:
> Hi, everyone from Russia!
>
> I'm using proj4js with OpenLaerys.
> I must translate WGS84 to Mercator (EPSG:3395, for example).
> My country lies through 180th meridian (antimeridian). So, in WGS84 this territory ends near 190 longitude. And everything works fine.
> But when I transform 190 lat to Mercator, I get negative value -18924313.434856504. That's very bad for every operation with Mercator coordinates in OpenLayers.
>
> Please, help me how to transform 190 lat to positive Mercator using proj4js...
Gleb,
PROJ.4 has the +over flag which avoids normalizing the longitude to -180
to 180 before the transformation is done. Perhaps this should be introduced
in proj4js as well?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MetaCRS
mailing list