Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

share|improve this question

3 Answers 3

up vote 9 down vote accepted

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.

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

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

share|improve this answer
    
Well put @boulder_ruby - exactly what I needed! –  Joey Schluchter Jan 21 at 15:34

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

  1. Get homebrew from http://brew.sh
  2. brew install gdal
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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