Skip to content

Commit d85c42b

Browse files
committed
Remove deprecated Projection.tunisia_mapping_grid method.
The PROJ C API deprecated proj_create_conversion_tunisia_mapping_grid in favor of proj_create_conversion_tunisia_mining_grid (typo fix).
1 parent cecdd34 commit d85c42b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

lib/proj/projection.rb

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,6 @@ def self.two_point_equidistant(context, latitude_first_point:, longitude_first_p
129129
Conversion.create_object(ptr, context)
130130
end
131131

132-
# Create a new tunisia_mapping_grid projection
133-
#
134-
# @see https://proj.org/operations/projections/index.html
135-
#
136-
# @param context [Context] Proj Context
137-
# @param center_latitude [Float] Latitude of natural origin/Center Latitude
138-
# @param center_longitude [Float] Longitude of natural origin/Central Meridian
139-
# @param false_easting [Float] False Easting. Default is 0.
140-
# @param false_northing [Float] False Northing. Default is 0.
141-
# @param angular_unit_name [String] Name of the angular units. Default is Degree.
142-
# @param angular_unit_conversion_factor [Float] Conversion factor from angular unit to radians. Default is 0.0174532925199433.
143-
# @param linear_unit_name [String] Name of the linear units. Default is Metre
144-
# @param linear_unit_conversion_factor [Float] Conversion factor from linear unit to meters. Default is 1.
145-
#
146-
# @return [Crs]
147-
def self.tunisia_mapping_grid(context, center_latitude:, center_longitude:, false_easting: 0, false_northing: 0, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
148-
ptr = Api.proj_create_conversion_tunisia_mapping_grid(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)
149-
150-
if ptr.null?
151-
Error.check_context(context)
152-
end
153-
154-
Conversion.create_object(ptr, context)
155-
end
156-
157132
# Create a new tunisia_mining_grid projection
158133
#
159134
# @see https://proj.org/operations/projections/index.html

0 commit comments

Comments
 (0)