unreal.GeographicCoordinatesFunctionLibrary¶
- class unreal.GeographicCoordinatesFunctionLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibraryGeographic Coordinates Function Library
C++ Source:
Plugin: GeoReferencing
Module: GeoReferencing
File: GeographicCoordinates.h
- classmethod make_geographic_coordinates_approximation(latitude, longitude, altitude) → GeographicCoordinates¶
Set the Coordinates from float approximation. USE WISELY as we can’t guarantee there will no be rounding due to IEEE754 float encoding !
- Parameters
- Returns
- Return type
- classmethod to_compact_text(geographic_coordinates, integral_digits_lat_lon=8, integral_digits_alti=2, as_dms=False) -> (Text, geographic_coordinates=GeographicCoordinates)¶
Converts a GeographicCoordinates value to formatted text, in the form ‘(X, Y, Z)’
- Parameters
geographic_coordinates (GeographicCoordinates) –
integral_digits_lat_lon (int32) –
integral_digits_alti (int32) –
as_dms (bool) –
- Returns
geographic_coordinates (GeographicCoordinates):
- Return type
- classmethod to_float_approximation(geographic_coordinates) -> (geographic_coordinates=GeographicCoordinates, out_latitude=float, out_longitude=float, out_altitude=float)¶
Get the Coordinates as a float approximation. USE WISELY as we can’t guarantee there will no be rounding due to IEEE754 float encoding !
- Parameters
geographic_coordinates (GeographicCoordinates) –
- Returns
geographic_coordinates (GeographicCoordinates):
out_latitude (float):
out_longitude (float):
out_altitude (float):
- Return type
tuple
- classmethod to_full_text(geographic_coordinates, integral_digits_lat_lon=8, integral_digits_alti=2, as_dms=False) -> (Text, geographic_coordinates=GeographicCoordinates)¶
Converts a GeographicCoordinates value to localized formatted text, in the form ‘X= Y= Z=’
- Parameters
geographic_coordinates (GeographicCoordinates) –
integral_digits_lat_lon (int32) –
integral_digits_alti (int32) –
as_dms (bool) –
- Returns
geographic_coordinates (GeographicCoordinates):
- Return type
- classmethod to_separate_texts(geographic_coordinates, integral_digits_lat_lon=8, integral_digits_alti=2, as_dms=False) -> (geographic_coordinates=GeographicCoordinates, out_latitude=Text, out_longitude=Text, out_altitude=Text)¶
Converts a GeographicCoordinates value to 3 separate text values
- Parameters
geographic_coordinates (GeographicCoordinates) –
integral_digits_lat_lon (int32) –
integral_digits_alti (int32) –
as_dms (bool) –
- Returns
geographic_coordinates (GeographicCoordinates):
out_latitude (Text):
out_longitude (Text):
out_altitude (Text):
- Return type
tuple