Category: GIS

QGIS 1.4 "Enceladus"

12.01.2010 10:01 ·  GIS  ·  qgis, release

QGIS 1.4 “Enceladus” has been released, the announcement can be found on the official blog. This release contains over 200 bug fixes and about 30 new features. It is notable for a new symbology system, a more advanced PAL-based feature labelling engine and other improvements.

Meanwhile, the developers are working on the trunk: it is already possible to reload Python plugins without restarting QGIS, the Python console has been practically rewritten, support for GPS devices has been added, diagrams and plots now use Qwt…

And there is another hackfest planned for the end of March in Italy, details here. I’d love to go, but I don’t know if I’ll be able to.

About RasterLang and GDAL

06.01.2010 15:15 ·  GIS  ·  gdal, python

The RasterLang QGIS plugin refused to work, complaining about a self-compiled GDAL with almost everything enabled. Investigation showed that in addition to all GDAL dependencies, the NumPy package must also be installed. Otherwise you some things will not work.

NumPy is needed to build gdal_array: a small but essential module used to represent images as arrays and then do all sorts of naughty things with them.

After installing NumPy, rebuilding and updating the GDAL package, everything worked.

Improving GdalTools

23.12.2009 16:28 ·  GIS  ·  qgis, plugins, gdaltools

I’ve already submitted some patches for fTools, now it’s time to look at GdalTools. I have already added an “Info” tool to display information about the raster, implemented internationalisation support, added several new options to the “Merge” and “Warp” tools, and now I am working on a batch mode. There are also plans to add more tools.

Hopefully I will be able to get most of the work done before the New Year, and then I will start improving Statist and developing another plugin.

QGIS 1.3 "Mimas"

22.09.2009 07:36 ·  GIS  ·  qgis, release

Less than a month has passed since the release of QGIS 1.2.0 and now… 1.3.0 is available. Pretty fast, huh?

There are not that many changes, mostly bug fixes and minor improvements. There is a tendency to switch to native analysis tools (i.e. not related to GRASS), for example this version includes the “Raster terrain analysis” plugin for terrain analysis.

The announcement, as usual, is available on the official blog.

QGIS 1.2 "Daphnis"

02.09.2009 10:59 ·  GIS  ·  qgis, release

Release. There are a lot of changes, especially in the digitising tools: undo/redo support, history of edits, feature simplification and merging, ability to remove holes in polygons, and many other useful features. And also added support for attribute table field aliases, support for keyboard shortcut customisation, plugin and provider for working with OpenStreetMap… going through all the new features will take a long time.

The so-called visual changelog can be found on the developers’ blog. I haven’t translated the announcements in the wiki into Ukrainian and Russian yet because the official version isn’t ready yet. I think it will be cleaned up by tonight, and then I can start translating.

Updated matplotlib for OSGeo4W

12.08.2009 15:07 ·  GIS  ·  osgeo4w, matplotlib

A new version of matplotlib 0.99 has been released recently, the list of changes can be found here. I have rebuilt the package for OSGeo4W, updated the corresponding wiki page and uploaded the new package to the server.

Statist update

04.08.2009 18:41 ·  GIS  ·  qgis, plugins, statist

I continue to work on the Statist plugin. It’s been a while since I updated the public repository — I’ve been working with my local copy. But today I uploaded a pretty big update.

Among the most notable changes:

There is only one major bug left (there are probably others, but they have not shown up yet) — in some cases, the histogram is displayed in a rather strange, I would say suboptimal, way. I have some ideas about how to fix this and will have to test them.

Enjoy the plugin. If you have any problems and/or feature requests, do not hesitate to email the author :-).

Statist plugin for QGIS

02.07.2009 15:20 ·  GIS  ·  qgis, plugins, statist

I have released my plugin for QGIS — Statist.

It is used to obtain statistical information on the specified field of the vector layer attribute table. Both numeric (integer, real, and date) and text (string) fields are supported. The plugin can work on the whole attribute table as well as on selected features. In addition to displaying basic statistical values, Statist also displays a frequency distribution histogram of the field values.

Statist plugin dialog
Statist plugin dialog

To use Statist, it is necessary to have matplotlib installed (it can be installed via OSGeo4W or downloaded from the project page, as it is used to display the frequency distribution histogram.

The plugin is available from my QGIS plugins repository. Comments, feature requests, and bug reports are welcome. It is best to post them in the bugtracker, but email is fine too.

If someone does not need a frequency distribution histogram and unnecessary dependencies, they can use the “Basic Statistics” tool from fTools (now included in core). After my patch, it has the same functionality as Statist except for the frequency distribution histogram.

PostGIS vs ArcSDE: raster load speed test (summary)

30.06.2009 10:14 ·  GIS  ·  postgis, wktraster

Let’s summarise what was said in the posts about PostGIS and ArcSDE. The image loading speed tests showed that PostGIS was much slower than ArcSDE.

However, do not forget that WKTRatser is still in an early stage of development (version 0.1.6 at the time of testing) whereas ArcSDE has been around for years. Also, rasters are usually loaded into the database once, so the load speed test is of little practical value. It would be much more interesting to compare the performance of these products when processing rasters. Unfortunately, this is not possible for a number of reasons.

PostGIS vs ArcSDE: raster load speed test (part 3)

30.06.2009 10:14 ·  GIS  ·  postgis, wktraster

ArcSDE was tested on the same machine using the same dataset (see PostGIS test). The discs were formatted before the test, and the system was restored from the snapshot. As I could not get ArcSDE to work with my self-compiled PostgreSQL 8.3.7, I tested it on its bundled PostgreSQL 8.3.0 + ArcGIS 9.3 SP1 (build 1850) + ArcSDE 9.3.

As in the PostGIS test, the database cluster was located on a separate 80 GB disc. For the purity of the experiment, the original image in MrSID format was converted to ERDAS IMAGINE using ArcGIS tools. Loading and all other operations were done using ArcGIS Python scripts, not ArcCatalog.

The conversion to the ERDAS IMAGINE format has been carried out with the following script:

import arcgisscripting
gp = arcgisscritpting.create()
gp.toolbox = "management"
gp.CopyRaster_management("N-38-45.sid", "N-38-45.img", "#", "0", "#", "NONE", "NONE", "#")

and it took 1202 s (~20 min), the resulting file has the same size as when using gdal_translate, i.e. ~4.7 Gb. Now let’s build pyramids

import arcgisscripting
gp = arcgisscritpting.create()
gp.toolbox = "management"
gp.BuildPyramids_management("N-38-45.img")

Building the pyramids took 451 s (~7 min.) Before loading the raster into the database, we need to create a RasterDataset for it:

import arcgisscripting
gp = arcgisscritpting.create()
gp.toolbox = "management"
gp.CreateRasterDataset_management("Database Connections/raster.sde", "N_38_45", "14.25", "8_BIT_UNSIGNED", "#", 3, "#", "PYRAMIDS -1 CUBIC", "128 128", "LZ77", "#")

This operation took exactly 2 seconds :-). The time is so small that it can be neglected. Now we can load the raster into the created dataset:

import arcgisscripting
gp = arcgisscritpting.create()
gp.toolbox = "management"
gp.workspace = "d:\raster"
gp.CreateRasterDataset_management("N-38-45.img","Database Connections/raster.sde","LAST","FIRST","0","#","NONE","0","NONE")

The raster loading process was quite fast, taking only 1337 s (~22 min). After loading the image, the database cluster grew from 42,495,444 bytes (~40.5 MB) to 6,934,776,988 bytes (~6.45 GB).