jesspav commented on code in PR #38:
URL: https://github.com/apache/sedona-db/pull/38#discussion_r2337344995
##########
python/sedonadb/tests/functions/test_transforms.py:
##########
@@ -64,3 +80,20 @@ def test_st_setcrs_sedonadb(eng, geom, crs, expected_srid):
result = eng.execute_and_collect(f"SELECT ST_SetCrs({geom_or_null(geom)},
'{crs}')")
df = eng.result_to_pandas(result)
assert df.crs.to_epsg() == expected_srid
+
+
[email protected]("eng", [SedonaDB])
[email protected](
+ ("geom", "crs", "expected_crs"),
+ [
+ ("POINT (1 1)", "'EPSG:26920'", "EPSG:26920"),
+ ("POINT (1 1)", f"'{pyproj.CRS('EPSG:26920').to_json()}'",
"EPSG:26920"),
+ ("POINT (1 1)", None, None),
Review Comment:
:) yeah, I see what you mean. I ended up removing the long one anyways
since we switched to returning json instead of auth code and the the json
returned is slightly different.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]