-
Sorry to ask yet another question, I've taken a look at the GDAL repo and numerous other resources and have had no luck. I'm attempting to convert from British National Grid (EPSG:27700) to 3D WGS84 (EPSG:4979). The vertical CS for British National Grid is EPSG:5701, ODN Height (Ordanance Datum Newlyn). When using the proj 9.0.1 cli, the following is returned:
I'm attempting to reproduce this: var osgb = new SpatialReference(null);
osgb.ImportFromEPSG(27700);
// unsure what the third argument should be here, GDAL documentation states the VerticalDatum type (the OGC vertical datum type, ignored)
osgb.SetVertCS("ODN height", "Ordnance Datum Newlyn", 5701);
var wgs84 = new SpatialReference(null);
wgs84.ImportFromEPSG(4979);
var transformation = new CoordinateTransformation(osgb, wgs84);
var point = new double[3];
transformation.TransformPoint(point, x, y, z); I've also tried setting from user input, and using OSR: var from = new OSGeo.OSR.SpatialReference(null);
from.SetFromUserInput("EPSG:27700+5701");
var to = new OSGeo.OSR.SpatialReference(null);
to.SetFromUserInput("EPSG:4979"); The above both return the correct lat/long, but the height is not changed. Is there any info / resources anyone could provide to replicate the proj cli arguments shown below using .NET?: I am certain I am referencing all available additional grid shift files. Thanks for your time P.S: {
"BaseCoordRefSystem": null,
"Conversion": null,
"Datum": {
"Code": 5101,
"Name": "Ordnance Datum Newlyn",
"href": "https://apps.epsg.org/api/v1/Datum/5101"
},
"GeoidModels": [
{
"Code": 7711,
"Name": "ETRS89 to ODN height (2)",
"href": "https://apps.epsg.org/api/v1/Transformation/7711"
},
{
"Code": 10021,
"Name": "ETRS89 to ODN height (1)",
"href": "https://apps.epsg.org/api/v1/Transformation/10021"
}
],
"VelocityModels": null,
"Usage": [
{
"Code": 4144,
"Name": "UK - Great Britain mainland onshore",
"ScopeDetails": "Geodesy, engineering survey.",
"Scope": {
"Code": 1179,
"Name": "Geodesy, engineering survey.",
"href": "https://apps.epsg.org/api/v1/Scope/1179"
},
"Extent": {
"Code": 2792,
"Name": "UK - Great Britain mainland onshore",
"href": "https://apps.epsg.org/api/v1/Extent/2792"
},
"Links": [],
"Deprecation": null,
"Supersession": null
}
],
"CoordSys": {
"Code": 6499,
"Name": "Vertical CS. Axis: height (H). Orientation: up. UoM: m.",
"href": "https://apps.epsg.org/api/v1/CoordSystem/6499"
},
"Kind": "vertical",
"Deformations": [],
"Code": 5701,
"Changes": [
{
"Code": 2005.18,
"href": "https://apps.epsg.org/api/v1/Change/2005.18"
},
{
"Code": 2008.01,
"href": "https://apps.epsg.org/api/v1/Change/2008.01"
},
{
"Code": 2015.069,
"href": "https://apps.epsg.org/api/v1/Change/2015.069"
}
],
"Alias": [
{
"Code": 267,
"Alias": "Newlyn height",
"NamingSystem": {
"Code": 7301,
"Name": "EPSG alias",
"href": "https://apps.epsg.org/api/v1/NamingSystem/7301"
},
"Remark": null
},
{
"Code": 2912,
"Alias": "GB_NEWL / OH",
"NamingSystem": {
"Code": 7307,
"Name": "EuroGeographics Identifier",
"href": "https://apps.epsg.org/api/v1/NamingSystem/7307"
},
"Remark": null
}
],
"Links": [
{
"rel": "self",
"href": "https://apps.epsg.org/api/v1/VerticalCoordRefSystem/5701"
}
],
"Name": "ODN height",
"Remark": null,
"DataSource": "EPSG",
"InformationSource": "Ordnance Survey of Great Britain.",
"RevisionDate": "2016-07-13T00:00:00",
"Deprecations": [],
"Supersessions": []
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've resolved this - I downloaded a new version of proj.db and replaced this, all is now working |
Beta Was this translation helpful? Give feedback.
I've resolved this - I downloaded a new version of proj.db and replaced this, all is now working