self.arealand = float(geo_record.arealand)
self.areawatr = float(geo_record.areawatr)
+ # Both latitude and longitude are given to six digits of
+ # precision (i.e. after the decimal point). But, there are no
+ # decimal points in the intptlon/intptlat fields, so we need
+ # to add them.
+ #
+ # By default, the coordinates will be parsed as integers. For
+ # example, +12345678 will be parsed as 12345678.0. So, we need
+ # to "move" that decimal point 6 places to the left. We know
+ # how to do that.
+ #
self.coordinates = GPS.Coordinates()
- self.coordinates.latitude = float(geo_record.intptlat)
- self.coordinates.longitude = float(geo_record.intptlon)
+ self.coordinates.latitude = (float(geo_record.intptlat) / (10**6))
+ self.coordinates.longitude = (float(geo_record.intptlon) / (10**6))
def tiger_blkidfp00(self):