Hot answers tagged

56

Note: this is an answer for an older version of GDAL, and there are newer versions available (including current) that can be compiled similar to this answer. Just replace the version numbers in the commands below. Build from source, with Python bindings: sudo apt-get install build-essential python-all-dev wget http://download.osgeo.org/gdal/gdal-1.9.0.tar....


15

Install Raspbian: Download NOOBS Follow the NOOBS Setup instructions. Update Raspbian from its Debian wheezy base to Debian jessie: sudo vi /etc/apt/sources.list # or use your favourite editor change all references of wheezy to jessie sudo apt-get update sudo apt-get upgrade # this will take a long time, with occasional user prompts sudo apt-get dist-...


9

Here's a dedicated page for OSM SVG exporting: http://wiki.openstreetmap.org/wiki/SVG One way to do this through command line would be to use Maperitive - here's a tutorial on how to generate SVG. You can simply write all the commands mentioned in the tutorial into a text file and run Maperitive with the file specified in the command line. Here are some ...


9

You can get 1.9 from Ubuntugis (see https://launchpad.net/~ubuntugis/+archive/ubuntugis-unstable). See http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries for other sources of binaries. Failing all else you can build 1.9 from the sources (http://trac.osgeo.org/gdal/wiki/BuildHints)


8

Basically pick a computer as a server, install the OS and database software, open the firewall for port 5432, modify the postgresql.conf and pg_hba.conf files to allow external access, and serve the data to the other computers. These are the same instructions for setting up a server on either Windows or Linux, except one OS is free. Most folks would pick ...


8

I use following intro for stand-alone applications: # the_app.py import os import sys from qgis.core import * from PyQt4.QtGui import * def main(): QgsApplication.setPrefixPath(os.environ['QGIS_PREFIX'], True) QgsApplication.initQgis() # app specific code ... QgsApplication.exitQgis() sys.exit(result) if __name__ == '...


7

You have a few options: PostGIS 2 has support for TIN and some other 3D objects. GRASS has support via an add-on. See this how-to document. QGIS has an Interpolation plugin (see here) Roll-your-own by importing the GDAL libraries into a 3D modelling package such as Blender (I do it this way a lot because I want interactive 3D model rather than for ...


7

To solve the rendering-issues in VirtualBox you need to disable 3D-Hardware- and 2D-Video-Acceleration. This is quite paradox, but I asked friends who used ArcGIS in a VirtualBox session and they simply told me I should try to turn off the acceleration. It works.


7

JTS Testbuilder is a java program: It works on linux as well. You only need to launch the testbuilder.sh file in the jts-1.xx/bin folder.


7

Blender has a Python API. Therefore, I use Python in Blender and import the GDAL libraries and construct a Blender-native mesh directly from the GIS data. The only thing you need to be careful of is that the version of GDAL you have matches the version of Python in the Blender release you are using. EDIT Plugins: If you don't want to write your own script ...


6

In case the question asked was still relevant, I managed to install Python-Gdal on Ubuntu 14.04 (Trusty) simply using: apt-get install python-gdal


6

You have to set up the database in the form osm2pgsql expects it. I have written a detailed Howto here (you might use google to translate): http://wiki.openstreetmap.org/wiki/User:Ajoessen/Postgis


6

What about using the OSGeo Live distribution? OSGeo-Live is a self-contained bootable DVD, USB thumb drive or Virtual Machine based on Xubuntu, that allows you to try a wide variety of open source geospatial software without installing anything. It is composed entirely of free software, allowing it to be freely distributed, duplicated and passed ...


6

You open your package manager. Type grass. Hit the install button. It should be able to identify any dependencies you may not have and install those as well. A package manager usually comes with a Linux installation. Some are better than others. I like synaptic.


6

Package management in Mint Linux is based on apt: http://wiki.debian.org/Apt, which means that the following, typed into your terminal, should install GRASS: sudo apt-get install grass Once the package is installed, you should be able to launch it by typing grass into your terminal. This will get you the latest stable version of GRASS. If you want ...


6

It appears that mint is able to handle package installation via a web embeddable trigger. Navigate to community.linuxmint.com/software/view/grass and click install. Looks like Mint manages everything from there.


6

Geonetwork's default configuration tries to put H2 database files directly in /var/lib/tomcat7, which is not writable by the tomcat user. You need to change this to a location that is writable, and that is persistent (won't get overwritten by a redeployment). A simple solution for this is using the tomcat user's home directory. First, make sure your tomcat ...


6

I think the best option if you want to work with several GIS applications and a Ubuntu-based system is the UbuntuGIS repository. Adding it to your sources is very easy, just enter this commands in the terminal, one at a time. sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install qgis After that you will have QGIS ...


6

I always keep a Portable OpenOffice Calc (or Libre Office Calc) for editing DBF files. Here's a link (I haven't tried): http://portableapps.com/de/apps/office/openoffice_portable It is possible to directly edit a dbf file using this approach - even if the GIS file is open in another program (such as ArcGIS). To refresh the table in GIS Software, just ...


6

You can do that by first creating an empty geometry and "unioning" it with the polygons of the shapefile: from osgeo import ogr test = ogr.Open('polygons.shp') layer = test.GetLayer() print layer.GetGeomType() 3 # -> polygons # empty geometry union_poly = ogr.Geometry(ogr.wkbPolygon) # make the union of polygons for feature in layer: geom =feature....


6

According to the manpage http://trac.osgeo.org/gdal/wiki/SOSI you have to compile the SOSI support yourself. This is dependent on the operating system (which you have not mentioned) and documented on the page. If you are on a mac, see also Converting SOSI to ESRI Shape This page (also available in English) has a link to compiled binaries for Linux and ...


5

Does the version of the GDAL python package you are trying to install match the one for your GDAL installation? I was having the same problem because I was trying to build the GDAL python package v1.9.0 against GDAL v1.8.1 that I had previously installed on my development machine. Simply telling pip to use v1.8.1 solved this issue for me. pip install ...


5

Currently I am running ArcGIS10 in the last VirtalBox version (not the OSE version) under Ubuntu and it works very fine for the moment.


5

How to compile latest QuantumGIS on a non-Debian/Ubuntu Linux-system with Python-plugin-support and GRASS-integration? I finally did it! Download and prepare dependencies. Most of them I could find in repositories, sometimes package names vary. Dependencies from INSTALL read-me file: CMake >= 2.6.2 Flex Bison >= 2.4 Qt >= 4.4.0 Proj >= 4.4.x GEOS >= 3.0 ...


5

Besides the OSGeo Live distribution, as already mentioned here, see also Enterprise Linux GIS Enterprise Linux (EL) and derivatives (that is, Red Hat Enterprise Linux, CentOS and Scientific Linux) is a popular and robust platform for servers and computing-heavy workstations, and is therefore a good fit for GIS specific requirements. It works also nicely ...


5

Ok, although it is funny to answer my own question I think it might be useful also for other QGIS users. If you go to Muon Package Manager and in Software sources remove all QGIS related repositories like Ubuntugis etc. then you add these (obtained from QGIS website): deb http://qgis.org/debian-nightly raring main deb-src http://qgis.org/debian-nightly ...


5

This seems to be a known system/software bug: http://forums.gpsreview.net/discussion/29425/garmin-gps-iii-plus-date-problem http://continuouswave.com/ubb/Forum6/HTML/002815.html http://www.colorado.edu/geography/gcraft/notes/gps/gpseow.htm and from the gpsd manpage http://www.catb.org/gpsd/gpsd.html: There are exactly two circumstances under which ...


5

I just went through solving this problem. The post by AndreJ is accurate and helped to start my investigation as to why the system clock was so far off. In my case, I'm connecting a GPS receiver to a Raspberry Pi 2 running Ubuntu 14.04. Raspberry Pis don't have hardware clocks and so early in the boot process, before ntp can set the clock, the time/date are ...


5

You could create a custom script in your model to clear the '/tmp' folder at the end of each run. There's numerous ways to delete files but I like to use shutil.rmtree which deletes all files/folders in a specified directory. To do this, go to Processing Toolbox > Scripts > Tools > Create new script and copy the following (adjust the path): import shutil ...


5

Assuming you really do need a JPEG output file, not a GeoTIFF with internal JPEG compression... The JPEG driver supports the CreateCopy but not the Create method. It's not mentioned specifically in the gdal raster formats list (and probably should be). If you check the command line documentation using gdalinfo you'll see this. gdalinfo --format JPEG ...


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