geopandas可以使用以下命令读取几乎任何基于矢量的空间数据格式,包括ESRI shapefile,GeoJSON文件等等

  geopandas.read_file()           #打开文件

还可以打开 GeoJSON;

  url = "http://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_110m_land.geojson"

  df = geopandas.read_file(url)

保存方式

  GeoDataFrame.to_file()

文件索引

  可以使用.loc索引,也可使用.iloc索引  还可以使用.cx索引坐标

  world = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres'))

  southern_world = world.cx[:, :0]

  southern_world.plot(figsize=(10, 3));

posted on 2019-04-07 16:59  睿子4  阅读(258)  评论(0编辑  收藏  举报