@@ -22,6 +22,7 @@ pub(crate) struct PyGeoKeyDirectory {
2222 geog_inv_flattening : Option < f64 > ,
2323 geog_azimuth_units : Option < u16 > ,
2424 geog_prime_meridian_long : Option < f64 > ,
25+ geog_towgs84 : Option < Vec < f64 > > ,
2526
2627 projected_type : Option < u16 > ,
2728 proj_citation : Option < String > ,
@@ -47,6 +48,7 @@ pub(crate) struct PyGeoKeyDirectory {
4748 proj_scale_at_center : Option < f64 > ,
4849 proj_azimuth_angle : Option < f64 > ,
4950 proj_straight_vert_pole_long : Option < f64 > ,
51+ proj_rectified_grid_angle : Option < f64 > ,
5052
5153 vertical : Option < u16 > ,
5254 vertical_citation : Option < String > ,
@@ -110,6 +112,9 @@ impl PyGeoKeyDirectory {
110112 if self . geog_prime_meridian_long . is_some ( ) {
111113 keys. push ( "geog_prime_meridian_long" ) ;
112114 }
115+ if self . geog_towgs84 . is_some ( ) {
116+ keys. push ( "geog_towgs84" ) ;
117+ }
113118 if self . projected_type . is_some ( ) {
114119 keys. push ( "projected_type" ) ;
115120 }
@@ -182,6 +187,9 @@ impl PyGeoKeyDirectory {
182187 if self . proj_straight_vert_pole_long . is_some ( ) {
183188 keys. push ( "proj_straight_vert_pole_long" ) ;
184189 }
190+ if self . proj_rectified_grid_angle . is_some ( ) {
191+ keys. push ( "proj_rectified_grid_angle" ) ;
192+ }
185193 if self . vertical . is_some ( ) {
186194 keys. push ( "vertical" ) ;
187195 }
@@ -224,6 +232,7 @@ impl PyGeoKeyDirectory {
224232 "geog_inv_flattening" => self . geog_inv_flattening . into_bound_py_any ( py) ,
225233 "geog_azimuth_units" => self . geog_azimuth_units . into_bound_py_any ( py) ,
226234 "geog_prime_meridian_long" => self . geog_prime_meridian_long . into_bound_py_any ( py) ,
235+ "geog_towgs84" => self . geog_towgs84 . clone ( ) . into_bound_py_any ( py) ,
227236 "projected_type" => self . projected_type . into_bound_py_any ( py) ,
228237 "proj_citation" => self . proj_citation . as_ref ( ) . into_bound_py_any ( py) ,
229238 "projection" => self . projection . into_bound_py_any ( py) ,
@@ -250,6 +259,7 @@ impl PyGeoKeyDirectory {
250259 "proj_straight_vert_pole_long" => {
251260 self . proj_straight_vert_pole_long . into_bound_py_any ( py)
252261 }
262+ "proj_rectified_grid_angle" => self . proj_rectified_grid_angle . into_bound_py_any ( py) ,
253263 "vertical" => self . vertical . into_bound_py_any ( py) ,
254264 "vertical_citation" => self . vertical_citation . as_ref ( ) . into_bound_py_any ( py) ,
255265 "vertical_datum" => self . vertical_datum . into_bound_py_any ( py) ,
@@ -282,6 +292,7 @@ impl From<PyGeoKeyDirectory> for GeoKeyDirectory {
282292 geog_inv_flattening : value. geog_inv_flattening ,
283293 geog_azimuth_units : value. geog_azimuth_units ,
284294 geog_prime_meridian_long : value. geog_prime_meridian_long ,
295+ geog_towgs84 : value. geog_towgs84 ,
285296 projected_type : value. projected_type ,
286297 proj_citation : value. proj_citation ,
287298 projection : value. projection ,
@@ -306,6 +317,7 @@ impl From<PyGeoKeyDirectory> for GeoKeyDirectory {
306317 proj_scale_at_center : value. proj_scale_at_center ,
307318 proj_azimuth_angle : value. proj_azimuth_angle ,
308319 proj_straight_vert_pole_long : value. proj_straight_vert_pole_long ,
320+ proj_rectified_grid_angle : value. proj_rectified_grid_angle ,
309321 vertical : value. vertical ,
310322 vertical_citation : value. vertical_citation ,
311323 vertical_datum : value. vertical_datum ,
@@ -334,6 +346,7 @@ impl From<GeoKeyDirectory> for PyGeoKeyDirectory {
334346 geog_inv_flattening : value. geog_inv_flattening ,
335347 geog_azimuth_units : value. geog_azimuth_units ,
336348 geog_prime_meridian_long : value. geog_prime_meridian_long ,
349+ geog_towgs84 : value. geog_towgs84 ,
337350 projected_type : value. projected_type ,
338351 proj_citation : value. proj_citation ,
339352 projection : value. projection ,
@@ -358,6 +371,7 @@ impl From<GeoKeyDirectory> for PyGeoKeyDirectory {
358371 proj_scale_at_center : value. proj_scale_at_center ,
359372 proj_azimuth_angle : value. proj_azimuth_angle ,
360373 proj_straight_vert_pole_long : value. proj_straight_vert_pole_long ,
374+ proj_rectified_grid_angle : value. proj_rectified_grid_angle ,
361375 vertical : value. vertical ,
362376 vertical_citation : value. vertical_citation ,
363377 vertical_datum : value. vertical_datum ,
0 commit comments