4.1.3. GridPoint¶
-
class
pyprom.lib.locations.gridpoint.GridPoint(x, y, elevation)[source]¶ A GridPoint Object. This is a Child of
pyprom.lib.locations.base_gridpoint.BaseGridPointIn essence, this is an x,y coordinate which also includes elevation.-
__init__(x, y, elevation)[source]¶ - Parameters
x (int) – x coordinate
y (int) – y coordinate
elevation (float, int) – elevation in meters
-
__str__()¶ - Returns
String representation of this object
-
__unicode__()¶ - Returns
String representation of this object
-
classmethod
from_dict(gridPointDict)[source]¶ Create this object from dictionary representation
- Parameters
gridPointDict (dict) – dict() representation of this object.
- Returns
GridPoint from dict()
- Return type
-
classmethod
from_tuple(tup)[source]¶ Create this object from tuple representation :param tup: :return: GridPoint from tuple() :rtype:
GridPoint
-
toSpotElevation(datamap)[source]¶ Converts this GridPoint into a SpotElevation using a datamap.
- Parameters
datamap (
pyprom.lib.datamap.DataMap) – Datamap object- Returns
GridPoint as a SpotElevation object.
- Return type
-