无法打开shp文件

时间:2014-06-02 13:07:05

标签: json shapefile qgis

所以,我一直在关注Mike Bostock关于创建地图的教程。

使用subunits.jsonogr2ogr(输入)创建ne_10m_admin_0_map_subunits.shp GeoJSON文件我输入了:

ogr2ogr \
  -f GeoJSON \
  -where "ADM0_A3 IN ('GBR', 'IRL')" \
  subunits.json \
  ne_10m_admin_0_map_subunits.shp

然后我得到:

Unable to open datasource 'ne_10m_admin_0_map_subunits.shp' with the following drivers.

我的笔记本电脑上有qgis,虽然qgis会做插孔,但我猜不是:P 有没有人知道如何解决它?

1 个答案:

答案 0 :(得分:2)

此错误的典型来源似乎根本不在您解压缩文件的目录中。 导航到通过终端解压缩下载文件的位置并在那里运行命令。

相关问题