Exemplo n.º 1
0
    def __init__(self, x, y, degrees=False):
        self.x = x
        self.y = y

        self._is_degrees = degrees

        if degrees:
            com.validate_longitude(x, key='x')
            com.validate_latitude(y, key='y')
Exemplo n.º 2
0
    def __init__(self, west, south, east, north, degrees=False):

        self.west = west
        self.south = south
        self.east = east
        self.north = north

        self._is_degrees = degrees

        if degrees:
            self.west = com.validate_longitude(west, key='west')
            self.south = com.validate_latitude(south, key='south')
            self.east = com.validate_longitude(east, key='east')
            self.north = com.validate_latitude(north, key='north')