コード例 #1
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_multi_force_multi(self):
     result = collect(self.mp1)
     assert self.mp1.equals(result)
コード例 #2
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_single(self):
     result = collect(self.p1)
     assert self.p1.equals(result)
コード例 #3
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_single_force_multi(self):
     result = collect(self.p1, multi=True)
     expected = MultiPoint([self.p1])
     assert expected.equals(result)
コード例 #4
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_mixed_types(self):
     with pytest.raises(ValueError):
         collect([self.p1, self.line1])
コード例 #5
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_mixed_multi(self):
     with pytest.raises(ValueError):
         collect([self.mpc, self.mp1])
コード例 #6
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_mixed_types(self):
     with pytest.raises(ValueError):
         collect([self.p1, self.line1])
コード例 #7
0
 def test_collect_mixed_types(self):
     with self.assertRaises(ValueError):
         collect([self.p1, self.line1])
コード例 #8
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_single_force_multi(self):
     result = collect(self.p1, multi=True)
     expected = MultiPoint([self.p1])
     assert expected.equals(result)
コード例 #9
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_multi_force_multi(self):
     result = collect(self.mp1)
     assert self.mp1.equals(result)
コード例 #10
0
ファイル: test_tools.py プロジェクト: wsf1990/geopandas
 def test_collect_mixed_multi(self):
     with self.assertRaises(ValueError):
         collect([self.mpc, self.mp1])
コード例 #11
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_single(self):
     result = collect(self.p1)
     assert self.p1.equals(result)
コード例 #12
0
ファイル: test_tools.py プロジェクト: wsf1990/geopandas
 def test_collect_mixed_types(self):
     with self.assertRaises(ValueError):
         collect([self.p1, self.line1])
コード例 #13
0
ファイル: test_tools.py プロジェクト: wsf1990/geopandas
 def test_collect_multi(self):
     result = collect(self.mp1)
     self.assert_(self.mp1.equals(result))
コード例 #14
0
 def test_collect_mixed_multi(self):
     with self.assertRaises(ValueError):
         collect([self.mpc, self.mp1])
コード例 #15
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_list(self):
     result = collect([self.p1, self.p2, self.p3])
     assert self.mpc.equals(result)
コード例 #16
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_list(self):
     result = collect([self.p1, self.p2, self.p3])
     assert self.mpc.equals(result)
コード例 #17
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_GeoSeries(self):
     s = GeoSeries([self.p1, self.p2, self.p3])
     result = collect(s)
     assert self.mpc.equals(result)
コード例 #18
0
ファイル: test_tools.py プロジェクト: Imanflow/geopandas
 def test_collect_GeoSeries(self):
     s = GeoSeries([self.p1, self.p2, self.p3])
     result = collect(s)
     assert self.mpc.equals(result)
コード例 #19
0
ファイル: test_tools.py プロジェクト: geopandas/geopandas
 def test_collect_mixed_multi(self):
     with pytest.raises(ValueError):
         collect([self.mpc, self.mp1])
コード例 #20
0
 def test_collect_multi(self):
     result = collect(self.mp1)
     self.assert_(self.mp1.equals(result))