Hi ,
I have a problem with decimal separator and Proj4Projection.ConvertEpsgToPrj.
From an epsg code (27572), I want to get proj4. (french projection Lambert2 étendue)
So the code is : Proj4Projection.ConvertPrjToProj4(Proj4Projection.ConvertEpsgToPrj(27572))
And When the decimal separator is "." the result is correct (+proj=lcc +lat_1=46.8 +lat_0=46.8 +lon_0=0 +k_0=0.99987742 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +pm=2.33722917 +units=m +no_defs )
But when the decimal separator is "," the result is not correct (+proj=lcc +lat_1=490 +lat_2=440 +lat_0=4650 +lon_0=3 +x_0=700000 +y_0=6600000 +a=6378137 +b=6378136,99997862 +units=m +no_defs )
Have you ever met this problem and resolve it ?
Thanks for your help.
Regards.
Steph.
Problem with separator decimal and ConvertEpsgToPrj
Steph,
I can recreate your issue by changing my system format to "," and seems it supports the globe language not very well. I will let our development team to see if this is a bug.
As a workaround, would you please try to use the below codes to get the proj4 text to instead of your original one:
string proj = Proj4Projection.GetEpsgParametersString(27572);
Hope it helps.
Thanks,
Troy