mirror of
https://github.com/OSURoboticsClub/Rover_2017_2018.git
synced 2025-11-08 18:21:15 +00:00
Creates Big Image
This commit is contained in:
@@ -124,9 +124,8 @@ class GMapsStitcher(object):
|
||||
|
||||
def _pixels_to_lat(self, iterator, lat_pixels):
|
||||
# Magic Lines
|
||||
degree = self._pixels_to_degrees((iterator - self.num_tiles / 2) * _TILESIZE, self.zoom)
|
||||
temp = math.atan(math.exp(((lat_pixels + degree) - _EARTHPIX))/ _PIXRAD)
|
||||
return math.degrees(math.pi / 2 - 2 * temp)
|
||||
return math.degrees(math.pi / 2 - 2 * math.atan(
|
||||
math.exp(((lat_pixels + self._pixels_to_degrees((iterator - self.num_tiles / 2) * _TILESIZE, self.zoom)) - _EARTHPIX) / _PIXRAD)))
|
||||
|
||||
def fetch_tiles(self):
|
||||
# cap floats to precision amount
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import mapping
|
||||
|
||||
obj = mapping.GMapsStitcher(10000, 10000, 44.57078, -123.275998, 21, 'terrain', 200)
|
||||
obj = mapping.GMapsStitcher(1, 1, 44.57078, -123.275998, 18, 'terrain', None, 20)
|
||||
|
||||
obj.fetch_tiles()
|
||||
Reference in New Issue
Block a user