GXLL2 class

class GXLL2(handle=0)

GXLL2 class.

local datum lookup creator ll2 methods are used to create GXLL2 objects. GXLL2 objects contain latitude, longitude correction lookup tables to convert between datums.

classmethod create(lon0, lat0, lon, lat, nlon, nlat, in_ipj, out_ipj)

Create an empty GXLL2 table to be filled

Parameters:
  • lon0 (float) – Longitude origin
  • lat0 (float) – Latitude origin
  • lon (float) – Longitude increment
  • lat (float) – Latitude increment
  • nlon (int) – # longitudes
  • nlat (int) – # latitudes
  • in_ipj (GXIPJ) – Input projection
  • out_ipj (GXIPJ) – Output projection
Returns:

GXLL2 Object

Return type:

GXLL2

New in version 5.0.

License: Geosoft End-User License

See also

destroy, set_row, save

is_null()

Check if this is a null (undefined) instance

Returns:True if this is a null (undefined) instance, False otherwise.
Return type:bool
classmethod null()

A null (undefined) instance of GXLL2

Returns:A null GXLL2
Return type:GXLL2
save(name)

Save an GXLL2 to a named resource

Parameters:name (str) – Named resource

New in version 5.0.

License: Geosoft End-User License

Note: The named resource is the name of the datum transform define inside square brackets in the datum transform name in the datumtrf table.

set_row(row, lon_vv, lat_vv)

Define a row of the GXLL2

Parameters:
  • row (int) – The row to set
  • lon_vv (GXVV) – Longitude corrections
  • lat_vv (GXVV) – Latitude corrections

New in version 5.0.

License: Geosoft End-User License

Note: The correction data is in degrees, added to the input datum to product output datum results.

The GXVV lengths must be equal to #longitudes defined by create.