RasterCalc 0.2
15.02.2011 18:00 · GIS · qgis, plugins, rastercalc
I have just released RasterCalc 0.2 with conditional operators support.
Beer feedback and bug reports can be sent to the author.
P.S.: Git is extremely powerful and easy to use.
15.02.2011 18:00 · GIS · qgis, plugins, rastercalc
I have just released RasterCalc 0.2 with conditional operators support.
Beer feedback and bug reports can be sent to the author.
P.S.: Git is extremely powerful and easy to use.
03.02.2011 19:24 · GIS · qgis, plugins, rastercalc
Despite the fact that QGIS now has a built-in raster calculator, the RasterCalc plugin I developed is still quite popular. I don’t know how to explain it: either it’s a matter of habit, or my calculator is more convenient… I’d like to know what the reason is, maybe I should make a poll.
Why this preface? For a long time, I’ve been “terrorised” by requests to add support for conditional operators to my plugin. The one guy from Spain was particularly active. And no matter how often I pointed out that I was busy with other projects, no matter how hard I tried to avoid it, nothing helped. After a short break, the “attacks” were repeated. Apparently, they had decided to wear me down.
The inclusion of a patch that added comparison operators (submitted by Ghislain Picard) didn’t help either. It was not enough, and it was not what they were looking for. People wanted more, something similar to r.mapcalc
from GRASS and preferably with the same syntax.
Well… I have to admit, they got it. Today this most wanted feature is implemented. However, the syntax is different from r.mapcalc
’s, because I didn’t want to make the already complex parsing code even more complicated. Now you can do things like:
This nice feature is still in my local repository. I will not commit it to the public repository until the documentation has been updated. And I really don’t have the mood or energy to do that. I don’t like writing, whether it’s an essay, an article, or anything else. There are times when it is easy to write, but those are rare.
There is another reason or two, to be precise and honest. Firstly, I’m thinking about optimising the plugin a bit: operations on large rasters use a lot of CPU and memory. And secondly, that very active Spaniard made another feature request the other day, and I have a feeling that he will be as persistent in his efforts to get me to implement it as he was before.
But I haven’t made a final decision yet. Maybe the conditional operator should be enough for a new version and I should not bother with refactoring and optimisation? Or should I wait a bit, but release an even more powerful calculator and consolidate the success of the first versions?
06.01.2011 07:03 · GIS · qgis, plugins, cswclient
I have released a first experimental version of the CSWClient plugin for QGIS.
The plugin interacts with the OGC CSW (Catalogue Service for Web) servers and is used to search and view spatial data and related resources.
Among the main features of the plugin:
downloadableData
records in the browser.liveData
records to the list of WMS services (if this is a valid link to a WMS service)CSWClient is available from the QGIS plugins repository.
The plugin was developed for Linfinity Consulting for the TanBIF (Tanzania Biodiversity Information Facility) project.
22.11.2010 17:27 · GIS · qgis, plugins
I decided to improve my MergeShapes plugin a bit. I added encoding selection when opening files, shapefile geometry type selection and reworked the merge algorithm. Now, the final attribute table contains all unique fields from all input files, which means you can merge files with different attribute tables. The only missing bit is a setting for the default encoding of input data.
There are plans to improve DPSimplify, Statist and RasterCalc, but I don’t know how it will go yet.
I’ve also started to slowly learn Git, or rather to organise and deepen my fragmentary knowledge. I want to try out this VCS in real tasks, as there is already a Git mirror of the main QGIS SVN repository.
15.10.2010 17:41 · GIS · qgis, plugins, rastercalc
Yesterday I found out that my plugin — RasterCalc — was only announced on the QGIS mailing lists. I didn’t post anything on the forum or here. I don’t know how I could have forgotten. Although I have to admit that there was a lot of work going on at the time: RasterCalc itself, an experimental branch of GDAL Tools, Photo2Shape and many other things. QGIS 1.4 was released in January… I know it’s a weak excuse, especially considering that other plugins were announced all over the place, but I don’t have any others.
So… RasterCalc is a user-friendly and functional raster calculator written in Python. It was announced on the mailing lists on 16 January 2010.
RasterCalc was inspired by Barry Rowlingson’s RasterLang plugin. The main difference is the user-friendly interface and the familiar expression syntax (do you like LISP as much as Barry?). I have also added some additional features like saving and loading expressions, “templates” of formulas and extended the set of available functions and operators.
Weeks and months went by (I almost wrote “years”), nothing seemed to indicate any changes… And then, out of the blue, Marco Hugentobler and Tim Sutton decided to make RasterCalc part of the QGIS analysis library. This will allow its features to be used by other plugins, and remove the dependency on NumPy, pyparsing and other Python modules.
Marco has already published a first version of the patch. Some features are missing compared to the original plugin:
Float32
data typeAt the same time, new features have been added:
You can try out the new functionality by applying the patch and building QGIS from source. The calculator will appear in the “Layer → Raster calculator” menu.
The patch is still under development and some things may not work. The authors invite everyone to try it and report any bugs (if possible, attach a test dataset and steps to reproduce the issue).
06.06.2010 13:07 · GIS · qgis, plugins, gdaltools
GdalTools (or Raster Tools) is a plugin for the open source GIS QGIS. The main purpose of the plugin is to simplify the use of the GDAL command line utilities by providing the user with a graphical interface for the most common operations.
Initially, the plugin was developed by Faunalia, later other developers, including myself, joined them. Robert Szczepanek created nice icons for most of the tools, and the development of some features was sponsored by Silvio Grosso.
At the time of the first announcement (September 2009), the plugin provided only two tools: gdalbuildvrt
and gdal_contour
. Now the number of integrated tools is approaching 20.
03.02.2010 15:36 · GIS · qgis, plugins, gdaltools
Today we merged the experimental branch of the GdalTools plugin into the main development branch.
GdalTools (aka Raster Tools) provides users with a simple graphical interface to perform the most common raster processing tasks. Originally the plugin was created by Faunalia (Paolo Cavallini, Giuseppe Sucameli and Lorenzo Masini), the icons for the extension were created by Robert Szczepanek. About a month ago I also joined the work (and this experimental branch is my work).
This is what we ended up with:
02.02.2010 17:56 · GIS · qgis, plugins, photo2shape
Yesterday my patch adding import/export of connection settings to geodatabases and WMS servers was accepted.
When the user clicks on the import/export button, the following simple window appears
The file to which the data will be written (or from which it will be imported) is selected at the top, and the connections from that file are displayed below. Multiple selection can be made using the Ctrl and Shift keys, also list items can be selected by dragging the mouse.
Once you have saved the file, you can transfer it to another machine and add the necessary connections in a few clicks.
I also forked Tim’s ImagesToShape plugin, rewrote it to use the EXIF.py
module and added some improvements. This is how Photo2Shape was born. It is already released, but there is not much feedback yet, or rather none at all :-).
27.01.2010 17:22 · GIS · qgis, plugins
Recently Tim Sutton published a blog post about geotagging with free software and released his QGIS plugin for it. The plugin uses the exiv2
library and requires the python-exiv2
package, which is not available on Windows/OSGeo4W. Therefore ImagesToShape is not available from the plugins repository.
As I’m interested in geotagging myself, I contacted Tim and offered to rewrite the plugin, abandoning exiv2
in favour of a pure Python module.
Approval granted, so I start work on the plugin.
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.