Esempio n. 1
0
 def test_zip_file_name_parsing_normal_topo_2(self):
     fname = 'ned19_n38x00_w122x50_tx_cameronco06_cameronco_2003.zip'
     n = ned_topo.create(FAKE_OPTIONS)
     bbox = n.base._ned_parse_filename(fname)
     self.assertTrue(bbox is None)
Esempio n. 2
0
 def test_zip_file_name_parsing_topo(self):
     fname = 'ned19_n38x00_w122x50_ca_sanfrancisco_topobathy_2010.zip'
     n = ned_topo.create(FAKE_OPTIONS)
     bbox = n.base._ned_parse_filename(fname)
     self.assertTrue(bbox is not None)
     self.assertEqual((-122.5, 37.75, -122.25, 38.0), bbox.bounds)
Esempio n. 3
0
 def test_zip_file_name_parsing_topo(self):
     fname = 'ned19_n38x00_w122x50_ca_sanfrancisco_topobathy_2010.zip'
     n = ned_topo.create(FAKE_OPTIONS)
     bbox = n.base._ned_parse_filename(fname)
     self.assertTrue(bbox is not None)
     self.assertEqual((-122.5, 37.75, -122.25, 38.0), bbox.bounds)
Esempio n. 4
0
 def test_zip_file_name_parsing_normal_topo_2(self):
     fname = 'ned19_n38x00_w122x50_tx_cameronco06_cameronco_2003.zip'
     n = ned_topo.create(FAKE_OPTIONS)
     bbox = n.base._ned_parse_filename(fname)
     self.assertTrue(bbox is None)