# How to convert distance in meters(EPSG:28406) to EPSG:900913 with OpenLayers?

For point I use OpenLayers and transform():

`````` numZona = Math.ceil(parseFloat(lon)/6));
Proj4js.defs["EPSG:28406"] = '+proj=tmerc +lat_0=0 +lon_0='(parseInt(numZona)*6-3)+' +k=1.000000 +x_0='+numZona+'500000 +y_0=0 +ellps=krass +units=m +no_defs;
centerPoint = new OpenLayers.Geometry.Point(lon, lat).transform(new OpenLayers.Projection("EPSG:4284"), new OpenLayers.Projection("EPSG:900913"));
``````

But what do with distance? I have longitude and latitude in EPSG:4284, distanse in meters and a map with EPSG:900913 projection.

• What you want to do? Why you want to get a distance in 900913? Jan 14 '15 at 10:46
• Side note: if the false easting is 500000, that's EPSG:2496 instead (EPSG:28406 has a false easting of 6500000). Jan 14 '15 at 17:51
• @JorgeSanz Calculating a new position in a map using OpenLayers:900913? Jan 14 '15 at 17:52
• So you want from a position, azimuth and real world distance to locate a new point, all in represented in 900913? Jan 16 '15 at 8:38
• @JorgeSanz Yes! Jan 18 '15 at 18:22