Fix/update geo code

Fixed an obvious bug that was not correctly converting longitude to int due to a cosine that wasnt operating on radians.  Also updated the bounding box logic to correctly create boxes that correspond to the input dimension.