mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-23 13:20:36 +08:00
BUG: Set preserve_units parameter to Proj calls so not forced to meters
This commit is contained in:
@@ -405,8 +405,8 @@ class GeoSeries(Series):
|
||||
crs = from_epsg(epsg)
|
||||
except TypeError:
|
||||
raise TypeError('Must set either crs or epsg for output.')
|
||||
proj_in = pyproj.Proj(**self.crs)
|
||||
proj_out = pyproj.Proj(**crs)
|
||||
proj_in = pyproj.Proj(preserve_units=True, **self.crs)
|
||||
proj_out = pyproj.Proj(preserve_units=True, **crs)
|
||||
project = partial(pyproj.transform, proj_in, proj_out)
|
||||
result = self.apply(lambda geom: transform(project, geom))
|
||||
result.__class__ = GeoSeries
|
||||
|
||||
Reference in New Issue
Block a user