Monday, October 3, 2011

uDig's new tools palatte and options

Not much to say here, it has already been written down in this great post.

Just wanted to let you know.




Monday, September 5, 2011

Migg and Nettools courses planned

For all those interested in taking class about hydrology, geomorphology, water supply systems and stormwaters, all done with Free and Open Source tools, the following could be of help.

The C.U.D.A.M. of the University of Trento, has defined the dates of the next courses:

MIGG: Hydro-geomorphologic analysis integrated in GIS
25-28 October 2011

A new course is available from this year, which deals with water supply systems and is scheduled as follows:
Planning and maintainance of hydraulic networks
7-10 February 2012

All the courses use the Free and Open Source softwares uDig and JGrass.

More info at the official website of the courses: http://events.unitn.it/migg2011-12

The only downside... the courses are kept in Italian.

Friday, August 12, 2011

Small enhancement in single band raster styling




We already had tools to style single banded raster, i.e. color ramps on elevation models and similar things.
What was missing was a nice handling of novalues and other values we would not care. Take for example the following map:



This is how an ascii grid is loaded into udig...

Well, we can ask to read the values to propose a colortable through "reset colormap". But that would consider -9999 novalues. Therefore we added the possibility to define other novalues to ignore in the process. Applying that colortable will produce:



Where is the problem? The 0. The map was probably transformed and the altered collar part has been set to 0. We can try to add to the novalues list also the 0 and reset once more:



That is about it, nice, so we now apply one of the predefined colortables, to better look like a DTM:



Well, to really get rid of the 0 novalues, we need to create rules to "hide" those part, else they will not appear transparent and overlay on other layers.
We now added a button that will take the manually defined novalues and create transparent rules for them:



That is what we wanted to have. Just remember to export the style to have the same name as your raster map and the extension .sld, and you are good to go.

Also note that now we have select all/none and invert selection for rules, which get very handy when you need to move rules up and down.








Saturday, July 9, 2011

eRCP, windows mobile 6, phoneMe, J9 fruit salad

I was asked to investigate a geopaparazzi port on Trimble Juno SC. Well, obviously it is not Android. But not only that, it is also not open source at all. In fact it is one of the closest source situations I have been in many years. Anyways, while investigating all the .Net and C# and gps apis, I also gave a look at a project I fell in love with long time ago, but never really had the possibility to try: eRCP.

To be honest the project looked quite dead and it took me a really long time to figure out the current way to do things best.

The best thing right now is to download the Pulsar eclipse IDE project
and install the ERCP SDK through the update site, which now is: http://www.eclipse.org/ercp/pulsar. At that point the sdk is installed.

At that point the docs tell to go under preferences->target platform and define a new target platform based on a new eRCP template. That will take the internal sdk and load it as target platform to develop against. Well, later I found out that it didn't work for me.
What worked instead was to download:
- the ercp sdk
- the win32 runtime
- the windows mobile runtime
and add those to the target platform configuration. At that point I was ready to develop.

First thing I wanted to run the demo codes, that can be found in the ercp cvs at dev.eclipse.org.

So simply create a cvs repo with:
host = dev.eclipse.org
repo path = /cvsroot/rt
using anonymous user and browse the HEAD into the org.eclipse.ercp folder to checkout as a project the org.eclipse.ercp.app application. That way you can run the example applications on your windows pc.

Obviously you want to run them on the mobile devide. Ok, that was trickier.

First thing you need to upload top the device (let's say in the root folder) the eRCP folder that can be found inside the windows mobile runtime downloaded before. That one contains also the example runner files.

The few examples found all make use of the J9 IBM environment to run the eRCP demos. Well, that one is not open source and also not free right now. But it seemed the only possible way to go. I tried to use the J9 bundle that gvSig mobile is using but was not successful. Being in need to really know if eRCP is a way to go, I finally decided to buy the J9 environment (I hate to buy things when I don't even know if I will ever need them!). Once bought, I installed it on the Juno and was looking forward to see the examples work.

Well, that also didn't happen. The launcher crashed and I was getting more and more frustrated. But I spent money and now it HAD to work. So I started to search for solutions for the J9 crashes.

That was the moment when the following two blog posts came in my way:
Phoneme advanced and eSWT Running Under x86 Windows
Running eRCP with Phoneme Advanced on your mobile phone

This man, apart of writing amazing posts, made me feel stupid for having bought something I didn't want (I deserve it), but also really solved my issues.

From the phoneme I donwloaded the right cab, uploaded it to the juno and installed it.

I then had to change the launcher links of the examples a bit from:

37#"\Program Files\J9\FOUN10\bin\j9.exe" -jcl:foun10 -cp \eRCP\startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ercp.eworkbench.eWorkbench -console

to:

37#"\Programmi\pMEA FP\bin\cvm.exe" -Djava.specification.name="J2ME Foundation Specification" -cp \eRCP\startup.jar org.eclipse.core.launcher.Main -application org.eclipse.ercp.eworkbench.eWorkbench -consoleLog

And it finally worked!! Being an RCP developer for the uDig project I really love the eRCP approach. Now I just have to understand how to take pictures in windows mobile from eRCP and then I am really happy.

I hope this can help someone else to don't lose maoney and time in trying just to make some demo code run.

Saturday, July 2, 2011

On your marks, get set... spatial toolbox on the line

Doing the last piece of migration JGrass into uDig, i.e. the Spatial Toolbox (aka. OmsBox) has been a lot of pain. One of those things in which the last 2% cost you almost as much as the 98% before.
We have been using the toolbox in testing now almost half a year now and finally today the last bits have been placed in the proper locations:

* the PSC has reviewed and accepted my plugin
* the code is inside the main uDig repository
* the libraries needed have been sorted out
* a new release of jgrasstools has been made to be aligned with the uDig libs (0.7.1)

and...

* the uDig help page that is required by the heavy metal Jody Garnett reviewer (thanks for helping) is also there. It can be found here.

Tomorrow we should be able to tag a snapshot release and on tuesday we should have the release ready for the Osgeo DVD. I think I will soon sleep much better...

Saturday, June 11, 2011

LIDAR data & jgrasstools and uDig

Well, we always like to look at things from different perspectives. And we are really fast when we use our own tools, that we can bend and change to our needs.

We are slowly bringing some las reader we wrote into the jgrasstools family, so that we then can add some analysis support. Sure thing nothing to do with the great laslib project, but it is handy for us to be able to certain tasks without dependencies and most of all be able to chain results into other modules directly.

So a first test takes 22M of points, filter them down to 12M (only first impulse) and splits them over 1M points shapefiles. I tried to write one single shapefile, but the geotools shp writer simply froze :) Will have to investigate further.

One thing uDig is really one of the best at, is to visualize HUGE amount of features. I am always amazed to see how well it does in that. Here 10M points loaded after properly stiling them by quantiles:



Yes, it already look nice for a first test. Zooming in it looks even better:



Yes, yes, shapefiles are maybe not the best format to use in this case, but hey, I really enjoy to play around with them to have a better feeling about what I am dealing with.

Well, this is a starting point. Let's see were it leads to...