Skip to content

Commit b2506ed

Browse files
committed
crs-ios version 1.0.3, Non projected ETRS89 GeoDatum fix (EPSG:4258)
1 parent c569098 commit b2506ed

File tree

4 files changed

+60
-3
lines changed

4 files changed

+60
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Adheres to [Semantic Versioning](http://semver.org/).
66

77
## 1.0.3 (TBD)
88

9-
* TBD
9+
* crs-ios version 1.0.3
10+
* Non projected ETRS89 GeoDatum fix (EPSG:4258)
1011

1112
## [1.0.2](https://github.com/ngageoint/projections-ios/releases/tag/1.0.2) (02-09-2022)
1213

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ platform :ios, '12.0'
33

44
target 'proj-ios' do
55
pod 'proj4-ios', '~> 4.9.3'
6-
pod 'crs-ios', '~> 1.0.2'
6+
pod 'crs-ios', '~> 1.0.3'
77

88
target 'proj-iosTests' do
99
inherit! :search_paths

proj-ios.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ Pod::Spec.new do |s|
1919
s.frameworks = 'Foundation'
2020

2121
s.dependency 'proj4-ios', '~> 4.9.3'
22-
s.dependency 'crs-ios', '~> 1.0.2'
22+
s.dependency 'crs-ios', '~> 1.0.3'
2323
end

proj-iosTests/PROJProjectionFactoryCodeTest.m

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1879,6 +1879,62 @@ -(void) test4071{
18791879

18801880
}
18811881

1882+
/**
1883+
* Test EPSG 4258
1884+
*/
1885+
-(void) test4258{
1886+
1887+
NSString *code = @"4258";
1888+
double minX = -16.11;
1889+
double minY = 32.88;
1890+
double maxX = 40.18;
1891+
double maxY = 84.73;
1892+
1893+
NSMutableString *definition = [NSMutableString string];
1894+
[definition appendString:@"GEOGCRS[\"ETRS89\",ENSEMBLE[\"European Terrestrial Reference System 1989 ensemble\","];
1895+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1989\", ID[\"EPSG\",1178]],"];
1896+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1990\", ID[\"EPSG\",1179]],"];
1897+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1991\", ID[\"EPSG\",1180]],"];
1898+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1992\", ID[\"EPSG\",1181]],"];
1899+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1993\", ID[\"EPSG\",1182]],"];
1900+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1994\", ID[\"EPSG\",1183]],"];
1901+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1996\", ID[\"EPSG\",1184]],"];
1902+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 1997\", ID[\"EPSG\",1185]],"];
1903+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 2000\", ID[\"EPSG\",1186]],"];
1904+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 2005\", ID[\"EPSG\",1204]],"];
1905+
[definition appendString:@"MEMBER[\"European Terrestrial Reference Frame 2014\", ID[\"EPSG\",1206]],"];
1906+
[definition appendString:@"ELLIPSOID[\"GRS 1980\",6378137,298.257222101,LENGTHUNIT[\"metre\",1,ID[\"EPSG\",9001]],ID[\"EPSG\",7019]],"];
1907+
[definition appendString:@"ENSEMBLEACCURACY[0.1],ID[\"EPSG\",6258]],"];
1908+
[definition appendString:@"CS[ellipsoidal,2,ID[\"EPSG\",6422]],"];
1909+
[definition appendString:@"AXIS[\"latitude (Lat)\",north],AXIS[\"longitude (Lon)\",east],"];
1910+
[definition appendString:@"ANGLEUNIT[\"degree\",0.0174532925199433,ID[\"EPSG\",9102]],"];
1911+
[definition appendString:@"ID[\"EPSG\",4258]]"];
1912+
1913+
[self projectionTestDerivedWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andDelta:0.001 andMinX:minX andMinY:minY andMaxX:maxX andMaxY:maxY];
1914+
1915+
definition = [NSMutableString string];
1916+
[definition appendString:@"GEOGCS[\"ETRS89\","];
1917+
[definition appendString:@"DATUM[\"European_Terrestrial_Reference_System_1989\","];
1918+
[definition appendString:@"SPHEROID[\"GRS 1980\",6378137,298.257222101,"];
1919+
[definition appendString:@"AUTHORITY[\"EPSG\",\"7019\"]],"];
1920+
[definition appendString:@"TOWGS84[0,0,0,0,0,0,0],"];
1921+
[definition appendString:@"AUTHORITY[\"EPSG\",\"6258\"]],"];
1922+
[definition appendString:@"PRIMEM[\"Greenwich\",0,"];
1923+
[definition appendString:@"AUTHORITY[\"EPSG\",\"8901\"]],"];
1924+
[definition appendString:@"UNIT[\"degree\",0.0174532925199433,"];
1925+
[definition appendString:@"AUTHORITY[\"EPSG\",\"9122\"]],"];
1926+
[definition appendString:@"AUTHORITY[\"EPSG\",\"4258\"]]"];
1927+
1928+
[self projectionTestDerivedWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andMinX:minX andMinY:minY andMaxX:maxX andMaxY:maxY];
1929+
1930+
[self checkTransformWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andX:3.8142776 andY:51.285914 toAuthority:PROJ_AUTHORITY_EPSG andCode:@"23031" andX:556878.9016076007 andY:5682145.166264554 andDelta:0.001];
1931+
[self checkTransformWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andX:6.685 andY:51.425 toAuthority:PROJ_AUTHORITY_EPSG andCode:@"31466" andX:2547685.01212 andY:5699155.7345 andDelta:10.0];
1932+
[self checkTransformWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andX:5.387638889 andY:52.156160556 toAuthority:PROJ_AUTHORITY_EPSG andCode:@"28992" andX:155029.789189814 andY:463109.954032542 andDelta:0.01];
1933+
[self checkTransformWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andX:9.735465995870696 andY:64.68347938261206 toAuthority:PROJ_AUTHORITY_EPSG andCode:@"32633" andX:249032.839239894 andY:7183612.30572229 andDelta:0.000000001];
1934+
[self checkTransformWithAuthority:PROJ_AUTHORITY_EPSG andCode:code andDefinition:definition andX:33 andY:42 toAuthority:PROJ_AUTHORITY_EPSG andCode:@"32636" andX:500000 andY:4649776.224819178 andDelta:0.000000001];
1935+
1936+
}
1937+
18821938
/**
18831939
* Test EPSG 4326
18841940
*/

0 commit comments

Comments
 (0)