Skip to content

Commit d13512e

Browse files
authored
fix missing crs in metadata for points_from_xy (#316)
1 parent 097faa2 commit d13512e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

dask_geopandas/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def func(data, x, y, z):
878878
)
879879

880880
return df.map_partitions(
881-
func, x, y, z, meta=geopandas.GeoSeries(), token="points_from_xy"
881+
func, x, y, z, meta=geopandas.GeoSeries(crs=crs), token="points_from_xy"
882882
)
883883

884884

dask_geopandas/expr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def func(data, x, y, z):
910910
)
911911

912912
return df.map_partitions(
913-
func, x, y, z, meta=geopandas.GeoSeries(), token="points_from_xy"
913+
func, x, y, z, meta=geopandas.GeoSeries(crs=crs), token="points_from_xy"
914914
)
915915

916916

dask_geopandas/tests/test_core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def test_points_from_xy_with_crs():
181181
)
182182
assert isinstance(actual, dask_geopandas.GeoSeries)
183183
assert_geoseries_equal(actual.compute(), expected)
184+
assert actual.crs == expected.crs
184185

185186

186187
def test_from_wkt():

0 commit comments

Comments
 (0)