@@ -136,5 +136,51 @@ public void TestConvertWgs84ToEPSG26910_DS()
136136 Assert.That(ptI[1], Is.EqualTo(6246615.391161).Within(0.01), "Northing");
137137 */
138138 }
139+
140+ [ Test ( Description =
141+ "Issue #64, Wrong parameter order when calling base constructor (in systems extending HorizontalCoordinateSystem)" ) ]
142+ public void TestHorizontalCoordinateSystemImplementationsAbbreviationAndRemarks ( )
143+ {
144+ string abbreviation = "TestAbbreviation" ;
145+ string remarks = "This is a test remark." ;
146+
147+ // construct a GeographicCoordinateSystem to test
148+ var gcsAxes = new List < AxisInfo > ( 2 ) ;
149+ gcsAxes . Add ( new AxisInfo ( "Lon" , AxisOrientationEnum . East ) ) ;
150+ gcsAxes . Add ( new AxisInfo ( "Lat" , AxisOrientationEnum . North ) ) ;
151+
152+ var geographicCoordinateSystem =
153+ new GeographicCoordinateSystem ( AngularUnit . Degrees , HorizontalDatum . WGS84 , PrimeMeridian . Greenwich , gcsAxes ,
154+ "WGS 84" , "EPSG" , 4326 , string . Empty , abbreviation , remarks ) ;
155+
156+ Assert . That ( geographicCoordinateSystem . Abbreviation , Is . EqualTo ( abbreviation ) ) ;
157+ Assert . That ( geographicCoordinateSystem . Remarks , Is . EqualTo ( remarks ) ) ;
158+
159+ // construct a ProjectedCoordinateSystem to test
160+ var pInfo = new List < ProjectionParameter >
161+ {
162+ new ProjectionParameter ( "latitude_of_origin" , 0.0 ) ,
163+ new ProjectionParameter ( "central_meridian" , 0.0 ) ,
164+ new ProjectionParameter ( "false_easting" , 0.0 ) ,
165+ new ProjectionParameter ( "false_northing" , 0.0 )
166+ } ;
167+
168+ var proj = new Projection ( "Popular Visualisation Pseudo-Mercator" , pInfo , "Popular Visualisation Pseudo-Mercator" , "EPSG" , 3856 ,
169+ "Pseudo-Mercator" , string . Empty , string . Empty ) ;
170+
171+ var pcsAxes = new List < AxisInfo >
172+ {
173+ new AxisInfo ( "East" , AxisOrientationEnum . East ) ,
174+ new AxisInfo ( "North" , AxisOrientationEnum . North )
175+ } ;
176+
177+ var projectedCoordinateSystem =
178+ new ProjectedCoordinateSystem ( HorizontalDatum . WGS84 , GeographicCoordinateSystem . WGS84 , LinearUnit . Metre , proj , pcsAxes ,
179+ "WGS 84 / Pseudo-Mercator" , "EPSG" , 3857 , "WGS 84 / Popular Visualisation Pseudo-Mercator" ,
180+ remarks , abbreviation ) ;
181+
182+ Assert . That ( projectedCoordinateSystem . Abbreviation , Is . EqualTo ( abbreviation ) ) ;
183+ Assert . That ( projectedCoordinateSystem . Remarks , Is . EqualTo ( remarks ) ) ;
184+ }
139185 }
140186}
0 commit comments