Archive for the 'GPS' Category

Published by breki on 27 Jan 2009

GroundTruth: Problems With ZIP

angry sandwich closeup
Creative Commons License photo credit: Sakurako Kitsa

Grrrr…. looks like my code for zipping the build package is doing something wrong – some people reported they couldn’t extract files due to problems with a corrupt ZIP file. I tested it on my two machines (both Vistas) and it worked OK (both with the Windows integrated unzipper and with 7zip).

I’m using SharpZipLib for zipping. I did some investigation on Google and there are a lot of reports with SharpZipLib zipped files being unaccessible on Linuxes and Macs. I’ll take a deeper look into this issue today, in the meantime I rezipped the files manually (so it should hopefully work now) and placed the ZIP file on the download location: http://downloads.igorbrejc.net/osm/groundtruth/

Published by breki on 26 Jan 2009

GroundTruth Released!

I’m happy to announce I finally managed to finish most of the things I planned for the first release of GroundTruth, a mapmaking software for Garmin maps.

You can find the download package on http://downloads.igorbrejc.net/osm/groundtruth/.

For more information about GroundTruth, here are some links:

I still have to write the manual on OSM wiki, so please be patient. And since this is a first release, expect bugs. Please report if you find any. Thanks!

BTW here are some screenshots of a GroundTruth hiking map taken from my Garmin eTrex Vista:

unit6unit5unit4unit3unit2unit1

Published by breki on 19 Jan 2009

GroundTruth: Writing Documentation

GroundTruth

The release date of GroundTruth is approaching fast. I’m now doing some final user-friendliness touches to the tool, like providing default values for all of the command line options. The idea is to make the map creation as simple as possible.

Parallel to that I’ve started writing documentation on the OSM Wiki. You can visit these pages as a preview of what GroundTruth is offering (the pages are still being written, so please be patient):

You can also visit the GroundTruth category, it lists all of the files related to GroundTruth tool: http://wiki.openstreetmap.org/wiki/Category:GroundTruth

There are still a few cosmetic tasks I’d like to finish before releasing the beast. I’ll also try to prepare some general rendering rules since I’m not sure how interesting the existing hiking rules are to the general public. The general rules would be more automotive-oriented, with different types of roads depicted with different colors – hiking map ignores these differences.

Published by breki on 10 Jan 2009

GroundTruth: Status Update

GroundTruth now supports custom POI icons:

GroundTruthPOI

The small X’s are OSM nodes tagged as "todo=junction". I use these tags to mark junctions on hiking trails which still need to be explored. X’s are not standard icons for Garmin units (as opposed to parking area icon visible on the bottom of the map).

GroundTruth allows specifying icons as part of of rendering rules on a Wiki page:

GroundTruthIconDef

First you specify colors you want to use (up to 255), and then use those colors to specify a pattern (up to 24×24 pixels).

There are still some things I like to implement before releasing the tool to the public. The first goal is to make the tool accessible to non-OSM-ers too, so GroundTruth will include downloading of OSM data for a user-specified area. Hopefully the tool will help attract new enthusiasts for free mapping.

Published by breki on 30 Dec 2008

GroundTruth – A New Garmin Mapmaking Tool

Geocacher
Creative Commons License photo credit: Gregory Pleau

Currently the development of Kosmos is on hold – about a month ago I started implementing a new tool for generating Garmin maps from OpenStreetMap data. The tool is called GroundTruth (and here’s why).

Since there are already some tools which do this kind of work, you’ll probably ask why I felt a new tool is needed. Let me answer by saying that I use my Garmin unit mostly for hiking (and mapping hiking paths). For the past year or so I used a tool called Mkgmap for generating Garmin maps of Slovenia (both road and hiking maps). The problem I had with Mkgmap is that it only supported single tag rules for converting OSM features to Garmin map elements. This is problematic if you want to fill your map with as useful information as possible.

One simple example would be to show hiking paths which are trailblazed differently from ordinary non-marked footways. This is important for hikers, since trailblazed path usually mean you won’t get lost even if you don’t have a GPS unit or if your unit’s batteries are dead.

The trailblazed paths are just one example. There are a lot of other combinations of OSM tags which are important. Since I didn’t notice any development Mkgmap activity on this issue, I decided to give it a go myself (it looks like Mkgmap now supports complex rules after all, but I haven’t tried it).

I’ve taken the idea of storing rendering rules on OSM Wiki pages from Kosmos. Here’s a sample of how these rules look like for GroundTruth:

GroundTruth4

The second motivation for GroundTruth was to make a tool which would be a one-stop-shop for Garmin mapmaking. This includes:

  • support for custom map styles (with automatic generation of TYP files)
  • support for additional map features (like map transparency)
  • generation of Mapsource preview files
  • registration of generated files into Mapsource
  • automatic uploading of generated maps onto a GPS unit.

These features are already implemented and I’ve tested maps on my hiking trips. I’ve done some work on defining rendering rules to show different types of highway=footway (red lines, solid or dashed depending on its visibility) and highway=track (gray lines, solid or dashed depending on the track grade) (screenshots are from Mapsource):

GroundTruth1

One of the nice things that can be done using GroundTruth is to combine several criteria using semitransparent lines or areas. We can show marsh in combination with other landuse types (like forests):

GroundTruth3

And here we show all trailblazed ways (either footways or tracks) with a white border:

GroundTruth2

All this can be achieved simply by specifying rendering rules. Everything else (custom types definitions, generation of TYP files) is done automatically by the tool.

I should note that GroundTruth uses a free version of cgpsmapper to do the actual generation of IMG, TDB and TYP files (I’m no way affiliated to the author of cgpsmapper).

What Still Needs To Be Done

GroundTruth is now nearing the first release. I still have to add support for POIs (you’ll be able to use your own icons for these) and some other minor features. Hopefully this will be done in next few weeks.

After the first release, I’ll concentrate into providing support for contour lines from SRTM height data (a new tool will probably be needed for this). Possibility for map routing should also be investigated. So if you’re interested in Garmin maps, please stay on this channel…

Published by breki on 07 Sep 2008

Kosmos News

 

The work on the new version of Kosmos is in full speed. I planned to release it in August, but I had too little spare time for it – most of my weekends were spent hiking and mapping and was also pretty busy on my “real” work.

Anyway, I updated the “Kosmos Future” page on OSM wiki pages with the latest status. What I am really excited about is the new feature – showing Kosmos-generated maps on mobile phones using MGMaps, MGMaps is a free Java ME application for showing Web maps from various sources (OpenStreetMap, Yahoo, MSN and more). The default behavior is to download map tiles on demand, but the user can also download them manually and store them in the phone’s memory.

This “stored maps” feature of MGMaps gave me the idea of providing a way to show Kosmos maps with MGMaps. I added support for generating MGMaps-style map tiles in Kosmos console – you simply generate the tiles for a specified Kosmos project and then copy them to your phone. The results can be seen here (NOTE: the “Osmarender” text on the bottom of the screen is shown because I had to mark my tiles with one of the map types supported by MGMaps, and I chose Osmarender).

Apart from the fact that using this method you do not overload OSM servers by mass-downloading tiles, it also provides a way to have maps customized to your needs on your phone to help you with the navigation (MGMaps can connect to a GPS receiver). I’m already thinking about using this solution when hiking instead of Garmin + mkgmaps combination. Note however that MGMaps work for Java ME-enabled phones only.

Published by breki on 01 Apr 2008

Garmin Hiking Map For Slovenia

I finally got around to try out Osmxapi and I developed a simple client to download the latest data for Slovenia. I played around with some simple batch files to download the data, convert it to the Garmin’s img format (using Mkgmap), zip it and upload it to an FTP server. So the updates of Slovenia map should now be more frequent.

Good news for hikers (and cyclists) is that I created a separate version of Slovenia map which has more visible hiking related features. The problem with standard Garmin features is that they show footways as thin dashed lines which are very hard to see when you’re outdoor in the sun. Also, the tracks (unpaved roads) are shown in practically the same way as minor forest footways.

The hiking map I prepared shows footways clearly (as thicker red solid lines). Tracks are shown as thick gray lines (I borrowed the “border” feature for this). All other roads are shown using a same feature, so there’s no distinction between minor roads and motorways, but I think this is not really important for hiking. Anyway, if you have enough free memory on your unit, you can upload both maps and switch between them when needed.

You can find the maps on the Garmin Stuff page.

Published by breki on 15 Feb 2008

Friday Goodies – 15. February

.NET Development

  • FastSharp – running C# code inside a text box
  • NDesk.Options – a callback-based program option parser for C#

Development

GPS

Published by breki on 08 Feb 2008

Friday Goodies – 08. February

Development

Web Services

.NET Development

VisualStudio

GPS

Misc

Published by breki on 01 Feb 2008

Friday Goodies – 01. February

Development

.NET Development

VisualStudio

GPS

« Prev - Next »