Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are using shapefiles with a large attached database to it (162 Mb for 133000 features) Opening this shape file on a remote server takes about 5 minutes whereas DivaGIS takes 7 seconds for the same file.

My suspicion is that QGIS loads the entire shapefile to client and stores it in a temporary directory before rendering it whereas DivaGIS picks up the geometry, renders it and opens the .dbf file on the remote server.

My question is: "How does QGIS handle files and how can I improve this and / or can it be improved?" (I have once read an article "QGIS on steroids" but i have not seen any improvement since QGIS 1.6)

Working with Postgis improves this a little bit but it doesn't come anywhere near the speed of DivaGIS.

Hope someone can help me further.

share|improve this question

This answer is specific to QGIS shapefile display performance. In general file I/O in QGIS is handled by the GDAL and OGR libraries.

If you aren't viewing all the geometries in a shapefile when you open it in QGIS then display performance will be enhanced by building a spatial index. QGIS does not use the ESRI shapefile spatial index (.sbn / .sbx) instead requiring it's own format to be built. Without a spatial index, viewing the geometry at any scale will require a full file scan which can be very slow for large datasets.

I'm not familiar with DivaGIS, but it may be that it is capable of utilising the ESRI spatial index, giving it a huge performance boost over QGIS in extracting geometries from the dataset for spatial extents smaller than the whole.

To create a spatial index in QGIS, open the layer properties dialog and in the General tab, click the 'Build Spatial Index' button.

share|improve this answer

Your Answer


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.