【GeoPandas投影】基于proj4
【GeoPandas支持的坐标系表达方式】
1.+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
2.+init=epsg:4326
【常用坐标系代码EPSG】查看全部坐标系代码请点我;坐标系Wkid详细介绍;投影坐标Wkid详细介绍
- WGS84 Latitude/Longitude
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"
或者是"+init=epsg:4326"
- UTM Zones (North)
"+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
- UTM Zones (South)
"+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs +south"
# 获得数据的投影
GeoDataFrame.crs
# 用EPSG代码设置投影
my_geoseries.crs = {'init' :'epsg:4326'}
# 投影转换
world = world.to_crs({'init': 'epsg:3395'})