Skip to content

Commit

Permalink
mosaic reads geoparquet
Browse files Browse the repository at this point in the history
  • Loading branch information
sllynn committed Nov 28, 2024
1 parent 5a25f8e commit 5306ad7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added python/test/data/example.parquet
Binary file not shown.
13 changes: 13 additions & 0 deletions python/test/test_raster_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,16 @@ def test_dtmfromgeoms(self):
)

result.write.mode("overwrite").format("noop").save()


def test_geoparquet_reader(self):
geoparquet_df = (
readers.read()
.format("multi_read_ogr")
.option("driverName", "parquet")
.option("chunkSize", "2")
.load("test/data/example.parquet")
)

self.assertEqual(geoparquet_df.count(), 5)

0 comments on commit 5306ad7

Please sign in to comment.