I am looking for the equivalent of FWTools for Mac OS X, Lion. Is there anything I can easily install and get that command?
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.
ogr2ogr
is part of the Geospatial Data Abstraction Library (GDAL).
- Get homebrew from http://brew.sh
brew install gdal
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
-
-
1
-
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