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

View File

@@ -33,7 +33,7 @@ steps:
inputs: inputs:
testSelector: 'testAssemblies' testSelector: 'testAssemblies'
testAssemblyVer2: | testAssemblyVer2: |
**/*GeoUK.OSTN.Tests.dll **/*GeoUK.OSTN.XUnit.dll
!**\*TestAdapter.dll !**\*TestAdapter.dll
!**\obj\** !**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)' 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 # 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 ## Convert Easting/ Northing to Latitude/ Longitude
1. Convert to Cartesian 1. Convert to Cartesian
@@ -41,7 +41,7 @@ Cartesian cartesian = Convert.ToCartesian(new Airy1830(),
``` ```
2. Transform from OSBB36 datum to ETRS89 datum 2. Transform from OSBB36 datum to ETRS89 datum
```csharp ```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 3. Convert back to Latitude/Longitude
```csharp ```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. 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. 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.