
geopandas
GISer_流浪
来自GIS专业的三流程序猿
展开
-
geopands转换mapinfo格式数据至geojson
import geopandas as gpdfilename="120&32.0_5米.mif" # mapinfo数据save_name = "test.geojson" # 导出的json文件名字gdf = gpd.read_file(filename) # 直接读取文件gdf.crs = {'init': 'epsg:4326'} # 设定坐标系print(f"{f...原创 2020-03-17 22:47:34 · 781 阅读 · 0 评论 -
geopandas坐标转换
import geopandas as gpdimport glob file_name = "****.shp"data = gpd.read_file(file_name, encoding="utf-8")data.crs # {'init': 'epsg:4326'}reprojeted_data = data.to_crs(crs="+proj =utm +zone=48 +...原创 2019-03-30 08:40:03 · 5119 阅读 · 0 评论 -
geopandas-- shapefile转JSON
import geopandas as gpdfile_name = "land.shp"data = gpd.read_file(file_name)data.to_file("land.json", driver='GeoJSON', encoding="utf-8")```原创 2019-03-23 17:53:13 · 1296 阅读 · 2 评论