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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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_1sp_variant_b(context, latitude_nat_origin:, scale:, latitude_false_origin:, longitude_false_origin:, 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_1sp_variant_b projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)

    Latitude of natural origin

  • scale (Float)

    Scale factor

  • latitude_false_origin (Float)

    Latitude of false origin

  • longitude_false_origin (Float)

    Longitude of false origin

  • 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:



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

def self.lambert_conic_conformal_1sp_variant_b(context, latitude_nat_origin:, scale:, latitude_false_origin:, longitude_false_origin:, 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_1sp_variant_b(context, latitude_nat_origin, scale, latitude_false_origin, longitude_false_origin, 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(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:



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

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:



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

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:



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

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:



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

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:



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

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

.local_orthographic(context, latitude_nat_origin:, longitude_nat_origin:, ellipsoidal_height:, geocentric_x_origin:, geocentric_y_origin:, geocentric_z_origin:, angular_unit_name: "Degree", angular_unit_conversion_factor: 0.0174532925199433, linear_unit_name: "Metre", linear_unit_conversion_factor: 1) ⇒ Crs

Create a new local_orthographic projection

Parameters:

  • context (Context)

    Proj Context

  • latitude_nat_origin (Float)

    Latitude of natural origin

  • longitude_nat_origin (Float)

    Longitude of natural origin

  • ellipsoidal_height (Float)

    Ellipsoidal height

  • geocentric_x_origin (Float)

    Geocentric X origin

  • geocentric_y_origin (Float)

    Geocentric Y origin

  • geocentric_z_origin (Float)

    Geocentric Z 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:



1761
1762
1763
1764
1765
1766
1767
1768
1769
# File 'lib/proj/projection.rb', line 1761

def self.local_orthographic(context, latitude_nat_origin:, longitude_nat_origin:, ellipsoidal_height:, geocentric_x_origin:, geocentric_y_origin:, geocentric_z_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_local_orthographic(context, latitude_nat_origin, longitude_nat_origin, ellipsoidal_height, geocentric_x_origin, geocentric_y_origin, geocentric_z_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

.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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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_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:



147
148
149
150
151
152
153
154
155
# File 'lib/proj/projection.rb', line 147

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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:



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

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