From 0e2324df079a3bb1d96b150de6c3f37aae5132da Mon Sep 17 00:00:00 2001 From: Nick Eubank Date: Tue, 29 Mar 2016 11:36:58 -0700 Subject: [PATCH] updated to_crs docstring --- geopandas/geodataframe.py | 6 ++++++ geopandas/geoseries.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/geopandas/geodataframe.py b/geopandas/geodataframe.py index 75925a0..cd26f92 100644 --- a/geopandas/geodataframe.py +++ b/geopandas/geodataframe.py @@ -350,6 +350,12 @@ class GeoDataFrame(GeoPandasBase, DataFrame): 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. + + `to_crs` passes the `crs` argument to the `Proj` function from the + `pyproj` library (with the option `preserve_units=True`). It can + therefore accept proj4 projections in any format + supported by `Proj`, including dictionaries, or proj4 strings. + """ if inplace: df = self diff --git a/geopandas/geoseries.py b/geopandas/geoseries.py index a833db6..a7d42a3 100644 --- a/geopandas/geoseries.py +++ b/geopandas/geoseries.py @@ -254,6 +254,12 @@ class GeoSeries(GeoPandasBase, Series): 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. + + `to_crs` passes the `crs` argument to the `Proj` function from the + `pyproj` library (with the option `preserve_units=True`). It can + therefore accept proj4 projections in any format + supported by `Proj`, including dictionaries, or proj4 strings. + """ from fiona.crs import from_epsg if self.crs is None: