geopandas.GeoDataFrame.crs#

property GeoDataFrame.crs[来源]#

作为pyproj.CRS对象表示的坐标参考系统(CRS)。

如果没有设置CRS,则返回None,设置值时可以是任何被 :getter: 返回一个 pyproj.CRS 或 None。当设置时,值 可以是任何被pyproj.CRS.from_user_input()接受的内容, 例如一个授权字符串(如“EPSG:4326”)或一个WKT字符串。

另请参阅

GeoDataFrame.set_crs

分配 CRS

GeoDataFrame.to_crs

重新投影到另一个坐标参考系统

示例

>>> gdf.crs  
<Geographic 2D CRS: EPSG:4326>
Name: WGS 84
Axis Info [ellipsoidal]:
- Lat[north]: Geodetic latitude (degree)
- Lon[east]: Geodetic longitude (degree)
Area of Use:
- name: World
- bounds: (-180.0, -90.0, 180.0, 90.0)
Datum: World Geodetic System 1984
- Ellipsoid: WGS 84
- Prime Meridian: Greenwich