- Timestamp:
- 10/07/12 15:15:27 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/MolesManager/trunk/src/libs/migration/processor/commons.py
r8445 r8460 959 959 tm_position = createTM_Position(date8601 = createDate(isoDateStringToTimeDate(doc_phenomenon_time))) 960 960 pt = createTM_Instant(tm_position) 961 return pt961 return pt 962 962 963 963 def fromPhenomenonTimeToString(phenomenonTime): … … 988 988 return str(datetime.date(int(idate.year), int(idate.month), int(idate.day))) 989 989 990 def fromGeographicBoundingBoxToString(g eographicBoundingBox):991 if g eographicBoundingBoxis None:990 def fromGeographicBoundingBoxToString(gbb): 991 if gbb is None: 992 992 return None 993 return ('%f %f,%f %f') % (geographicBoundingBox.eastBoundLongitude, geographicBoundingBox.northBoundLatitude, \ 994 geographicBoundingBox.westBoundLongitude, geographicBoundingBox.southBoundLatitude) 993 return '{0} {1},{2} {3}'.format(gbb.eastBoundLongitude, gbb.northBoundLatitude, gbb.westBoundLongitude, gbb.southBoundLatitude) 995 994 996 995 def compareGeographicBoundingBoxes(gb1, gb2):
Note: See TracChangeset
for help on using the changeset viewer.