This commit is contained in:
Ieuan Walker
2019-08-16 18:29:09 +01:00
3 changed files with 9 additions and 7 deletions

View File

@@ -33,8 +33,11 @@ steps:
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*GeoUK.OSTN.Tests.dll
**\*GeoUK.OSTN.XUnit.dll
**\Tests\GeoUK.OSTN.XUnit\*GeoUK.OSTN.XUnit.dll
**\Tests\GeoUK.OSTN.XUnit\GeoUK.OSTN.XUnit.dll
**\*test*.dll
**\*XUnit*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
@@ -50,8 +53,7 @@ steps:
packagesToPack: 'GeoUK.OSTN/GeoUK.OSTN.csproj'
majorVersion: '$(Major)'
minorVersion: '$(Minor)'
patchVersion: '$(Patch)'
patchVersion: '$(Patch)'
# The last task is a nuget command, nuget push
# This will push any .nupkg files to the 'TestFeed' artifact feed

View File

@@ -33,7 +33,7 @@ steps:
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**/*GeoUK.OSTN.Tests.dll
**/*GeoUK.OSTN.XUnit.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'

View File

@@ -25,7 +25,7 @@ The GeoUk.OSTN project, adds OSTN02 and OSTN15 transformation which provide a gr
# How to use
> Install > [GeoUK](https://www.nuget.org/packages/IeuanWalker.GeoUK/)
> Install [GeoUK](https://www.nuget.org/packages/IeuanWalker.GeoUK/)
## Convert Easting/ Northing to Latitude/ Longitude
1. Convert to Cartesian
@@ -41,7 +41,7 @@ Cartesian cartesian = Convert.ToCartesian(new Airy1830(),
```
2. Transform from OSBB36 datum to ETRS89 datum
```csharp
Cartesian wgsCartesian = Transform.OSBB36ToEtrs89(cartesian); //ETRS89 is effectively WGS84
Cartesian wgsCartesian = Transform.Osgb36ToEtrs89(cartesian); //ETRS89 is effectively WGS84
```
3. Convert back to Latitude/Longitude
```csharp
@@ -72,7 +72,7 @@ This rubber sheet geoid is effectively a lookup table that can be used to determ
The GeoUK.OSTN Nuget package extends the GeoUK package to include OSGM02/OSTN0 and OSTN15 functionality and provides a simple method to make an accurate one-way transformation from ETRS89 to BNG. The package can be added to a project using the following Package Manager command. The package is dependent upon the GeoUK package and will add it as required.
> Install > [GeoUK.OSTN]()
> Install [GeoUK.OSTN]()
It should be noted that the `GeoUK.OSTN` package contains the OSGM02 geoid and OSTN02 OSTN15 transformations, as a result is fairly large, in addition, transformations will be slower than using the Helmert transformations as used in the examples above.