4

I am trying to ensure I have geodjango properly installed so I can follow this tutorial.

I have used Brew as my installer for Geodjango prequisites: postgresql, postgis, gdal, libgeoip.

My gdal version is most recent: 3.1.2. However when I try to use ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp to examine an .shp file it returns this error in the console:

Unable to open datasource '[this is the name of the file here'] with the following drivers. It then just lists a whole bunch of drivers.

I can't for the life of me figure out what to do, all the other answers to similar questions recommend upgrading GDAL but mine is the most current version...

deadant88
  • 920
  • 9
  • 24

1 Answers1

7

Too late for you, but probably useful to others: check your path. Just look at world/data/, then look at the structure of your project, then type ls on the console and ensure that you're inside the right folder. UPD: Compare - the answer to a similar question is here. Good luck))

kokserek
  • 530
  • 8
  • 21
  • 1
    I am using the dockerized version and this does not work for me. As I try `docker run osgeo/gdal ogrinfo -al myShapefile.shp` this prints the same error and of course I am 100% sure I am in the right folder. The File is present. – nonNumericalFloat Jan 12 '22 at 21:10
  • 1
    Yeah, that is a serious red herring error message, if the file isn't found it should fail with a message about that- – chrismarx Jul 27 '22 at 15:16