Exemplo n.º 1
0
 def test_convert_to_inp(self):
     source_path = os.path.join(TESTDATA_DIR, 'polyline_z.shp')
     target_path = os.path.join(self.temp_dir, 'polyline_z.inp')
     output_format = 'inp'
     convert.convert(source_path=source_path,
                     target_path=target_path,
                     output_format=output_format)
     self.assertTrue(os.path.exists(target_path))
Exemplo n.º 2
0
 def test_convert_to_png(self):
     source_path = os.path.join(TESTDATA_DIR, 'polyline_z.shp')
     target_path = os.path.join(self.temp_dir, 'polyline_z.png')
     output_format = 'img'
     convert.convert(source_path=source_path,
                     target_path=target_path,
                     output_format=output_format)
     self.assertEqual(
         os.listdir(self.temp_dir),
         ['polyline_z1.png', 'polyline_z0.png'],
     )