Exemplo n.º 1
0
 def test_nrml_to_csv(self):
     temp_dir = tempfile.mkdtemp()
     with Print.patch() as p:
         nrml_to.func('csv', [MIXED_SRC_MODEL], temp_dir, chatty=True)
     out = str(p)
     self.assertIn('3D MultiPolygon', out)
     self.assertIn('3D MultiLineString', out)
     self.assertIn('Point', out)
     shutil.rmtree(temp_dir)
Exemplo n.º 2
0
 def test_nrml_to_gpkg(self):
     if not fiona:
         raise unittest.SkipTest('fiona is missing')
     temp_dir = tempfile.mkdtemp()
     with Print.patch() as p:
         nrml_to.func('gpkg', [MIXED_SRC_MODEL], temp_dir, chatty=True)
     out = str(p)
     self.assertIn('3D MultiPolygon', out)
     self.assertIn('3D MultiLineString', out)
     self.assertIn('Point', out)
     shutil.rmtree(temp_dir)