mirror of
https://github.com/IeuanWalker/GeoUK.git
synced 2025-10-25 15:19:15 +00:00
Merge branch 'master' of https://github.com/IeuanWalker/GeoUK
This commit is contained in:
@@ -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)'
|
||||
@@ -52,7 +55,6 @@ steps:
|
||||
minorVersion: '$(Minor)'
|
||||
patchVersion: '$(Patch)'
|
||||
|
||||
|
||||
# The last task is a nuget command, nuget push
|
||||
# This will push any .nupkg files to the 'TestFeed' artifact feed
|
||||
# allowPackageConflicts allows us to build the same version and not throw an error when trying to push
|
||||
|
||||
@@ -33,7 +33,7 @@ steps:
|
||||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
testAssemblyVer2: |
|
||||
**/*GeoUK.OSTN.Tests.dll
|
||||
**/*GeoUK.OSTN.XUnit.dll
|
||||
!**\*TestAdapter.dll
|
||||
!**\obj\**
|
||||
searchFolder: '$(System.DefaultWorkingDirectory)'
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user