Hi Jhonny,I could make things work with the help of functions you have defined. I gave input point as var point = {
lng : -80.430123,
lat : 37.2447239
};
and got the converted point as {"x":-5991744.271143372,"y":2592441.1643744702}
All the functions woked correctly.But I am not interested in converting into Lambert 72.I need to convert points from
Well-known ID Name
4326 GCS_WGS_1984
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
TO
Well-known ID Name
102100 WGS_1984_Web_Mercator_Auxiliary_Sphere
PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]
.This is an example of what I need to do : http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project?inSR=4326...All these coordinate systems are too confusing 😞 . Can you please give some pointers in what all parameters i need to add/modify to CoordTransform.ellipse and
CoordTransform.datumTransform
properties and what new functions i need to add to get this done.I appreciate your help a lot. Eagerly waiting for your reply.Thanks in advance again.Niranjan