Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to transform Lambert (EPSG:3035) coordinates to EPSG:4326 in C#.

I have tried this:

var lambert = cf.CreateFromWkt("PROJCS[\"ETRS89 / ETRS-LAEA\",GEOGCS[\"ETRS89
\",DATUM[\"European_Terrestrial_Reference_System_1989\",SPHEROID[\"GRS 
1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6258
\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree
\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4258
\"]],PROJECTION[\"Lambert_Azimuthal_Equal_Area\"],PARAMETER[\"latitude_of_center
\",52],PARAMETER[\"longitude_of_center\",10],PARAMETER[\"false_easting
\",4321000],PARAMETER[\"false_northing\",3210000],UNIT[\"metre\",1,AUTHORITY[\"EPSG
\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],AUTHORITY[\"EPSG\",\"3035\"]]");

Error: Projection Lambert_Azimuthal_Equal_Area is not supported.

As far as I understand, ProjNet should support Lambert. Can someone help me? Or show me another way how to achieve my goal?

share|improve this question

2 Answers 2

You can use dotspatial to make your transformation. The two projections is created by:

//EPSG 3035
ProjectionInfo fromProjection = KnownCoordinateSystems.Projected.Europe.ETRS1989LAEA;
//EPSG 4326
ProjectionInfo toProjection = KnownCoordinateSystems.Geographic.World.WGS1984;

And you make the transformation with

Reproject.ReprojectPoints(fromPoint, toPoint, fromProjection, toProjection, 0, 1);
share|improve this answer

This helped me but this code is not right

Reproject.ReprojectPoints(fromPoint, toPoint, fromProjection, toProjection, 0, 1);

ReprojectPoints should be called like this:

Reproject.ReprojectPoints(fromXY, fromZ, fromProjection, toProjection, 0, 1);

fromXY is an array with 2 doubles (X and Y) and fromZ is an array with 1 double (Z).

The function returns the result in the fromXY variable.

But for me it does not work for ETRS89LAEA anyway. just get NaN in the result...

If anyone got conversion to ETRS89LAEA to work with dotspatial, please show me how to do it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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