Open lakesol opened 4 years ago
I experienced something similar very recently when experimenting with this, but was able to resolve it. The key part appeared to be the WKT string for OSGB 1936.
Your WKT string doesn't quite match the one here (from OGS WKT): https://epsg.io/27700
To be specific, it looks like the part you appear to be missing is TOWGS84[446.448,-125.157,542.06,0.15,0.247,0.842,-20.489]
.
This site explains the TOWGS84
parameter (and the rest), although I confess I've not yet found the need to read into these: https://www.bgs.ac.uk/data/webservices/convertForm.cfm.
I hope this helps.
The TOWGS84 string is a hack to provide conversions between datums. It is left off most Wkt lists because it forces modern GIS libraries to use an inaccurate method of transformation in going via WGS84 and ECEF coordinates. ProjNET; however, does need this hack and these strings will have to be added in until it updates to be based on a more recent version of Proj (https://github.com/NetTopologySuite/ProjNet4GeoAPI/issues/89)
Hi all, I am new to all this GIS work, so if I have done something silly or just plain wrong please just let me know.
I m trying to covert from coordinates from OSGB 1936 / British National Grid to WGS84 but I am seeing different results to other tools.
My example coordinates X,Y is; 362895, 155602
My conversions appear to be nearly correct however they are always a little out. Here is a link showing the conversion on epsg.io. If you switch the result to decimal you will see the expected results is;
Long=-2.5335813°, Lat = 51.2983258°
https://epsg.io/transform#s_srs=27700&t_srs=4326&x=362895.0000000&y=155602.0000000
I have also done the same conversion on https://mygeodata.cloud/cs2cs/ with the same results as epsg.io.
However in Proj.Net my result is;
-2.53225739401083, 51.2985133921956
Here is a code example to show my issues;
Please help and let me know what I am doing wrong, this is doing my head in!!
Is there a problem in my "From" mappings, my "To" mapping, is there another step I am missing or is there a bug?
Thanks in advance