Published by breki on 14 Jan 2008 at 09:15 pm
Kosmos Home
Kosmos is a lightweight OpenStreetMap (OSM) rendering application primarily designed to be used by OSM users on their own computers to:
- Render OSM maps interactively
- Print OSM maps on paper
- Set up a local tile map server
- Use their own map rendering rules or share rules stored in OSM Wiki pages.
For more information visit Kosmos page on OpenStreetMap wiki.
You can download the latest version of Kosmos from http://downloads.igorbrejc.net/osm/kosmos/.
You can read about the latest developments about Kosmos on this blog (http://igorbrejc.net/Kosmos).
If you find the software I’m developing useful, please consider sending me a small donation via Paypal. Your donations will help me make even better software (read more about this). Thanks!
Marcus on 26 Aug 2008 at 19:14 #
Dear breki,
I’m trying to create a printable map (in other word, a high resoultion image file) containing my own track logs and waypoints.
I found that Kosmos does much of what I want in a very easy way, but I did not find out whether I can change the style in which tracks and waypoints are rendered. A track is currently displayed as a very, very thin line, a waypoint as a very small circle.
Can I, for example, use a bitmap icon for waypoints?
By the way – great tool!
Marcus.
breki on 26 Aug 2008 at 22:22 #
Hello Marcus,
GPS track view is a relatively new addition to Kosmos, so I haven’t had the time to perfect it. Currently the rendering is as it is, so you cannot change it, I’m afraid. But I do intend to provide ways to customize drawing of tracks in a future version of Kosmos. Once I find the time
Kristian on 31 Aug 2008 at 14:26 #
Hi Breki,
after a break of several months I have downloaded the current version of Kosmos, and it looks good
But there are 3 high level items I found after the first clicks:
When I tried to open a 1.12 project, I saw that there´s a new format. So I tried to find an information to load osm files as before in a Wiki or something, but I could not find anything. So I had a look into the example *.kpr and found that it´s very similar to the old format. I have hacked it accordingly, and now it works.
What I want to say: A starter will not be able to find that out. There´s no documentation available how to get the first map rendered based on an existing *.osm file. And the example *.kpr file doesn´t even contain comments which could help any longer. Please add some information there and also on the Wiki page.
Second item. It´s related to the *.kpr as well. Of course I tried to find the rules again. And I found a Wiki link in the *.kpr – and it even worked. But I wanted to have a local file of course. So I had simply saved the Wiki page as *.html and put the link to it into the *.kpr file. Surprisingly THIS does NOT work. Why? Okay, I have looked into the Wiki again, and this time I found a hint … but again not very clearly.
To improve this situation I have added the FAQ link to http://wiki.openstreetmap.org/index.php/Kosmos_Rendering_Help and edited this FAQ accordingly.
Item three. The first time I tried to download data from the OSMXAPI server I got a failure message (exception). The second time it seems to work (just running), but I don´t know what it does because I haven´s specified anything – so what does it try to download? It´s “waiting for the data …” … one moment … it just starts loading something … 1.6 MB … 1.9 … 2.0 … OOPS! Crashed! This is typed in real time, by the way … Kosmos was closed completely within a milisecond w/o any warning or message. What has happened?
Best regards,
Kristian
breki on 01 Sep 2008 at 7:44 #
Hello Kristian,
I agree with you – Kosmos documentation is pretty awful
. But since this is a free one-man-band project, the docs are one of the things that suffer. Lately I barely get any free time to work on Kosmos, let alone to write some decent user manual. And as you pointed out yourself – Kosmos documentation is written in a wiki, so contributions from users are highly desired and greatly appreciated!
Now to the problems:
1. Backward compatibility of projects: the step between 1.* and 2.* was large enough for me to make a clean break from the old project format. Anyway, in 2.* users (generally) do not need to edit the project file manually. With all the coding and features I worked on for 2.* I decided not to postpone the release any further so the support for old project format was thrown out.
2. I agree on the “starting project from an OSM file”: I’ll add a task for this on the Kosmos introductory page.
3. Rules problems: Kosmos is still a bit of a “geeky” tool – users are expected to know wiki syntax if they want to change rules. This will hopefully improve with the future releases of Kosmos, but it takes time. I can announce that the next release will have a much more helpful rules error handling, so I guess this is one step towards better user friendliness.
4. OSMXAPI: here Kosmos is only partly to blame – OSMXAPI is a pretty unstable creature. But I agree, it shouldn’t make Kosmos crash, whatever it does. Could you please send me the log file (located in the logs subdirectory of the GUI)?
Anyway, thanks for your comments. Hopefully things will improve with each new release!
Best regards,
Igor
Kristian on 07 Sep 2008 at 0:48 #
Hi Igor,
thanks a lot for your time again. Yes, I know that it´s a one-man-show, and I can really feel with you … So it´s great that you find the time to respond on each note here.
But nevertheless – also to save time
– I will narrow my comments strictly down to the technical aspects or to the DAU* perspective, even if it might sound a bit unthankful or something. You know that this would not be my intention
I will look for a log regarding the crash as soon as I have a chance.
Best regards,
Kristian
*)
DAU = Dümmster anzunehmender User
It seems to be a pure German term, but you could also say “dumbest assumable user”. According to Leo.org there are two alternative terms: PEBKAC = Problem Existing Between Keyboard And Chair, BDU = brain dead user. In other words: Worst Case User (=WCU?)
Frank on 09 Sep 2008 at 12:04 #
Hello Igor,
you may safely assume, that I am a absolute Newbie to Kosmos. I looke at osm and played around a little but was not satisfied.
Kosmos seems to be the tool I am looking for and I shall wriggle my way in, provided I have a chance to do so.
Question.
Starting a new project with osm-Data to download apparently I have to define an area in preferences (”lon*lat”). Please give an example of the correct syntax.
Ok, that is maybe a question of a DAU, but I found out, that whenever I had a question some others out there were suffering with me.
Thanks for reply
Frank
breki on 09 Sep 2008 at 20:53 #
Hi Frank,
If I understand correctly, you want to start a new project by downloading some data from OSM. This is how you could do it:
1. Choose “Open a browser” link from the introductoiry screen
2. Now a OSM (Mapnik) map is shown. Move/zoom the map to the area you would like to download (the download area will approximately be what you see on the Web map, so be careful not to use too large area).
3. Click on the “Permalink” link on the bottom right corner of the map.
4. When the map reloads, click on the “To Main Map” button above the map.
5. Now select the “OSM | Download OSM Data” menu item.
6. The download progress window should be show. After downloading, you should have the OSM map you wanted.
Frank on 09 Sep 2008 at 21:30 #
Hi Breki,
Thanks for the info. This should go into the Wiki! I’ll try to do it but where?
Frank
breki on 09 Sep 2008 at 22:43 #
You can add it to http://wiki.openstreetmap.org/index.php/Kosmos_FAQ page, if you have the time.
Frank on 12 Sep 2008 at 12:11 #
Hi Breki,
there seems to be a problem.
I have 2 PC’s. An old one for testing. OpenStreetMap, Josm and Kosmos run fine, but slow.
On the newer somewhat faster PC OpenStreetMap, Josm run fine too. I can open the map on OpenStreetMap for rendering. Potlatch works.
I start KOSMOS-GUI and download some osm data. OpenStreetMap pops up in KOSMOS-Gui I want to edit them. So I klick on the OpenStreetMap edit-Tab, I log in and get an error-message (ifen if I do not use Mapnik but Osmrender and before or after reloading):
“You need a Flash player to use Potlatch, the OpenStreetMap Flash editor. You can download Flash Player from Adobe.com. Several other options are also available for editing OpenStreetMap”.
Flash-Player was re-installed and can be used by OpenStreetMap. In the old PC’s directory are some ActiveX-elements installed, which do not exist in the corresponding directory of the new PC.
As OpenStreetMap can handle FlahPlayer on the new PC, I suppose there is a Problem in KOSMOS
Sorry
Frank
breki on 13 Sep 2008 at 8:09 #
Hi Frank,
I recommend against using the web browser integrated into Kosmos for anything more than just viewing and pointing which map area to use in Kosmos. This browser has several issues which are beyond my control.
Keroseno on 04 Nov 2008 at 19:01 #
Excelent Software.
Please keep updating!
question: does kosmos render arrows transit ?
thanks and good job!
breki on 05 Nov 2008 at 21:17 #
Expect the new version this month
>> question: does kosmos render arrows transit ?
You mean like rendering one-way streets? I’ve done some work on this, but it’s not satisfactory enough for me to release it to the public. But I will do it soon.
Bener on 11 Nov 2008 at 22:35 #
>>>Expect the new version this month
So you will release in december, right?! As usual…
breki on 12 Nov 2008 at 2:20 #
Hehehe… no comment
Marcus on 17 Nov 2008 at 22:51 #
Hello breki,
did you already have the time to think about waypoint symbols / track style?
For me, it would be a really great improvement for your great tool
Marcus.
breki on 17 Nov 2008 at 23:00 #
I have time to think, but the time to implement is a little bit more expensive
. Just joking, these things are on my list, but it takes time… BTW I’m currently working on a new related project (a small one) – my own tool for converting OSM data to Garmin maps. With a twist
I’ll write something about it in next few days…
Waldrenner on 13 Dec 2008 at 11:37 #
Igor,
I installed Kosmos on Vista and rendered a nice hicking map of the surroundings of my home village. Thanks a log for this very nice tool!
Infurtunately I did not succed in downloading the contours file. Do you have any hint, what I should try? – I do not understand the path provided in the error message. Do I have to change some settings?
Current culture: English (United States)
Current UI culture: English (United States)
System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 size, SocketFlags socketFlags)
at Brejc.DemLibrary.FtpClient.readLine() in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Brejc.DemLibrary\FtpClient.cs:line 679
at Brejc.DemLibrary.FtpClient.readLine() in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Brejc.DemLibrary\FtpClient.cs:line 701
at Brejc.DemLibrary.FtpClient.readReply() in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Brejc.DemLibrary\FtpClient.cs:line 660
at Brejc.DemLibrary.FtpClient.login() in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Brejc.DemLibrary\FtpClient.cs:line 222
at Brejc.DemLibrary.SrtmIndex.Generate(AsyncOperationCallback callback) in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Brejc.DemLibrary\SrtmIndex.cs:line 65
at Kosmos.Gui.Activities.DemProcessingActivitySkeleton.GetDigitalElevationModel(IActivityRunner runner, Bounds2 bounds) in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Kosmos.Gui.Controls\Activities\DemProcessingActivitySkeleton.cs:line 83
at Kosmos.Gui.Activities.GenerateReliefContoursActivity.Run(IActivityRunner runner, Object[] args) in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Kosmos.Gui.Controls\Activities\GenerateReliefContoursActivity.cs:line 34
at BrekiViews.WinForms.BlockingActivityRunner.worker_DoWork(Object sender, DoWorkEventArgs e) in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.WinForms\BlockingActivityRunner.cs:line 130
Best regards,
Tilo
breki on 13 Dec 2008 at 11:49 #
Hello Tilo,
Well it looks like there were some problems with your machine connecting to the NASA’s FTP site. If the problem persists, you could try connecting to the site manually (using a FTP client) just to check that the connection is possible. The URL to the site is ftp://e0srp01u.ecs.nasa.gov/srtm
Waldrenner on 13 Dec 2008 at 15:28 #
Hi Igor,
thanks for the hint. It working fine on XP. Must be a setting in Vista!
Tilo
Alex on 02 Jan 2009 at 1:09 #
I just wanted to leave a note thanking you for your work. Kosmos is great software, I’ve used it for a few months now and it’s got better with each release. Thanks very much for your efforts.
breki on 02 Jan 2009 at 8:11 #
@Alex,
Thanks
David Goudie on 07 Feb 2009 at 21:31 #
I am trying to build Kosmos from source. So far I have found a number of the third party packages but the only Brejc.Geometry.Geodesy package I can find is Gavaghan.Geodesy which has the same classes but the method arguments do not exactly match. Can you please give me some guidance. Kind regards David Goudie
breki on 07 Feb 2009 at 22:10 #
Hi David,
Brejc.Geometry.Geodesy is just a sub-namespace of the Brejc.Geometry project, which is included in the source code package, so you should have the source code. And you’ve guessed it right: it’s an adaptation of the Gavaghan.Geodesy code.
David Goudie on 08 Feb 2009 at 21:33 #
Thanks – I don’t know how I missed it! I now have everything built and ‘working’ except I cannot find ExpressionFactory as referenced in ExpressionSelector.cs Once again thanks in advance. Kind regards David Goudie
Andreas Engel on 11 Feb 2009 at 12:58 #
Hi,
first at all “thank you for making Kosmos”.
But now I have a question. I have build my own Kosmos Rules
http://wiki.openstreetmap.org/wiki/Kosmos_TopoMap#Buildings
In this section I want to show the housenumber.
At one time I can show the housenumber if no building tag is set.
In the other time I can show the housenumber if it is a building like this
http://wiki.openstreetmap.org/wiki/Kosmos_General_Purpose_Rules#Buildings
But I want to show the housenumber in both times. But I can’t make it.
Please can you help me?
Thanks a lot and please sorry my bad english.
Andreas
Andreas Engel on 11 Feb 2009 at 13:22 #
Hello agian,
I have found the solution.
But I have a second question:
Is it possible to show the housenumber and the name?
How I do this?
Michael on 17 Feb 2009 at 21:10 #
Hi, first: Thanks a lot for KOSMOS. Great Tool.
After playing around a bit I gave making my own rules a try. I was wondering if it is possible to use the “width”-tag for drawing size. I just can’t figure out how in e.g. Width=12:1;13:2;17:13 I could possible integrate something like ValueNum(e,”width”). It always gives me an error Invalid template parameter.
Is this possible at all, or am I trying the impossible?
Regards and keep going
Michael
breki on 17 Feb 2009 at 22:21 #
Michael, unfortunately you’re trying the impossible
. The width can only vary depending on the zoom level, you cannot use an OSM tag to set it.
Hillhome on 25 Mar 2009 at 2:07 #
Hi Breki,
First: Thanks for you nice Program!
I used to make a custom map to use it with MGmaps on my mobile. After a dry run with a small osm file I downloaded the german.osm from http://download.geofabrik.de/osm/europe/ wich provide the hole country.
The problem:
I’m getting “Could not load file ‘C:\Users\Sebb\Downloads\germany.osm\germany.osm’: Eine Ausnahme vom Typ System.OutOfMemoryException wurde ausgelöst.”-Errors when loading the osm-file. While watching the amount ouf Ram consumed by the programm I noticed that this happens when it reaches 1,5GB.
The unpacked .osm file is 3,69GB, I have 3GB Ram and 6Gb swap. I am using Vista Home Premium with all updates an Kosmos-2.4.27.6.
I read that you succesful loaded such big files, do you have any idea what might be the problem?
Greetings Hillhome
breki on 25 Mar 2009 at 6:22 #
@Hillhome,
You won’t be able to load the whole Germany with Kosmos, I’m afraid. The biggest unpacked OSM file I managed to load had only 54 MB (packed), but unpacked it’s probably 5-6 times smaller than germany.osm.
I recommend splitting the OSM file into smaller chunks using osmosis and then generating MGmaps tiles separately for these chunks. You can then copy all the tiles together.
But I’m not sure your mobile phone will be able to swallow all these tiles – depending on the zoom level, the disk space necessary for the whole Germany could be HUGE.
Mike on 14 Apr 2009 at 3:36 #
Hi,
I download the Kosmos-2.4.27.6.zip and unzip. I try open the sample project Isle of Wight.kpr and it occurs error. The error msg is below
Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate Kosmos.Gui.Forms.MapDisplayForm —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> Castle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not instantiate Kosmos.Gui.Presenters.MapPresenter —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Kosmos.Gui.Presenters.MapPresenter..ctor(IMapDisplayView view, IApplicationShell applicationShell, KosmosGuiModule kosmosGuiModule) in d:MyStuffBuildAreaSandboxKosmos runkKosmos.SolutionKosmos.Gui.ControlsPresentersMapPresenter.cs:line 68
would you please help me solve the problem.
Best regards,
Mike
breki on 15 Apr 2009 at 18:35 #
Hi Mike,
Does it happen only for the sample project? Or for any project?
Andreas Engel on 11 May 2009 at 11:00 #
Hi,
it looks like the is an download problem with the OSM-data in the conversion to API 0.6.
Error code \ OSM DATA could no be downloaded. The remote servers returns 501\
I believe the problem lie in the URL, which points still to… /api/0.5/….
What do I have to do, so that kosmos works with api the 0,6?
Thanks a lot and please sorry my bad english
Andreas
breki on 11 May 2009 at 19:00 #
@Andreas,
Looks like they’ve turned off the v0.5 OSMXAPI server, I haven’t yet released a new version of Kosmos with the new v0.6 URL, I’ll try to do it soon.
Anders on 07 Jun 2009 at 7:43 #
I was excited to learn about Kosmos. However, loading custom rules wont work. I read all the docs and FAQ. Kosmos accepts different URLs from the OSM wiki or local rules files (I see a loading progress bar and no error messages), but no change to the map. (Kosmos-2.4.27.6). Any ideas what may cause this?
Andreas Engel on 08 Jun 2009 at 11:06 #
Hi breki,
>Looks like they’ve turned off the v0.5 OSMXAPI server, I haven’t yet released a new
> version of Kosmos with the new v0.6 URL, I’ll try to do it soon.
Is the a new version available to solve this problem?
When no, so please can you do it as fast as possible?
Or is there a other way to download the required OSM data?
Thanks a lot
Andreas
breki on 08 Jun 2009 at 17:02 #
@Andreas,
It’s been done: the new version has been here for some time (2.4.100.0). Unfortunately, I tried now but I couldn’t download anything from the 0.6 server – it always returns an error. I suggest sending mail to the main OSM mailing list about the OSMXAPI status.
breki on 08 Jun 2009 at 17:06 #
@Anders,
Can you describe the exact steps? I’ve tried to change the rules URL and it works without problems, rendering the map with new styles.
Just to be on the safe side, I suggest using the latest version (2.4.100.0).
Anders on 09 Jun 2009 at 6:48 #
Steps: 1) Loading Kosmos-2.4.100.0 / Kosmos.Gui.exe
2) Zooming in to city street level (Los Angeles) after selecting “New Kosmos Project with a Web Map”
3) Right clicking on project name and editing Rendering Rules Source, for example http://wiki.openstreetmap.org/index.php?title=User:Klainkaliber/Kosmos
“Loading Rendering Rules” progress bar is shown. No errors.
4) Hoping to see an updated map, nothing happens. Standard rule is shown. Selecting “Reload Rendering Rules”, nothing visible is changed. I tried with different rules, local and remote with same result. Also tried on other computer on another network.
Thank you!
breki on 09 Jun 2009 at 18:44 #
@Anders,
Just to clarify: you are using an empty (new) project (with a web map)?
If the answer is yes, then:
1. The map you see are just tiles (bitmaps) downloaded from OSM server, like you see them on the browser. Rendering rules have no effect on them.
2. In order to actually use rendering rules, you have to download _vector_ OSM data (or open an existing .osm file).
You can try this by opening the sample Kosmos project that comes with the package and trying to change the rules there.
Anders on 10 Jun 2009 at 7:28 #
Thanks, Breki! Now, I get it! Kosmos is not really top on usability, but hey what a wonderful tool now that I understand it better. Thanks again.
breki on 10 Jun 2009 at 14:00 #
@Anders,
Well programming GUI is the hardest (and painful) programming task and achieving great usability is even harder. Just look at Microsoft’s Office ribbon attempts – over 90,000 employees and they still cannot develop a decent GUI
Anyway, I’ll try to improve things in the future… once I get the time to do it.
Anders on 10 Jun 2009 at 20:13 #
Maybe you just disable the Rules field for web maps.
Totally agree with your comment on Microsoft! As I am creating a customized wall map, Kosmos will serve me very well! (and save us lots of $$$).
Andreas Engel on 22 Jun 2009 at 11:01 #
>It’s been done: the new version has been here for some time (2.4.100.0).
>Unfortunately, I tried now but I couldn’t download anything from the 0.6 server –
>it always returns an error.
>I suggest sending mail to the main OSM mailing list about the OSMXAPI status.
Hi, breki,
have you found a solution for the problem?
Thanks a lot
Andreas Engel
breki on 22 Jun 2009 at 18:00 #
@Andreas,
Perhaps you didn’t understand me
. It’s not a Kosmos problem – OSMXAPI server has been down for quite some time now (and I don’t have anything to do with this
). What I do now is download the data using JOSM (the main API).
In future versions I’ll try to support different OSM API protocols, but that will not be very soon.
Bener on 27 Jun 2009 at 0:02 #
Hi Breki!
Great Software, better with every release (When can we expect the next?!)
I use Kosmos and the Console to map the Area around my village and then build Tiles for OSMtracker. Works great so far. But:
ÄI miss an elegan way to use local Icons. The hint with the ImageCache works fine with Kosmos. The console fails. No local stored Icon is visible!
My rendering rule looks like:
|-
| Tree || {{IconNode}} || {{tag|natural|tree}} || Icon (MinZoom=13,
IconUrl=http://Blabla/Tree.png, HAlign=Near, Width=13:12;18:20) || ||
[[Image:Tree.png|48px]]
And the Tree.png in the correct size is stored in the ImageCache.
Why does the console not showes the icon, but Kosmos does?!
Ah, by the way, what about SRTM?! Can we expect e new Kosmos supporting the new protocol?!
Greetings from Germany,
Bener
breki on 28 Jun 2009 at 9:24 #
@Bener,
About local icons: I know about this problem, the console fails because the algorithm for downloading icons is asynchronous and the console isn’t really implemented to work this way. I’ll improve this in next “reincarnation” of Kosmos.
SRTM: I’m working on it