Exemplo n.º 1
0
    def test_read_geo_data_frame(self):
        file = os.path.join(os.path.dirname(__file__), '..', '..', 'cate',
                            'ds', 'data', 'countries', 'countries.geojson')

        data_frame = read_geo_data_frame(file)
        self.assertIsInstance(data_frame, gpd.GeoDataFrame)
        self.assertEqual(len(data_frame), 179)
        data_frame.close()

        # Now with crs
        data_frame = read_geo_data_frame(file, crs="EPSG:4326")
        self.assertIsInstance(data_frame, gpd.GeoDataFrame)
        self.assertEqual(len(data_frame), 179)
        data_frame.close()
Exemplo n.º 2
0
    def test_read_geo_data_frame(self):
        file = os.path.join(os.path.dirname(__file__), '..', '..', 'cate', 'ds', 'data', 'countries',
                            'countries-110m.geojson')

        data_frame = read_geo_data_frame(file=file)
        self.assertIsInstance(data_frame, gpd.GeoDataFrame)
        self.assertEqual(len(data_frame), 175)
        data_frame.close()
Exemplo n.º 3
0
    def test_read_geo_data_frame(self):
        file = os.path.join(os.path.dirname(__file__), '..', '..', 'cate', 'ds', 'data', 'countries',
                            'countries.geojson')

        data_frame = read_geo_data_frame(file=file)
        self.assertIsInstance(data_frame, gpd.GeoDataFrame)
        self.assertEqual(len(data_frame), 179)
        data_frame.close()
Exemplo n.º 4
0
    def test_read_geo_data_frame(self):
        file = os.path.join('cate', 'ds', 'data', 'countries',
                            'countries.geojson')

        data_frame = read_geo_data_frame(file)
        self.assertIsNotNone(data_frame)