GXDATALINKD class

class GXDATALINKD(handle=0)[source]

GXDATALINKD class.

DATALINK Display object.

__init__(handle=0)[source]
classmethod create_arc_lyr(arc_lyr_file)[source]

Create an GXDATALINKD object from a ArcGIS LYR file

Parameters:

arc_lyr_file (str) – Arc LYR file name

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 6.4.

License: Geosoft End-User License

Note: Needs ArcEngine licence.

classmethod create_arc_lyr_ex(arc_lyr_file, o3d_group)[source]

Create an GXDATALINKD object from a ArcGIS LYR file

Parameters:
  • arc_lyr_file (str) – Arc LYR file name

  • o3d_group (int) – Display as 3D Group? (as opposed to bitmap on plane)

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 9.0.

License: Geosoft End-User License

Note: Needs ArcEngine licence.

classmethod create_arc_lyr_from_tmp(arc_lyr_file)[source]

Create an GXDATALINKD object from a temporary ArcGIS LYR file

Parameters:

arc_lyr_file (str) – Arc LYR file name

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 7.0.

License: Geosoft Open License

Note: Needs ArcEngine licence.

classmethod create_arc_lyr_from_tmp_ex(arc_lyr_file, o3d_group)[source]

Create an GXDATALINKD object from a temporary ArcGIS LYR file

Parameters:
  • arc_lyr_file (str) – Arc LYR file name

  • o3d_group (int) – Display as 3D Group? (as opposed to bitmap on plane)

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 9.0.

License: Geosoft Open License

Note: Needs ArcEngine licence.

classmethod create_arc_lyrx(arc_lyrx_file, arc_srylx_file, root_name)[source]

Create an GXDATALINKD object from a ArcGIS LYRX file

Parameters:
  • arc_lyrx_file (str) – Arc LYRX file name

  • arc_srylx_file (str) – Layer Stylx file name

  • root_name (str_ref) – root layer name

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 2024.1.

License: Geosoft End-User License

Note: Needs ArcGIS Pro SDK and Map SDK licence.

classmethod create_bing(layer)[source]

Create an GXDATALINKD object for a BING dataset

Parameters:

layer (int) – 0 = Aerial, 1 = Road

Returns:

GXDATALINKD handle, terminates if creation fails

Return type:

GXDATALINKD

New in version 8.0.

License: Geosoft End-User License

get_extents(min_x, max_x, min_y, max_y)[source]

Get the data extents of the DATALINK Display object.

Parameters:

New in version 6.4.

License: Geosoft Open License

get_ipj(ipj)[source]

Get the projection of the DATALINK Display object.

Parameters:

ipj (GXIPJ) – GXIPJ object to set the projection to

New in version 6.4.

License: Geosoft Open License

is_null()[source]

Check if this is a null (undefined) instance

Returns:

True if this is a null (undefined) instance, False otherwise.

Return type:

bool

classmethod null()[source]

A null (undefined) instance of GXDATALINKD

Returns:

A null GXDATALINKD

Return type:

GXDATALINKD