When I try convert Lat Long from shapefile using Dotspatial for Europe LAEA and it gives null values for whole Europe region. It is a custom CRS provided by client

I have used Dotspatial and tried conversion based on given PROJCS and I have tried for Russia, North and South America CRS and it works fine except Europe.

Below is the custom CRS provided by client


It provided NaN for complete Europe region, like UK , Spain, Italy, France etc.,

Below are Lt and Long information which I try to convert

Lat= 57.04632319800004 Long =6.977629678000028 Lat= 57.04357274600005 Long =6.945070506000036 Lat= 57.04062228300006 Long =6.912269669000068


1 Answer 1


I used OSGeo.MapGuide to convert LAT/LONG to X, Y for Europe LAEA.

Below is the code which is used for CRS conversion

Environment.SetEnvironmentVariable("MENTOR_DICTIONARY_PATH", @"D:\cs-map-dictionaries.\dictionaries", EnvironmentVariableTarget.Process);
csFactory = new MgCoordinateSystemFactory();
//Create WGS84 coord sys
wgs84 = csFactory.CreateFromCode("LL84");
//Create UTM coord sys
utm = csFactory.CreateFromCode("ETRF89.Europe/EqArea");
xform = csFactory.GetTransform(wgs84, utm);
MgCoordinate transformed = xform.Transform(x, y);
//MgCoordinate contains your transformed coordinates
tx = transformed.GetX();
ty = transformed.GetY();
  • 1
    Hope this is clear.
    – Jey
    Commented Jan 23, 2019 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.