[MetaCRS] Translation WGS84 to Mercator

Косолапов Глеб thunderlion at yandex.ru
Mon Nov 29 08:22:12 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

Frank, thank you for answer!
Tell me please, where can I find this flag in proj4js? There is no such property...

Gleb.


More information about the MetaCRS mailing list