14

I am looking for the equivalent of FWTools for Mac OS X, Lion. Is there anything I can easily install and get that command?

16

You can find Mac GDAL downloads here: http://www.kyngchaos.com/software/archive#gdal OGR and the associated utilities (i.e ogr2ogr and ogrinfo) are included with GDAL.

  • 4
    Yup, thanks. It gets installed to /Library/Frameworks/GDAL.framework/Versions/1.8/Programs/ogr2ogr – CLJ Feb 13 '12 at 1:32
  • 4
    Or, brew install gdal (brew.sh) – Meekohi Jan 29 '14 at 17:19
  • 3
    @Meekohi you should add that as an answer, not as a comment. – user2856 Jan 29 '14 at 23:12
  • As you command. – Meekohi Jan 30 '14 at 3:23
  • 1
    @Meekohi I suggested you add that as answer so I could vote for it. Which I have. No commands intended ;) – user2856 Jan 30 '14 at 3:46
23

ogr2ogr is part of the Geospatial Data Abstraction Library (GDAL).

  1. Get homebrew from http://brew.sh
  2. brew install gdal
8

Taking the information from the above, here's how you would actually get the ogr2ogr command working like it should

  • add this to your ~/.bash_profile script:

    export PATH=/Library/Frameworks/GDAL.framework/Versions/1.[YOURVERSIONHERE]/Programs/:$PATH
    

the above code also adds a bunch of other gdal libraries to your path as well

  • Well put @boulder_ruby - exactly what I needed! – Joey Schluchter Jan 21 '14 at 15:34
  • 1
    You can also use "Current" as the [YOURVERSIONHERE] – Tom Lee Oct 22 '18 at 14:07
  • Try restarting your computer after you add this to your path. And if that doesn't work, try adding a manual PATH variable to the QGIS settings page: gis.stackexchange.com/questions/285832/… – plnnr Nov 7 '18 at 4:57
  • @plnnr not necessary. To reload ~/.bash_profile just reload a new terminal or run source ~/.bash_profile – boulder_ruby Dec 19 '18 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.