Hot answers tagged

27

This is a known issue as documented on KyngChaos https://www.kyngchaos.com/blog/2018/20180322_qgis_3.0.0-3 A workaround is available as follows Go to Settings ... Options... System ... Environment Enable "Use Custom Variables " First select "Prepend", under variable enter "PATH", under value enter "/Library/Frameworks/GDAL.framework/Programs:/...


10

if you use the Kyng Chaos version: 1) First solution with the PYTHONPATH variable: Add qgis to the PYTHONPATH (terminal) $ export PYTHONPATH=/Applications/Qgis.app/Contents/Resources/python You can add this line to your .bash_profile Then in Python # Import qgis from qgis.core import * QgsApplication.setPrefixPath("/Applications/QGIS.app/Contents/...


8

When you look at the grass-70 recipe info from homebrew, you'll see: Rainers-MacBook-Pro:~ rainerkrug$ brew info grass-70 osgeo/osgeo4mac/grass-70: stable 7.0.1 Geographic Resources Analysis Support System http://grass.osgeo.org/ /usr/local/Cellar/grass-70/7.0.1 (3708 files, 83M) * Built from source with: --with-mysql --with-postgresql --with-liblas From: ...


8

The information you are looking for is hidden in a panel that is collapsed/minimized on the right-hand side of the dialog. Here's how you can access it:


8

I use both Macos Kyngchaos QGIS and Anaconda Python on my Mac with success. To do this, you must set your Anaconda Python path in your QGIS variables environment. Go to QGIS > Preferences > System In the environment Set PYTHONPATH as a new variable and add /Applications/anaconda2/bin as a value. Set it to overwrite. Restart QGIS, you'll see the new ...


8

I had the same problem and figured it out. You did brew tap osgeo/osgeo4mac before and thereby expanded your brew with the osgeo-tap. The repository documentation mentions they are currently 'renaming' formulae. It turns out they're renaming formula postgresql to osgeo-postgresql etc. So my trick was to type on the shell: for f in libgeotiff libspatialite ...


6

As already been mentioned in GS exchange, the QGIS version of Kyng Chaos uses the standard Apple Python and the version 2.x (and not the 3.x, nor others Python implementation, Homebrew, Anaconda, etc.) As indicated in the documentation, you must first add PyQGIS to the PYTHONPATH I use here the Terminal application: export PYTHONPATH=/Applications/Qgis....


5

For QGIS on Mac, the Kyngchaos.com installer package is built against the GDAL_Complete installer framework from the same site, as is noted under Requirements on the download page. It will not work with gdal from the Homebrew project. If you want to go with a purely Homebrew approach, try the OSGeo4Mac project. First run brew unlink qgis, which is the ...


5

That solved my problem. Further information and a tutorial can be found here http://gdal.org/1.11/ogr/ogr_apitut.html A C++ version for GDAL 1.11: #include <GDAL/ogrsf_frmts.h> int main() { OGRRegisterAll(); OGRDataSource *poDS; poDS = OGRSFDriverRegistrar::Open( "data.shp", FALSE); }


4

Found this: http://osgeo-org.1560.n6.nabble.com/Unable-to-load-PROJ-4-library-libproj-dylib-td5031442.html and so added export PROJSO=/Library/Frameworks/PROJ.framework/PROJ to my .bash_profile it works! I'm still running OSX 10.7 and I haven't needed this in my profile before so why I should need it now I can't say by the whole issue with paths is ...


4

It is a recurrent question: the module is Shapely and it is a pure Python module and not a QGIS plugin. (Shapely.geometry is part of the Shapely module). QGIS on Mac OS X use the default Apple install of Python (Mac OS X is a UNIX, like Linux) Windows does not have Python installed by default, so QGIS must install its own version of Python where Shapely is ...


4

If you use the terminal (OSX): Try fixing the GDAL Path. If you use the GDAL Framework of KyngChaos, the complete Path of the command is /Library/Frameworks/GDAL.framework/Versions/1.10/Programs/gdal_rasterize or .../Versions/1.9/...or... So: 1) in the Terminal: export PATH=/Library/Frameworks/GDAL.framework/Versions/1.10/Programs and you can use ...


4

Do you mean it's not showing up in the menu bar? It's not in the Plugins menu - it has its own Dropdown menu title.


4

So I figured it out! gdal_translate -b 2 input_rgb.tiff output_green.tiff gdaldem color-relief output_green.tiff green_colortable.txt output_green_rgb.tiff taking the colortable from QGIS. I did this for both red and green bands. After that I combined them by using Mapnik!


4

-open a terminal and type: /Applications/QGIS.app/Contents/MacOS/QGIS --noplugins -and for qgis 3.x (version 3.6 shown here) /Applications/QGIS3.6.app/Contents/MacOS/QGIS --noplugins


4

There is a path problem in the Kyng Chaos SQLite installer (in GDAL 2.0, I don't know with the new 2.1) The content of the sqlite-py2.7.pth is import sys; sys.path.insert(0,'/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7') It is a Python .pth file ( site), installed in /Library/Python/2.7/site-packages/sqlite-py2.7.pth and pointing to /...


4

First of all I had to show my User>Library directory as it was hidden on OSX. Then i deleted org.qgis.qgis2.plist from User>Library>Preferences> Relaunched QGIS and so far so good (but early days). WARNING This will delete preferences, but was worth it to get QGIS back up and running.


3

If you install the 2. version It will overwrite the 1.8 version (QGIS.app). But,I use everyday versions 1.8, 2. and master on Mac OSX 10.6.8 without problem (often at the same time). So, the only thing you need to do is to rename the version 1.8 in QGIS1.8.app , otherwise, it will be deleted (QGIS.app)


3

To install Shapely in Linux, you can use the pip command. This assumes that you have installed pip. sudo pip install Shapely https://pypi.python.org/pypi/Shapely


3

QGIS from KyngChaos and from Larry Shaffer's Nightly Mac Build of QGIS from 'master' Branch use exclusively the Apple Python because the developers are sure that it is installed (and not those from Python.org, from EPD, from Homebrew, from MacPorts, from Anaconda, from...). So you must install the Python modules like matplotlib, Psycopg2,..., for the ...


3

The link only is not sufficient: all the archives of KyngChaos software and Frameworks are in Kyngchaos: Unix Port Download Archive. But, if you want to have the 2 versions, you need to rename temporarily the installed version of QGIS.app into QGIS2.0.app, for example, otherwise it will be replaced by the 1.8 version. You can use them at the same time


3

Please check out http://www.kyngchaos.com/files/software/qgis/QGIS-1.8.0-2.dmg to download.


3

Try gdal_merge. You can grab the GDAL framework from William Kyngesburye's website. Instructions for utilizing gdal_merge can be found here.


3

One way to fix a whole slew of dependency problems is to just install everything via homebrew (http://brew.sh). Brew has a working qgis stable version available and it can also install a version of python to use for all its dependencies. Deleting the system python is bad, but you can mostly fix that by just installing the python 2.7 dmg from python.org. ...


3

UPDATE: This issue has been addressed with the following commit to QGIS master branch. The fix may soon be backported to the 2.0.x branch as well. Since the issue stems from how many files an application can have open at once on a Mac, try moving your data to a database instead. You can import your shapefiles into Spatialite or PostgreSQL/PostGIS databases ...


3

Have you used "old labelling" (from inside the layers properties) or "new labelling" (from the icon toolbar)? Old labelling is known to make problems.


3

ArcGIS 10.1 does not yet support HiDPI, so you will need to set Parallels to 'scaled' resolution if you're running on a Mac with Retina display.


3

There are several solutions for retrieving accidentally 'hidden' Composer panels in QGIS 1.8, outlined here (checkout last one). Panels in the main QGIS window are accessible via the View->Panels submenu. This issue has been fixed in master branch. If you want to try the master branch, there are nightly builds available for 10.6.8 here.


3

There are a couple of things you may want to look at concerning your code: If you are actually trying to load the shapefile from '/path/to/shapefile_folder/test.shp' then there is a high likelihood that a shapfile does not exist at that location. Set the prefixPath to '/Applications/QGIS.app/Contents/MacOS'. Notice if you look inside the application bundle, ...


3

If you want to use the Kyngchaos's version of QGIS, you should use his version of GDAL/OGR (Framework in /Library/Frameworks/GDAL.framework). This version also installs the Python osgeo module (in /Library/Python/2.7/site-packages because QGIS use the Apple Python). If you want to use the Homebrew version of GDAL/OGR (library in /usr/local/Cellar with ...


Only top voted, non community-wiki answers of a minimum length are eligible