Wednesday, May 16, 2012

Geopaparazzi Web Map Tiles enhancements

Well, why should geopaparazzi hang behind uDig? :)

Ok, there are a number of reasons, but in this case, it doesn't have to be like that.

A small piece of history
Some of you might know that I am now part if the Italian TANTO geospatial (and not only) information/education blog.
In April I decided to go and visit the one guy that actually founded that blog in the most distant place in Italy from where I live: Andrea Borruso from Palermo.

We spent a couple of days daydreaming under the heavy effects of muffolette, cassatelle, cannoli and the grand finale of the sfince di San Giuseppe.

The recurring question was: how do we bring a custom raster into geopaparazzi? The potential is there, but we need to be able to load custom map!

Well, at the end we figured that the best thing would be to support local (as well as remote) TMS.
Andrea is black belt of TMS and was able to provide me with some tilesets.

So I started to implement the possibility to load the tiles on the phone and describe them with a small file, so that they would appear as tile sources.

We will throw out this new version as soon as the documentation is ready and some good tutorial on how to quickly handle data and stuff. as usual, if you wanna help, please contact us, we badly need support.

But in the meanwhile I really want to share some examples of the results we were able to achieve.

1) tiles of the ortofoto of sicily, zoomed on Palermo



2) an archeological area airbourne survey, done with drones. Imagery provided by the Consorzio TICONZERO. Interested how they are doing this? Have a look here.



3) technical map, overlayed with the results of a risk analysis (perfect for outdoor geologists and engineers)


Do you remember seeing this image somewhere already? Maybe loaded in uDig? :)

4) Last but not least, a scanned historical map (shiver down my spine)




Ok, need to stop here.
Basically soon it will be possible to load almost any kind of raster map into geopaparazzi, which is an amazing enhancement. Now all that's left, is to wait for the next release :)

This post is born as a parallel post (as in two different ways to tell the same story by the people that lived it) of this post.





Saturday, May 12, 2012

uDig web map tiles enhancements

Many of you for sure know that uDig has the ability to show Web Map Tiles.

From the import dialog you select Web Map Tiles:


push the next button and find a long list of available web map tile servers (which we should probably check).


There is also the possibility to select a custom server. This is very handy, but had 2 problems:
- it could not load local folders of files
- it understood only the google tile schema numbering, which means no TMS

Well, this is the first enhancement. Those two problems were solved. Mind that you will have to check the right option:


The second enhancement will make uDig Spatial Toolbox users happy. With the next uDig release we will also release the module that creates TMS folders from a set of layers. I do not want to go into detail shere, but a new module will allow to export a set of styled layers as tiles folder. Those tiles come with the complete description of the zoom levels and so on.

In fact since that file is the only thing needed to load a folder of tiles, it made sense to add a small item to the list, the JGrasstools TMS folder:


And there we have it. Push the button, push, push the button and:


This will be extrememly helpful for those like us that use uDig with BeeGIS field extensions out in the field on netbooks. The base dataset gets extremely lightweight to load and rasters can be prepared to be fast and easy.


Sunday, April 15, 2012

uDig feature movies

Have you ever had to check something like 2000 features? A quick check, nothing difficult. But 2000 or more features.
You start panning around, after a while you do not know what you passed already, your eyes get glossy, you loose control, bad things happen, and some of you ask themself why they can't just be writing code instead.

The only solution I could think of, was some kind of movie that would crawl through the features and zoom to each one, something you could stop and resume.

Well, the next uDig will finally have that tool:


I guess this doesn't need much explanation. If you have doubts, just ask.

One nice thing for the future might be to also add amap image export facility, which would make it possible to print an image of each feature?

Sunday, April 8, 2012

Extreme Easter Geopaparazz-ing Recipe

Recipe:

1) Choose the right day and the right place


2) Choose the right tool (Geopaparazzi of course!!)


3) Survey everything, no matter how hard


4) Let no obstacle stop you, let your mind float!


5) Tag on OSM even the most difficult locations


6) Fight for survey-val


7) Get home and do a regular (and well earned) Fruehshoppen with white sausages, brezel and hefe-weizen beer!


Happy Easter!!


------------

Small update: the geopaparazzi kmz export. Amazing view if it does not snow that much :)







Wednesday, March 28, 2012

The geopap-browser is on its way

Well, it is not often that I throw myself in the web development world, but geopaparazzi needed a simple way to upload/download projects for happy collaboration.

So aided by the simplicity of the play framework and my treasurebox TANTO team, I started the journey to create the geopap-browser.

The aim was to create a web prototype to showcase the functionalities of the webproject possibilities of geoapaprazzi. So in the next release you will be able to export a project to a configured server:


The browser application itself is quite simple.
We have a main page listing the uploaded projects (with simple filter possibility):


And then there is a project view that gives a nice summary of the data contained in the project. It is also possible to see the profiles of the traces and... download the points and lines as shapefiles.


So... we are working on it, stay tuned!

Sunday, February 12, 2012

Geopaparazzi 2.6.0 is out - OSM, Mixare and GeoSMS

[for an Italian version of this article, click here]

We just released Geopaparazzi 2.6.0 to the market.

I was really looking forward to this release because it contains a ton of new stuff some were expecting. Let's try to see some of it.

1) Openstreetmap support

This is likely the most important change for this version. We now have the possibility to create OSM points of interest and synchronize them with the OSM accoutn online.

First one has to activate OSM support in the preferences:


If OSM support is activated, once geopaparazzi restarts, the user is prompted to download the OSM tags. This is a library of symbols and definitions of OSM tags.


The map view will then prefsent a small OSM-logo handle at the right side of the map. If that one is pulled, it shows the OSM categories available.


Entering one of the category, the various tags are presented:



And when selected, the user gets the form with the definition of the selected tag. Once filled out and pressed ok at the bottom of the form, the point is saved and kept ready for upload to OSM.


From the categories view one can upload the OSM points to his account. The application just askes for a description for the changeset it is going to upload.


If the user and password were inserted properly in the preferences, geopaparazzi will connect to a WPS service written and made available by Luca Delucchi. The WPS will take care to upload the points to the defined OSM account. A big thanks goes to Luca, who helped me to understand the necessary OSM internals. He alos wrote the actual WPS service, made it available for all geopaparazzi users and also prepared the OSM tags library.

2) OGC GeoSMS support

This version has support for the recently released OGC GeoSMS specification. This works in two ways: for sending geosms, but also for incoming geosms.

The sms preferences allow to "enable sms catcher", which will handle incoming geosms, while the panic number is instead the number that will be used to send geosms to.


Let's start with outgoing geosms'. Geopaparazzi has the bottom "panic" bar. From there a user can send a panic message, which will send to the configured number a geosms containing the positions following OGC specs and a message asking for help. There is a second button that can be used to send a customized geosms. It will ask the user for a cutom text to add to the location definition.


What happens instead when a GeoSMS is recieved? If the catcher is enabled in the settings, geopaparazzi will parse the incoming message and recognize the GeoSMS format. It will notify the user that such a message has arrived:


The notification makes it then possible to open the GeoSMS with one of the available applications on the phone, that can handle the position information.


So once selected the notification:


And opening it for example with a well know application we can see that I was preparing some screenshots for my talk at the Italian GRASS and GFOSS user meeting in Trieste:



3) augmented reality with mixare

In this version we added the ability to view all points of interest contained in the current geopaparazzi view in mixare. I already described the feature in this post.
The entry point is the menu in the map view:


4) create a new project


While this has been a bit odd in the past, it now follows a more natural workflow. You are asked for the name of the new project and geopaparazzi creates the project and loads it.



5) bookmarks

One this I was missing, was a very easy way to add bookmarks to geopaparazzi. So we added a check on the presence of a bookmarks.csv file in the project folder (by default geopaprazzi). If the file is there and it contains points in the form:

Hotel Trieste, 45.642043,13.780791
Grassday Trieste,45.65844,13.79320

those points will be loaded in the application and appear in the bookmarks list.

This feature lead me to have a ton of bookmarks and defined the need for a way to filter them. So the bookmarks list now has a textfield that filters the bookmarks by name:



6) center on gps

After having risked to make car accidents just to pan while driving in order to have the actual position visible, we added a function to have the gps alwasy inside the current window, through automatic panning. It can be switched on in the gps preferences:



7) enhanced charting with zoom to markers

Just to remind that one, I wrote already here about it.


8) osmdroid doesn't kill tiles any more

Some developers from the osmdroid (the engine we use to display the maps) community finally solved the bug that in certain low memory conditions were killing all the OSM tiles, leaving the user with no more maps. This was one of the worst bugs ever, since it had happend to several user that they found themself out in the field with no network and no more maps. This has now finally been solved!!!

9) possibility to use network based position

This was asked by several users so we thought we could add it. In the setting it is now possible to ask geopaparazzi to use network based position definition instead of GPS based. Even if I do not like it that much, I agree that it is handy sometimes.




Tuesday, February 7, 2012

Bob knows how to build a dam... with uDig and jgrasstools

Well, I assume everyone knows Bob the builder. Ok, my sisters kids had to teach me of his existence, but apart of my ignorance Bob seems to be a quite famous guy.

Anyway, we needed someone to build dams and human artefacts on raster, to better handle hydraulic simulations. This might be the case of many people playing with elevation models, since the available terrain models many times do not consider human works you need to consider and the surface models are not usable for certain purposes.

So we finally decided to implement the Bob The Builder Tool in jgrasstools. A tool the would give us the possibility to easily modify the elevation model in a assisted way.

So from the next jgrasstools release on in uDig you will be able to do what I will describe in the rest of this post.


Just for fun, assume you want to do some kind of simulation considering the presence of a dam.

First let's check the region we consider:


and the same in 3d (the arrow should help understanding where is where):


Let's define a smaller region on which we want to place the dam. The module will require two feature layers:
1) a polygon layer containing the bounds of the artefact
2) a point layer containing an elevation attribute, which will represent elevation points that will be used to interpolate the surface inside the polygon area.


The module then creates a new raster with the dam merged into the environment:


The aspect put with transparency on top of the dem gives the impression that not much happened, but the 3d doesn't lie:


The module creates the dam shape in every point in which the dam's elevation is higher than the terrain. There is also a possibility (a flag) to erode, if necessary, which in the above case would generate the following:


Thanks Bob :)