Unable to open shp file
Asked Answered
R

1

1

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

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

but then I get:

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

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??

Rickie answered 2/6, 2014 at 13:7 Comment(0)
S
2

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.

Sublease answered 20/6, 2014 at 6:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.