engine/process.py
def map_center(self, span):
        """Return a dictionary with the center and two marginal points
           of an area, derived from the entered data."""
        map_center = {'center_long': 0.0, 'center_lat': 0.0, 'point1_long': -180, 'point1_lat': -90, 'point2_long': 180,
                      'point2_lat': 90}

        if span:
            point1 = span[0].split(' ')
            point2 = span[1].split(' ')
            map_center['point1_long'], map_center['point1_lat'] = float(point1[0]), float(point1[1])
            map_center['point2_long'], map_center['point2_lat'] = float(point2[0]), float(point2[1])
            map_center['center_long'] = (map_center['point1_long'] + map_center['point2_long']) / 2
            map_center['center_lat'] = (map_center['point1_lat'] + map_center['point2_lat']) / 2

        return map_center
Return a dictionary with the center and two marginal points
           of an area, derived from the entered data.
Return a dictionary with the center and two marginal points
of an area, derived from the entered data.
Return a dictionary with the center and two marginal points of an area derived from the entered data .
def map_center(self, span):
        map_center = {'center_long': 0.0, 'center_lat': 0.0, 'point1_long': -180, 'point1_lat': -90, 'point2_long': 180,
                      'point2_lat': 90}
        if span:
            point1 = span[0].split(' ')
            point2 = span[1].split(' ')
            map_center['point1_long'], map_center['point1_lat'] = float(point1[0]), float(point1[1])
            map_center['point2_long'], map_center['point2_lat'] = float(point2[0]), float(point2[1])
            map_center['center_long'] = (map_center['point1_long'] + map_center['point2_long']) / 2
            map_center['center_lat'] = (map_center['point1_lat'] + map_center['point2_lat']) / 2
        return map_center
def map_center ( self , span ) : map_center = { 'center_long' : 0.0 , 'center_lat' : 0.0 , 'point1_long' : - 180 , 'point1_lat' : - 90 , 'point2_long' : 180 , 'point2_lat' : 90 } if span : point1 = span [ 0 ] . split ( ' ' ) point2 = span [ 1 ] . split ( ' ' ) map_center [ 'point1_long' ] , map_center [ 'point1_lat' ] = float ( point1 [ 0 ] ) , float ( point1 [ 1 ] ) map_center [ 'point2_long' ] , map_center [ 'point2_lat' ] = float ( point2 [ 0 ] ) , float ( point2 [ 1 ] ) map_center [ 'center_long' ] = ( map_center [ 'point1_long' ] + map_center [ 'point2_long' ] ) / 2 map_center [ 'center_lat' ] = ( map_center [ 'point1_lat' ] + map_center [ 'point2_lat' ] ) / 2 return map_center
Return a dictionary with the center and two marginal points
of an area, derived from the entered data.
Return a dictionary with the center and two marginal points of an area derived from the entered data .
"""Return a dictionary with the center and two marginal points
           of an area, derived from the entered data."""
self
span