shp文件打不开 [英] Unable to open shp file

查看:226
本文介绍了shp文件打不开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

So, I've been following Mike Bostock's tutorial on creating a map.

要使用 ogr2ogrne_10m_admin_0_map_subunits.shp(这是输入)创建 subunits.json GeoJSON 文件,我输入:

To create the subunits.json GeoJSON file using ogr2ogr and ne_10m_admin_0_map_subunits.shp (which is the input) I typed:

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

但后来我得到:

无法使用以下驱动程序打开数据源ne_10m_admin_0_map_subunits.shp".

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

I have qgis on my laptop and I though qgis would do the jack, but I guess not :P Does anyone have an idea how to fix it??

推荐答案

此错误的典型来源似乎只是不在您解压缩文件的目录中.导航到通过终端解压缩下载文件的任何位置,然后在那里运行命令.

A typical source of this error seems to be simply not being in the directory where you unzipped the file. Navigate to wherever you unzipped the downloaded files via terminal and run the command there.

这篇关于shp文件打不开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆