Exemple #1
0
 def __unicode__(self):
     return '<SpatialTemporalIndex> for %s, %s, %s - %s' % (
         self.indexed,
         self.extent.extent,
         util.jdate_to_approx_iso_str(self.time_start),
         util.jdate_to_approx_iso_str(self.time_end)
     )
Exemple #2
0
 def test_util(self):
     jdate = util.iso_str_to_jdate('-5000-01-01T12:00:00Z')
     self.assertEquals(jdate, -105192)
     roundtripped = util.jdate_to_approx_iso_str(jdate)
     self.assertEquals(roundtripped, '-4999-01-03')
Exemple #3
0
 def test_util(self):
     jdate = util.iso_str_to_jdate('-5000-01-01T12:00:00Z')
     self.assertEquals(jdate, -105192)
     roundtripped = util.jdate_to_approx_iso_str(jdate)
     self.assertEquals(roundtripped, '-4999-01-03')
Exemple #4
0
 def __unicode__(self):
     return '<SpatialTemporalIndex> for %s, %s, %s - %s' % (
         self.indexed, self.extent.extent,
         util.jdate_to_approx_iso_str(self.time_start),
         util.jdate_to_approx_iso_str(self.time_end))