Tag Info

Hot answers tagged

28

You can use ubuntugis ppa, which contains everything you need: $ sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable $ sudo apt-get update $ sudo apt-get install qgis The system will take care after the necessary dependencies Your problem also suggests that you have broken dependencies for qgis. One way to fix this is to clean your cache by ...


16

Τhe header files cannot be found for some reason. Maybe you you are operating inside a Virtual Enviroment or they are not where they should be for some reason. In any case you can specify the include dirs when installing gdal via pip. first download python's gdal : pip install --no-install GDAL then specify where the headers are: python setup.py ...


15

If you have Ubuntu 12.04, then you should have PostgreSQL 9.1, which makes things awesome for PostGIS 2.0, where you can use use the new EXTENSION framework. To spatially enable a database, use the DDL from a SQL window: CREATE EXTENSION postgis; See other details for installing PostGIS 2.0 from source for Ubuntu 12.04 here. If you are using PostGIS ...


14

selimnairb's answer is close but you wont have the headers unless you've installed libgdal-dev: sudo apt-get install libgdal-dev with that done, export CPLUS_INCLUDE_PATH=/usr/include/gdal export C_INCLUDE_PATH=/usr/include/gdal and then pip install GDAL The compilation ran to completion and I have GDAL in my virtual env. Phew!


14

While your database is technically spatial at this point, you would only be working with the inbuilt pg geometry types. In order to complete your installation, you do need to run the scripts as suggested. You can find them in your /usr/share/postgresql/[version number]/contrib/ postgis sub-directory. You should see the following: legacy_minimal.sql ...


12

Practice using an Oracle VM Virtual Box and create a Ubuntu [12.04 LTS] install (use the iso from here http://www.ubuntu.com/download/desktop) on your current Windows PC and get use to the differences (some good, some not so much). Created an 8GB VDI (Virtual Disk Image) and added the iso to the virtual disk You can 'Try' Ubuntu or 'Install' Ubuntu - If ...


10

UPDATE: Did some digging around on the QGIS site. Apparently you need to install the python-gis package if you want to use the python plugins. sudo apt-get install python-qgis You should now be able to add new plugins :) If I'm not mistaken, you need to enable the Plugins Installer. Just activate it in Plugins Manager.


9

To create SVG symbols with modifiable fill color, stroke color and stroke width in QGIS, you should replace the style attribute from the path element with these 3 attributes: fill="param(fill) #FFF" stroke="param(outline) #000" stroke-width="param(outline-width) 1" If you are using InkScape, after writing the new SVG file, edit the file and replace the ...


9

At present ArcGIS Desktop is not supported on the Linux platform but you can install Server platform software on Linux such as ArcGIS Server. For more details please check ESRI FAQ: Will ArcGIS run on Linux? See also Desktop GIS for Linux (in Linux Journal)


8

The same applications are available, but the general experience will be much smoother, especially updates. Package managment is one of the key user-facing strengths of Linux. Everything you need is already packaged and only a gui or command away. No need for separate downloads or anything like that. So install one of the buntu flavours and add the UbuntuGIS ...


7

If you want a painless install, you might want to start over and use the OpenGeo Suite version of PostGIS. $sudo wget -qO- http://apt.opengeo.org/gpg.key | apt-key add - $sudo echo "deb http://apt.opengeo.org/ubuntu lucid main" >> /etc/apt/sources.list $sudo apt-get update $apt-cache search opengeo $sudo apt-get install opengeo-postgis Or you could ...


7

As tile caches are pregenerated map images, you will really be testing the underlying map / wms / image server. Unless you are testing against a pregenarated cache, in which case you are testing the web server itself (Apache / IIS etc.). Stress testing for websites is often done using JMeter. There was a recent series of posts on using JMeter at ...


7

I just found the solution. After the steps above, one has to actually add the functions to the postgresql database: $ sudo su postgres $ psql -d routing -f /usr/share/postlbs/routing_core.sql $ psql -d routing -f /usr/share/postlbs/routing_core_wrappers.sql $ psql -d routing -f /usr/share/postlbs/routing_topology.sql I hope this ...


7

CentOS will work if you stick with a version that corresponds to one of the supported versions of RHEL but I doubt you'll have much luck with Ubuntu.


7

You just need to give yourself ownership of the the /.qgis directory where the plugins will be install. Use the change owner command in the terminal: sudo chown "your username" ~/.qgis You may also need to make the chown command recursive to cover the folders and files within the ~/.qgis folder: sudo chown -R "your username" ~/.qgis


7

In Project Settings, you can specify if absolute or relative paths should be used. Dropbox can be a good solution if your files don't grow too big for the free data plan. If you provide more information about your requirements, we might be able to offer different solutions.


7

This annoying issue occurs because libgdal was forked between libgdal1 and libgdal1h last year. Ubuntu GIS stable uses libgdal or libgdal1, Ubuntugis unstable uses libgdal1h. GDAL is a translator library for raster geospatial data formats. As a library, it presents a single abstract data model to the calling application for all supported formats. The ...


7

Following the advice at the postgis-users maillist it was possible to identify the existence of outdated ligbeos libraries as the source of the problem: $ locate libgeos_c.so /usr/lib/libgeos_c.so /usr/lib/libgeos_c.so.1 /usr/lib/libgeos_c.so.1.8.2 /usr/local/lib/libgeos_c.so /usr/local/lib/libgeos_c.so.1 /usr/local/lib/libgeos_c.so.1.7.1 ...


6

I have faced the same problem: "Internal Server Error with Ubuntu 12.04". Everything looked OK to me (I even run successfully a perl fcgi script to test FCGI in my apache server). I continually got an Internal Server Error when I run a get Capabilities request. The apache log file said "Premature end of script headers: qgis_mapserv.fcgi". The problem was ...


6

I installed QGis 1.9 with adding repositories to source list: deb http://qgis.org/debian-nightly precise main deb-src http://qgis.org/debian-nightly precise main And public key: gpg --keyserver keyserver.ubuntu.com --recv 1F9ADD375CA44993 gpg --export --armor 1F9ADD375CA44993 | sudo apt-key add - So far works fine and no problems with getting ...


6

ECW libraries are not open source software and cannot be freely distributed. You need to add manually the ecw support in your local copy of gdal. On ubuntu do this: wget http://de-mirror.org/distro/gentoo/distfiles/libecwj2-3.3-2006-09-06.zip unzip libecwj2-3.3-2006-09-06.zip cd libecwj2-3.3 ./configure make sudo make install sudo gdal-ecw-build /usr/local/ ...


6

I had similar issue. Found that the problem could be due to the following possibilities: When you set up the QgsApplication, the PrefixPath must be done correctly. My QGIS was installed on /usr/share/qgis. But somehow I need to set the PrefixPath as "/usr" & not "/usr/share/qgis": QgsApplication.setPrefixPath("/usr", True) The path of the .shp ...


6

First choose a distributions where you can find lots of help. Changing to an new OS is really hard transitioning. At the moment ubuntu seems to be the more user friendly. Secondly learn your tools. eg. to install something on an debian system you just apt-get them. eg for python: sudo apt-get install python for python's gdal binding: sudo apt-get ...


6

Yes, doing the following before running PIP appears to work: export CPLUS_INCLUDE_PATH=/usr/include/gdal export C_INCLUDE_PATH=/usr/include/gdal


6

Sharpie is alright, but recently UbuntuGis team came in with some stable packages: https://launchpad.net/~ubuntugis/+archive/ppa?field.series_filter=precise, try them. apt-add-repository deb http://ppa.launchpad.net/ubuntugis/ppa/ubuntu precise main apt-add-repository deb-src http://ppa.launchpad.net/ubuntugis/ppa/ubuntu precise main apt-get install ...


6

The plugin manager and installer have been merged into a single tool now


6

So I tried some more things and came up with a solution. I will go over what I did step by step and hopefully this will work for others. First thing I did was uninstall qgis as completly as I know how sudo apt-get autoremove qgis sudo apt-get autoclean Then I removed the Ubuntugis-unstable PPA sudo apt-add-repository remove ...


6

By default, you don't have PostGIS 2.0 but 1.5 (see http://packages.ubuntu.com/fr/precise/postgresql-9.1-postgis) By doing CREATE EXTENSION postgis; you're trying to initialize from PostgreSQL with the new loading mechanism a PostGIS version (1.5) that do not support it and in this case, you will need to follow the PostGIS 1.5 official doc If you need 2.0, ...


6

The package has been rebuild to solve this. Check again. First add repositories from QGIS: sudo su echo deb http://qgis.org/debian trusty main >> /etc/apt/sources.list echo deb-src http://qgis.org/debian trusty main >> /etc/apt/sources.list exit Then: sudo apt-get update sudo apt-get install qgis python-qgis


5

I have it on a verbal authority from ESRI that they were looking at Ubuntu during the ArcGIS 10 Beta. so based on this it is in the pipeline but how far they have gotten I could only speculate



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