Module: Proj::Projection

Defined in:
lib/proj/projection.rb

Overview

Projections are coordinate operations that are conversions. For more information about each projection @see proj.org/operations/projections/index.html

Class Method Summary collapse

Class Method Details

.albers_equal_area(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new albers_equal_area projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_false_origin (Float)

    Latitude of false origin

  • longitude_false_origin (Float)

    Longitude of false origin

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • easting_false_origin (Float)

    Easting of false origin

  • northing_false_origin (Float)

    Northing of false origin

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



199
200
201
202
203
204
205
206
207
# File 'lib/proj/projection.rb', line 199

def self.albers_equal_area(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_albers_equal_area(context, latitude_false_origin, longitude_false_origin, latitude_first_parallel, latitude_second_parallel, easting_false_origin, northing_false_origin, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.american_polyconic(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) ⇒ Crs

Create a new american_polyconic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'lib/proj/projection.rb', line 1269

def self.american_polyconic(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)
  ptr = Api.proj_create_conversion_american_polyconic(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.azimuthal_equidistant(context, latitude_nat_origin:, longitude_nat_origin:, 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) ⇒ Crs

Create a new azimuthal_equidistant projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



332
333
334
335
336
337
338
339
340
# File 'lib/proj/projection.rb', line 332

def self.azimuthal_equidistant(context, latitude_nat_origin:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_azimuthal_equidistant(context, latitude_nat_origin, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.bonne(context, latitude_nat_origin:, longitude_nat_origin:, 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) ⇒ Crs

Create a new bonne projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



382
383
384
385
386
387
388
389
390
# File 'lib/proj/projection.rb', line 382

def self.bonne(context, latitude_nat_origin:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_bonne(context, latitude_nat_origin, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.cassini_soldner(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) ⇒ Crs

Create a new cassini_soldner projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



457
458
459
460
461
462
463
464
465
# File 'lib/proj/projection.rb', line 457

def self.cassini_soldner(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)
  ptr = Api.proj_create_conversion_cassini_soldner(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_i(context, 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) ⇒ Crs

Create a new eckert_i projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



508
509
510
511
512
513
514
515
516
# File 'lib/proj/projection.rb', line 508

def self.eckert_i(context, 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)
  ptr = Api.proj_create_conversion_eckert_i(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_ii(context, 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) ⇒ Crs

Create a new eckert_ii projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



532
533
534
535
536
537
538
539
540
# File 'lib/proj/projection.rb', line 532

def self.eckert_ii(context, 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)
  ptr = Api.proj_create_conversion_eckert_ii(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_iii(context, 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) ⇒ Crs

Create a new eckert_iii projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



556
557
558
559
560
561
562
563
564
# File 'lib/proj/projection.rb', line 556

def self.eckert_iii(context, 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)
  ptr = Api.proj_create_conversion_eckert_iii(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_iv(context, 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) ⇒ Crs

Create a new eckert_iv projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



580
581
582
583
584
585
586
587
588
# File 'lib/proj/projection.rb', line 580

def self.eckert_iv(context, 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)
  ptr = Api.proj_create_conversion_eckert_iv(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_v(context, 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) ⇒ Crs

Create a new eckert_v projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



604
605
606
607
608
609
610
611
612
# File 'lib/proj/projection.rb', line 604

def self.eckert_v(context, 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)
  ptr = Api.proj_create_conversion_eckert_v(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.eckert_vi(context, 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) ⇒ Crs

Create a new eckert_vi projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



628
629
630
631
632
633
634
635
636
# File 'lib/proj/projection.rb', line 628

def self.eckert_vi(context, 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)
  ptr = Api.proj_create_conversion_eckert_vi(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.equal_earth(context, 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) ⇒ Crs

Create a new equal_earth projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1661
1662
1663
1664
1665
1666
1667
1668
1669
# File 'lib/proj/projection.rb', line 1661

def self.equal_earth(context, 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)
  ptr = Api.proj_create_conversion_equal_earth(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.equidistant_conic(context, center_latitude:, center_longitude:, latitude_first_parallel:, latitude_second_parallel:, 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) ⇒ Crs

Create a new equidistant_conic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



484
485
486
487
488
489
490
491
492
# File 'lib/proj/projection.rb', line 484

def self.equidistant_conic(context, center_latitude:, center_longitude:, latitude_first_parallel:, latitude_second_parallel:, 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)
  ptr = Api.proj_create_conversion_equidistant_conic(context, center_latitude, center_longitude, latitude_first_parallel, latitude_second_parallel, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.equidistant_cylindrical(context, latitude_first_parallel:, longitude_nat_origin:, 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) ⇒ Crs

Create a new equidistant_cylindrical projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_parallel (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



653
654
655
656
657
658
659
660
661
# File 'lib/proj/projection.rb', line 653

def self.equidistant_cylindrical(context, latitude_first_parallel:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_equidistant_cylindrical(context, latitude_first_parallel, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.equidistant_cylindrical_spherical(context, latitude_first_parallel:, longitude_nat_origin:, 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) ⇒ Crs

Create a new equidistant_cylindrical_spherical projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_parallel (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



678
679
680
681
682
683
684
685
686
# File 'lib/proj/projection.rb', line 678

def self.equidistant_cylindrical_spherical(context, latitude_first_parallel:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_equidistant_cylindrical_spherical(context, latitude_first_parallel, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.gall(context, 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) ⇒ Crs

Create a new gall projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



702
703
704
705
706
707
708
709
710
# File 'lib/proj/projection.rb', line 702

def self.gall(context, 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)
  ptr = Api.proj_create_conversion_gall(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.gauss_schreiber_transverse_mercator(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new gauss_schreiber_transverse_mercator projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



69
70
71
72
73
74
75
76
77
# File 'lib/proj/projection.rb', line 69

def self.gauss_schreiber_transverse_mercator(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_gauss_schreiber_transverse_mercator(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.geostationary_satellite_sweep_x(context, center_longitude:, height:, 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) ⇒ Crs

Create a new geostationary_satellite_sweep_x projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • height (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



775
776
777
778
779
780
781
782
783
# File 'lib/proj/projection.rb', line 775

def self.geostationary_satellite_sweep_x(context, center_longitude:, height:, 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)
  ptr = Api.proj_create_conversion_geostationary_satellite_sweep_x(context, center_longitude, height, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.geostationary_satellite_sweep_y(context, center_longitude:, height:, 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) ⇒ Crs

Create a new geostationary_satellite_sweep_y projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • height (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



800
801
802
803
804
805
806
807
808
# File 'lib/proj/projection.rb', line 800

def self.geostationary_satellite_sweep_y(context, center_longitude:, height:, 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)
  ptr = Api.proj_create_conversion_geostationary_satellite_sweep_y(context, center_longitude, height, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.gnomonic(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) ⇒ Crs

Create a new gnomonic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



825
826
827
828
829
830
831
832
833
# File 'lib/proj/projection.rb', line 825

def self.gnomonic(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)
  ptr = Api.proj_create_conversion_gnomonic(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.goode_homolosine(context, 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) ⇒ Crs

Create a new goode_homolosine projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



726
727
728
729
730
731
732
733
734
# File 'lib/proj/projection.rb', line 726

def self.goode_homolosine(context, 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)
  ptr = Api.proj_create_conversion_goode_homolosine(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.guam_projection(context, latitude_nat_origin:, longitude_nat_origin:, 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) ⇒ Crs

Create a new guam_projection projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



357
358
359
360
361
362
363
364
365
# File 'lib/proj/projection.rb', line 357

def self.guam_projection(context, latitude_nat_origin:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_guam_projection(context, latitude_nat_origin, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.hotine_oblique_mercator_two_point_natural_origin(context, latitude_projection_centre:, latitude_point1:, longitude_point1:, latitude_point2:, longitude_point2:, scale: 1, easting_projection_centre:, northing_projection_centre:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new hotine_oblique_mercator_two_point_natural_origin projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • latitude_point1 (Float)
  • longitude_point1 (Float)
  • latitude_point2 (Float)
  • longitude_point2 (Float)
  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • easting_projection_centre (Float)

    Easting at projection centre

  • northing_projection_centre (Float)

    Northing at projection centre

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



910
911
912
913
914
915
916
917
918
# File 'lib/proj/projection.rb', line 910

def self.hotine_oblique_mercator_two_point_natural_origin(context, latitude_projection_centre:, latitude_point1:, longitude_point1:, latitude_point2:, longitude_point2:, scale: 1, easting_projection_centre:, northing_projection_centre:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_hotine_oblique_mercator_two_point_natural_origin(context, latitude_projection_centre, latitude_point1, longitude_point1, latitude_point2, longitude_point2, scale, easting_projection_centre, northing_projection_centre, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.hotine_oblique_mercator_variant_a(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, angle_from_rectified_to_skrew_grid:, scale: 1, 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) ⇒ Crs

Create a new hotine_oblique_mercator_variant_a projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • longitude_projection_centre (Float)

    Longitude of projection centre

  • azimuth_initial_line (Float)

    Azimuth of initial line

  • angle_from_rectified_to_skrew_grid (Float)
  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



853
854
855
856
857
858
859
860
861
# File 'lib/proj/projection.rb', line 853

def self.hotine_oblique_mercator_variant_a(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, angle_from_rectified_to_skrew_grid:, scale: 1, 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)
  ptr = Api.proj_create_conversion_hotine_oblique_mercator_variant_a(context, latitude_projection_centre, longitude_projection_centre, azimuth_initial_line, angle_from_rectified_to_skrew_grid, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.hotine_oblique_mercator_variant_b(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, angle_from_rectified_to_skrew_grid:, scale: 1, easting_projection_centre:, northing_projection_centre:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new hotine_oblique_mercator_variant_b projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • longitude_projection_centre (Float)

    Longitude of projection centre

  • azimuth_initial_line (Float)

    Azimuth of initial line

  • angle_from_rectified_to_skrew_grid (Float)
  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • easting_projection_centre (Float)

    Easting at projection centre

  • northing_projection_centre (Float)

    Northing at projection centre

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



881
882
883
884
885
886
887
888
889
# File 'lib/proj/projection.rb', line 881

def self.hotine_oblique_mercator_variant_b(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, angle_from_rectified_to_skrew_grid:, scale: 1, easting_projection_centre:, northing_projection_centre:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_hotine_oblique_mercator_variant_b(context, latitude_projection_centre, longitude_projection_centre, azimuth_initial_line, angle_from_rectified_to_skrew_grid, scale, easting_projection_centre, northing_projection_centre, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.international_map_world_polyconic(context, center_longitude:, latitude_first_parallel:, latitude_second_parallel:, 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) ⇒ Crs

Create a new international_map_world_polyconic projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



963
964
965
966
967
968
969
970
971
# File 'lib/proj/projection.rb', line 963

def self.international_map_world_polyconic(context, center_longitude:, latitude_first_parallel:, latitude_second_parallel:, 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)
  ptr = Api.proj_create_conversion_international_map_world_polyconic(context, center_longitude, latitude_first_parallel, latitude_second_parallel, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.interrupted_goode_homolosine(context, 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) ⇒ Crs

Create a new interrupted_goode_homolosine projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



750
751
752
753
754
755
756
757
758
# File 'lib/proj/projection.rb', line 750

def self.interrupted_goode_homolosine(context, 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)
  ptr = Api.proj_create_conversion_interrupted_goode_homolosine(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.krovak(context, latitude_projection_centre:, longitude_of_origin:, colatitude_cone_axis:, latitude_pseudo_standard_parallel:, scale_factor_pseudo_standard_parallel:, 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) ⇒ Crs

Create a new krovak projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • longitude_of_origin (Float)

    Longitude of origin

  • colatitude_cone_axis (Float)

    Co-latitude of cone axis

  • latitude_pseudo_standard_parallel (Float)

    Latitude of pseudo standard

  • scale_factor_pseudo_standard_parallel (Float)

    Scale factor on pseudo

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1019
1020
1021
1022
1023
1024
1025
1026
1027
# File 'lib/proj/projection.rb', line 1019

def self.krovak(context, latitude_projection_centre:, longitude_of_origin:, colatitude_cone_axis:, latitude_pseudo_standard_parallel:, scale_factor_pseudo_standard_parallel:, 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)
  ptr = Api.proj_create_conversion_krovak(context, latitude_projection_centre, longitude_of_origin, colatitude_cone_axis, latitude_pseudo_standard_parallel, scale_factor_pseudo_standard_parallel, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.krovak_north_oriented(context, latitude_projection_centre:, longitude_of_origin:, colatitude_cone_axis:, latitude_pseudo_standard_parallel:, scale_factor_pseudo_standard_parallel:, 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) ⇒ Crs

Create a new krovak_north_oriented projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • longitude_of_origin (Float)

    Longitude of origin

  • colatitude_cone_axis (Float)

    Co-latitude of cone axis

  • latitude_pseudo_standard_parallel (Float)

    Latitude of pseudo standard

  • scale_factor_pseudo_standard_parallel (Float)

    Scale factor on pseudo

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



991
992
993
994
995
996
997
998
999
# File 'lib/proj/projection.rb', line 991

def self.krovak_north_oriented(context, latitude_projection_centre:, longitude_of_origin:, colatitude_cone_axis:, latitude_pseudo_standard_parallel:, scale_factor_pseudo_standard_parallel:, 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)
  ptr = Api.proj_create_conversion_krovak_north_oriented(context, latitude_projection_centre, longitude_of_origin, colatitude_cone_axis, latitude_pseudo_standard_parallel, scale_factor_pseudo_standard_parallel, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.laborde_oblique_mercator(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, scale: 1, 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) ⇒ Crs

Create a new laborde_oblique_mercator projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_projection_centre (Float)

    Latitude of projection centre

  • longitude_projection_centre (Float)

    Longitude of projection centre

  • azimuth_initial_line (Float)

    Azimuth of initial line

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



937
938
939
940
941
942
943
944
945
# File 'lib/proj/projection.rb', line 937

def self.laborde_oblique_mercator(context, latitude_projection_centre:, longitude_projection_centre:, azimuth_initial_line:, scale: 1, 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)
  ptr = Api.proj_create_conversion_laborde_oblique_mercator(context, latitude_projection_centre, longitude_projection_centre, azimuth_initial_line, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_azimuthal_equal_area(context, latitude_nat_origin:, longitude_nat_origin:, 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) ⇒ Crs

Create a new lambert_azimuthal_equal_area projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1044
1045
1046
1047
1048
1049
1050
1051
1052
# File 'lib/proj/projection.rb', line 1044

def self.lambert_azimuthal_equal_area(context, latitude_nat_origin:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_lambert_azimuthal_equal_area(context, latitude_nat_origin, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_conic_conformal_1sp(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new lambert_conic_conformal_1sp projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



225
226
227
228
229
230
231
232
233
# File 'lib/proj/projection.rb', line 225

def self.lambert_conic_conformal_1sp(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_lambert_conic_conformal_1sp(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_conic_conformal_2sp(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new lambert_conic_conformal_2sp projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_false_origin (Float)

    Latitude of false origin

  • longitude_false_origin (Float)

    Longitude of false origin

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • easting_false_origin (Float)

    Easting of false origin

  • northing_false_origin (Float)

    Northing of false origin

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



252
253
254
255
256
257
258
259
260
# File 'lib/proj/projection.rb', line 252

def self.lambert_conic_conformal_2sp(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_lambert_conic_conformal_2sp(context, latitude_false_origin, longitude_false_origin, latitude_first_parallel, latitude_second_parallel, easting_false_origin, northing_false_origin, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_conic_conformal_2sp_belgium(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new lambert_conic_conformal_2sp_belgium projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_false_origin (Float)

    Latitude of false origin

  • longitude_false_origin (Float)

    Longitude of false origin

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • easting_false_origin (Float)

    Easting of false origin

  • northing_false_origin (Float)

    Northing of false origin

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



307
308
309
310
311
312
313
314
315
# File 'lib/proj/projection.rb', line 307

def self.lambert_conic_conformal_2sp_belgium(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_lambert_conic_conformal_2sp_belgium(context, latitude_false_origin, longitude_false_origin, latitude_first_parallel, latitude_second_parallel, easting_false_origin, northing_false_origin, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_conic_conformal_2sp_michigan(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, ellipsoid_scaling_factor:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new lambert_conic_conformal_2sp_michigan projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_false_origin (Float)

    Latitude of false origin

  • longitude_false_origin (Float)

    Longitude of false origin

  • latitude_first_parallel (Float)
  • latitude_second_parallel (Float)
  • easting_false_origin (Float)

    Easting of false origin

  • northing_false_origin (Float)

    Northing of false origin

  • ellipsoid_scaling_factor (Float)
  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



280
281
282
283
284
285
286
287
288
# File 'lib/proj/projection.rb', line 280

def self.lambert_conic_conformal_2sp_michigan(context, latitude_false_origin:, longitude_false_origin:, latitude_first_parallel:, latitude_second_parallel:, easting_false_origin:, northing_false_origin:, ellipsoid_scaling_factor:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_lambert_conic_conformal_2sp_michigan(context, latitude_false_origin, longitude_false_origin, latitude_first_parallel, latitude_second_parallel, easting_false_origin, northing_false_origin, ellipsoid_scaling_factor, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_cylindrical_equal_area(context, latitude_first_parallel:, longitude_nat_origin:, 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) ⇒ Crs

Create a new lambert_cylindrical_equal_area projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_parallel (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



432
433
434
435
436
437
438
439
440
# File 'lib/proj/projection.rb', line 432

def self.lambert_cylindrical_equal_area(context, latitude_first_parallel:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_lambert_cylindrical_equal_area(context, latitude_first_parallel, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.lambert_cylindrical_equal_area_spherical(context, latitude_first_parallel:, longitude_nat_origin:, 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) ⇒ Crs

Create a new lambert_cylindrical_equal_area_spherical projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_parallel (Float)
  • longitude_nat_origin (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



407
408
409
410
411
412
413
414
415
# File 'lib/proj/projection.rb', line 407

def self.lambert_cylindrical_equal_area_spherical(context, latitude_first_parallel:, longitude_nat_origin:, 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)
  ptr = Api.proj_create_conversion_lambert_cylindrical_equal_area_spherical(context, latitude_first_parallel, longitude_nat_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.mercator_variant_a(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new mercator_variant_a projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1094
1095
1096
1097
1098
1099
1100
1101
1102
# File 'lib/proj/projection.rb', line 1094

def self.mercator_variant_a(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_mercator_variant_a(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.mercator_variant_b(context, latitude_first_parallel:, 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) ⇒ Crs

Create a new mercator_variant_b projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_parallel (Float)
  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1119
1120
1121
1122
1123
1124
1125
1126
1127
# File 'lib/proj/projection.rb', line 1119

def self.mercator_variant_b(context, latitude_first_parallel:, 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)
  ptr = Api.proj_create_conversion_mercator_variant_b(context, latitude_first_parallel, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.miller_cylindrical(context, 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) ⇒ Crs

Create a new miller_cylindrical projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1068
1069
1070
1071
1072
1073
1074
1075
1076
# File 'lib/proj/projection.rb', line 1068

def self.miller_cylindrical(context, 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)
  ptr = Api.proj_create_conversion_miller_cylindrical(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.mollweide(context, 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) ⇒ Crs

Create a new mollweide projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1168
1169
1170
1171
1172
1173
1174
1175
1176
# File 'lib/proj/projection.rb', line 1168

def self.mollweide(context, 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)
  ptr = Api.proj_create_conversion_mollweide(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.new_zealand_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) ⇒ Crs

Create a new new_zealand_mapping_grid projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1193
1194
1195
1196
1197
1198
1199
1200
1201
# File 'lib/proj/projection.rb', line 1193

def self.new_zealand_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)
  ptr = Api.proj_create_conversion_new_zealand_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)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.oblique_stereographic(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new oblique_stereographic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1219
1220
1221
1222
1223
1224
1225
1226
1227
# File 'lib/proj/projection.rb', line 1219

def self.oblique_stereographic(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_oblique_stereographic(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.orthographic(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) ⇒ Crs

Create a new orthographic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1244
1245
1246
1247
1248
1249
1250
1251
1252
# File 'lib/proj/projection.rb', line 1244

def self.orthographic(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)
  ptr = Api.proj_create_conversion_orthographic(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.polar_stereographic_variant_a(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new polar_stereographic_variant_a projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1295
1296
1297
1298
1299
1300
1301
1302
1303
# File 'lib/proj/projection.rb', line 1295

def self.polar_stereographic_variant_a(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_polar_stereographic_variant_a(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.polar_stereographic_variant_b(context, latitude_standard_parallel:, longitude_of_origin:, 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) ⇒ Crs

Create a new polar_stereographic_variant_b projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_standard_parallel (Float)
  • longitude_of_origin (Float)

    Longitude of origin

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/proj/projection.rb', line 1320

def self.polar_stereographic_variant_b(context, latitude_standard_parallel:, longitude_of_origin:, 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)
  ptr = Api.proj_create_conversion_polar_stereographic_variant_b(context, latitude_standard_parallel, longitude_of_origin, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.pole_rotation_grib_convention(context, south_pole_lat_in_unrotated_crs:, south_pole_long_in_unrotated_crs:, axis_rotation:, angular_unit_name: "Degree", angular_unit_conversion_factor:) ⇒ Crs

Create a new pole_rotation_grib_convention projection

Parameters:

  • context (Context)

    Proj Context

  • south_pole_lat_in_unrotated_crs (Float)
  • south_pole_long_in_unrotated_crs (Float)
  • axis_rotation (Float)
  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

Returns:

See Also:



1710
1711
1712
1713
1714
1715
1716
1717
1718
# File 'lib/proj/projection.rb', line 1710

def self.pole_rotation_grib_convention(context, south_pole_lat_in_unrotated_crs:, south_pole_long_in_unrotated_crs:, axis_rotation:, angular_unit_name: "Degree", angular_unit_conversion_factor:)
  ptr = Api.proj_create_conversion_pole_rotation_grib_convention(context, south_pole_lat_in_unrotated_crs, south_pole_long_in_unrotated_crs, axis_rotation, angular_unit_name, angular_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.pole_rotation_netcdf_cf_convention(context, grid_north_pole_latitude:, grid_north_pole_longitude:, north_pole_grid_longitude:, angular_unit_name: "Degree", angular_unit_conversion_factor:) ⇒ Crs

Create a new pole_rotation_netcdf_cf_convention projection

Parameters:

  • context (Context)

    Proj Context

  • grid_north_pole_latitude (Float)
  • grid_north_pole_longitude (Float)
  • north_pole_grid_longitude (Float)
  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

Returns:

See Also:



1732
1733
1734
1735
1736
1737
1738
1739
1740
# File 'lib/proj/projection.rb', line 1732

def self.pole_rotation_netcdf_cf_convention(context, grid_north_pole_latitude:, grid_north_pole_longitude:, north_pole_grid_longitude:, angular_unit_name: "Degree", angular_unit_conversion_factor:)
  ptr = Api.proj_create_conversion_pole_rotation_netcdf_cf_convention(context, grid_north_pole_latitude, grid_north_pole_longitude, north_pole_grid_longitude, angular_unit_name, angular_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

Create a new popular_visualisation_pseudo_mercator projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1144
1145
1146
1147
1148
1149
1150
1151
1152
# File 'lib/proj/projection.rb', line 1144

def self.popular_visualisation_pseudo_mercator(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)
  ptr = Api.proj_create_conversion_popular_visualisation_pseudo_mercator(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.quadrilateralized_spherical_cube(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) ⇒ Crs

Create a new quadrilateralized_spherical_cube projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1612
1613
1614
1615
1616
1617
1618
1619
1620
# File 'lib/proj/projection.rb', line 1612

def self.quadrilateralized_spherical_cube(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)
  ptr = Api.proj_create_conversion_quadrilateralized_spherical_cube(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.robinson(context, 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) ⇒ Crs

Create a new robinson projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1344
1345
1346
1347
1348
1349
1350
1351
1352
# File 'lib/proj/projection.rb', line 1344

def self.robinson(context, 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)
  ptr = Api.proj_create_conversion_robinson(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.sinusoidal(context, 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) ⇒ Crs

Create a new sinusoidal projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1368
1369
1370
1371
1372
1373
1374
1375
1376
# File 'lib/proj/projection.rb', line 1368

def self.sinusoidal(context, 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)
  ptr = Api.proj_create_conversion_sinusoidal(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.spherical_cross_track_height(context, peg_point_lat:, peg_point_long:, peg_point_heading:, peg_point_height:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new spherical_cross_track_height projection

Parameters:

  • context (Context)

    Proj Context

  • peg_point_lat (Float)

    Peg latitude (in degree)

  • peg_point_long (Float)

    Peg longitude (in degree)

  • peg_point_heading (Float)

    Peg heading (in degree)

  • peg_point_height (Float)
  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1637
1638
1639
1640
1641
1642
1643
1644
1645
# File 'lib/proj/projection.rb', line 1637

def self.spherical_cross_track_height(context, peg_point_lat:, peg_point_long:, peg_point_heading:, peg_point_height:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1)
  ptr = Api.proj_create_conversion_spherical_cross_track_height(context, peg_point_lat, peg_point_long, peg_point_heading, peg_point_height, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.stereographic(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new stereographic projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1394
1395
1396
1397
1398
1399
1400
1401
1402
# File 'lib/proj/projection.rb', line 1394

def self.stereographic(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_stereographic(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.transverse_mercator(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new transverse_mercator projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



43
44
45
46
47
48
49
50
51
# File 'lib/proj/projection.rb', line 43

def self.transverse_mercator(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_transverse_mercator(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.transverse_mercator_south_oriented(context, center_latitude:, center_longitude:, scale: 1, 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) ⇒ Crs

Create a new transverse_mercator_south_oriented projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • scale (Float) (defaults to: 1)

    Scale Factor. Default is 1.

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



95
96
97
98
99
100
101
102
103
# File 'lib/proj/projection.rb', line 95

def self.transverse_mercator_south_oriented(context, center_latitude:, center_longitude:, scale: 1, 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)
  ptr = Api.proj_create_conversion_transverse_mercator_south_oriented(context, center_latitude, center_longitude, scale, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.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) ⇒ Crs

Create a new tunisia_mapping_grid projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



147
148
149
150
151
152
153
154
155
# File 'lib/proj/projection.rb', line 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)
  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)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.tunisia_mining_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) ⇒ Crs

Create a new tunisia_mining_grid projection

Parameters:

  • context (Context)

    Proj Context

  • center_latitude (Float)

    Latitude of natural origin/Center Latitude

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



172
173
174
175
176
177
178
179
180
# File 'lib/proj/projection.rb', line 172

def self.tunisia_mining_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)
  ptr = Api.proj_create_conversion_tunisia_mining_grid(context, center_latitude, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.two_point_equidistant(context, latitude_first_point:, longitude_first_point:, latitude_second_point:, longitude_second_point:, 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) ⇒ Crs

Create a new two_point_equidistant projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_first_point (Float)
  • longitude_first_point (Float)
  • latitude_second_point (Float)
  • longitude_second_point (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



122
123
124
125
126
127
128
129
130
# File 'lib/proj/projection.rb', line 122

def self.two_point_equidistant(context, latitude_first_point:, longitude_first_point:, latitude_second_point:, longitude_second_point:, 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)
  ptr = Api.proj_create_conversion_two_point_equidistant(context, latitude_first_point, longitude_first_point, latitude_second_point, longitude_second_point, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.utm(context, zone:, north: true) ⇒ Crs

Create a new utm projection

Parameters:

  • context (Context)

    Proj Context

  • zone (int)

    UTM Zone

  • north (int) (defaults to: true)

    Specifies if this is northern or southern hemisphere

Returns:

See Also:



17
18
19
20
21
22
23
24
25
# File 'lib/proj/projection.rb', line 17

def self.utm(context, zone:, north: true)
  ptr = Api.proj_create_conversion_utm(context, zone, north ? 1 : 0)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.van_der_grinten(context, 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) ⇒ Crs

Create a new van_der_grinten projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1418
1419
1420
1421
1422
1423
1424
1425
1426
# File 'lib/proj/projection.rb', line 1418

def self.van_der_grinten(context, 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)
  ptr = Api.proj_create_conversion_van_der_grinten(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.vertical_perspective(context, topo_origin_lat:, topo_origin_long:, topo_origin_height:, view_point_height:, 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) ⇒ Crs

Create a new vertical_perspective projection

Parameters:

  • context (Context)

    Proj Context

  • topo_origin_lat (Float)
  • topo_origin_long (Float)
  • topo_origin_height (Float)
  • view_point_height (Float)
  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1688
1689
1690
1691
1692
1693
1694
1695
1696
# File 'lib/proj/projection.rb', line 1688

def self.vertical_perspective(context, topo_origin_lat:, topo_origin_long:, topo_origin_height:, view_point_height:, 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)
  ptr = Api.proj_create_conversion_vertical_perspective(context, topo_origin_lat, topo_origin_long, topo_origin_height, view_point_height, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_i(context, 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) ⇒ Crs

Create a new wagner_i projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1442
1443
1444
1445
1446
1447
1448
1449
1450
# File 'lib/proj/projection.rb', line 1442

def self.wagner_i(context, 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)
  ptr = Api.proj_create_conversion_wagner_i(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_ii(context, 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) ⇒ Crs

Create a new wagner_ii projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1466
1467
1468
1469
1470
1471
1472
1473
1474
# File 'lib/proj/projection.rb', line 1466

def self.wagner_ii(context, 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)
  ptr = Api.proj_create_conversion_wagner_ii(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_iii(context, latitude_true_scale:, 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) ⇒ Crs

Create a new wagner_iii projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_true_scale (Float)
  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'lib/proj/projection.rb', line 1491

def self.wagner_iii(context, latitude_true_scale:, 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)
  ptr = Api.proj_create_conversion_wagner_iii(context, latitude_true_scale, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_iv(context, 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) ⇒ Crs

Create a new wagner_iv projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1515
1516
1517
1518
1519
1520
1521
1522
1523
# File 'lib/proj/projection.rb', line 1515

def self.wagner_iv(context, 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)
  ptr = Api.proj_create_conversion_wagner_iv(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_v(context, 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) ⇒ Crs

Create a new wagner_v projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1539
1540
1541
1542
1543
1544
1545
1546
1547
# File 'lib/proj/projection.rb', line 1539

def self.wagner_v(context, 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)
  ptr = Api.proj_create_conversion_wagner_v(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_vi(context, 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) ⇒ Crs

Create a new wagner_vi projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1563
1564
1565
1566
1567
1568
1569
1570
1571
# File 'lib/proj/projection.rb', line 1563

def self.wagner_vi(context, 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)
  ptr = Api.proj_create_conversion_wagner_vi(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end

.wagner_vii(context, 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) ⇒ Crs

Create a new wagner_vii projection

Parameters:

  • context (Context)

    Proj Context

  • center_longitude (Float)

    Longitude of natural origin/Central Meridian

  • false_easting (Float) (defaults to: 0)

    False Easting. Default is 0.

  • false_northing (Float) (defaults to: 0)

    False Northing. Default is 0.

  • angular_unit_name (String) (defaults to: "Degree")

    Name of the angular units. Default is Degree.

  • angular_unit_conversion_factor (Float) (defaults to: 0.0174532925199433)

    Conversion factor from angular unit to radians. Default is 0.0174532925199433.

  • linear_unit_name (String) (defaults to: "Metre")

    Name of the linear units. Default is Metre

  • linear_unit_conversion_factor (Float) (defaults to: 1)

    Conversion factor from linear unit to meters. Default is 1.

Returns:

See Also:



1587
1588
1589
1590
1591
1592
1593
1594
1595
# File 'lib/proj/projection.rb', line 1587

def self.wagner_vii(context, 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)
  ptr = Api.proj_create_conversion_wagner_vii(context, center_longitude, false_easting, false_northing, angular_unit_name, angular_unit_conversion_factor, linear_unit_name, linear_unit_conversion_factor)

  if ptr.null?
    Error.check_context(context)
  end

  Conversion.create_object(ptr, context)
end