[MetaCRS] Translation WGS84 to Mercator
Frank Warmerdam
warmerdam at pobox.com
Mon Nov 29 08:31:28 EST 2010
Косолапов Глеб wrote:
>> Косолапов Глеб 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?
...
> Frank, thank you for answer!
> Tell me please, where can I find this flag in proj4js? There is no such property...
Hi,
PROJ.4 is the C projections library that was a source of inspiration
for the Proj4js package. I wasn't suggesting that proj4js supports
+over, but instead that perhaps this ability should be added in a manner
similar to how it exists in PROJ.4.
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