petern48 commented on code in PR #2048:
URL: https://github.com/apache/sedona/pull/2048#discussion_r2183801400
##########
python/sedona/geopandas/geoseries.py:
##########
@@ -1383,7 +1383,102 @@ def explode(self, ignore_index=False,
index_parts=False) -> "GeoSeries":
def to_crs(
self, crs: Union[Any, None] = None, epsg: Union[int, None] = None
) -> "GeoSeries":
- raise NotImplementedError("GeoSeries.to_crs() is not implemented yet.")
+ """Returns a ``GeoSeries`` with all geometries transformed to a new
+ coordinate reference system.
+
+ Transform all geometries in a GeoSeries to a different coordinate
+ reference system. The ``crs`` attribute on the current GeoSeries must
+ be set. Either ``crs`` or ``epsg`` may be specified for output.
+
+ This method will transform all points in all objects. It has no notion
+ of projecting entire geometries. All segments joining points are
+ assumed to be lines in the current projection, not geodesics. Objects
+ crossing the dateline (or other projection boundary) will have
+ undesirable behavior.
+
+ Parameters
+ ----------
+ crs : pyproj.CRS, optional if `epsg` is specified
+ The value can be anything accepted
+ by :meth:`pyproj.CRS.from_user_input()
<pyproj.crs.CRS.from_user_input>`,
+ such as an authority string (eg "EPSG:4326") or a WKT string.
+ epsg : int, optional if `crs` is specified
+ EPSG code specifying output projection.
+
+ Returns
+ -------
+ GeoSeries
+
+ Examples
+ --------
+ >>> from shapely.geometry import Point
+ >>> from geopandas.array import from_shapely, to_wkt
Review Comment:
I removed the uses of `from_shapely` and `to_wkt` here. I updated all the
doc strings that are accessible from this branch.
--
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]