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
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
Bener on 10 Jul 2009 at 22:06 #
Hi breki, I just installed the new 2.5.405.6 on my notebook with the german winXp. Kosmos won´t start and i get this error message. It says its kosmos 2.1.1.0, but its the newest. I have never installed 2.1.1.0 on my notebook. can you help me?!
Kosmos Version: 2.1.1.0 OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2 CLR Version: 2.0.50727.42 Current culture: English (United States) Current UI culture: English (United States)
System.IO.FileNotFoundException: Could not load file or assembly ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ or one of its dependencies. Das System kann die angegebene Datei nicht finden. File name: ‘System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′ at Castle.Core.Internal.SlimReaderWriterLock..ctor() at Castle.DynamicProxy.ModuleScope..ctor(Boolean savePhysicalAssembly, String strongAssemblyName, String strongModulePath, String weakAssemblyName, String weakModulePath) at Castle.DynamicProxy.ProxyGenerator..ctor() at Castle.Windsor.WindsorContainer..ctor(String name, IKernel kernel, IComponentsInstaller installer) at Castle.Windsor.WindsorContainer..ctor(IKernel kernel, IComponentsInstaller installer) at Castle.Windsor.WindsorContainer..ctor(IConfigurationInterpreter interpreter) at Kosmos.Gui.Program.ConfigureWindsor() in d:\MyStuff\BuildArea\Sandbox\Kosmos\trunk\Kosmos.Solution\Kosmos.Gui\Program.cs:line 87 at Kosmos.Gui.Program.Main(String[] args) in d:\MyStuff\BuildArea\Sandbox\Kosmos\trunk\Kosmos.Solution\Kosmos.Gui\Program.cs:line 48
WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
breki on 11 Jul 2009 at 20:40 #
@Bener,
You probably don’t have .NET 3.5 installed on your notebook. Here’s a link: http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&displaylang=en
Frida on 17 Aug 2009 at 17:13 #
hi breki,
I’ve downloaded the Kosmos-2.5.405.6 release. I’m very impressed. Good work, thanks for this.
Unfortunately the srtm download doesn’t work. Exist any workaround to put the *.hgt.zip manually into Kosmos? Or like the GroundThrough configuration ”
Thanks & bye, Frida
breki on 18 Aug 2009 at 14:51 #
@Frida,
Unfortunately I couldn’t provide a quick-fix for SRTM for Kosmos (like GroundTruth’s), since I’ve started introducing some major changes to the Kosmos code and I canot produce any builds yet.
But yes, you can put the .hgt (unzipped) files manually into the cache directory (Cache/Dem/Srtm3), but make sure you also include TileIndex.dat. Or you can use GroundTruth to download everything and then copy it to Kosmos cache.
I hope this helps, until I find the time to fix it properly
Frida on 18 Aug 2009 at 23:10 #
hi breki,
thanks for the hint. I’ve downloaded the *.hgt files with groundTruth and then I’ve moved the files to another directory (a drive with more space
) after that I’ve created a symbolic link from the directory “Cache/Dem/Srtm3″ to the new one. Both groundTruth and Kosmos are now using the same Srtm-Cache. The files in the cache are located and Kosmos renders elevation coloring and also shaded reliefs but not the contours
I’ve found a second directory named Srtm3 inside of “Gui\Dem\” so I’ve created a second link to the Srtm3 directory. Now everything works fine
Thanks & bye, Frida
urk on 06 Sep 2009 at 14:06 #
Hi breki,
I am going to understand what I could KOSMOS use for. Indead a nice tool. I would like to create own rendering rules. It works e.g. with the full loaded osm-data od northe island of New Zealand.
I did follow your explainations in FAQ: copied the source code into a local txt-file and entered the local address D:..\own_rules.txt in preferences:default rendering rules source. After saving the project and opening again the originally link to the wiki-web site is insert in preferences like a preset again. After having changed the link for the rules to the local file, pressing Ctrl-R seems to reload the rules from wiki.
How can I look for a tags in the OSM-data, e.g. names of streets or other keys?
Could you please help to clear up this trouble of mine?
urk
RVP-VS on 16 Sep 2009 at 21:05 #
Hi breki,
I’m making KOSMOS rules for a cycle map. Some streets have a cycle lane on one site and a cycle track on the other. So I have a wish for a feature request for a new KOSMOS version: Can you make different colors for the right and the left border (LeftBorderColor=…, RightBorderColor=…) I hope, it is not to difficult.
Thanks and bye, RVP-VS
breki on 19 Sep 2009 at 16:23 #
@urk,
Sorry for my late response. If you’re still having problems with setting default rules, I suggest waiting for the new version of Kosmos. I’m working hard on it. And hopefully it will include the improved ability to see OSM object data (now you can do it by right-clicking on a OSM object).
breki on 19 Sep 2009 at 16:26 #
@RVP-VS
Right now it would be difficult, since GDI+ doesn’t provide with a good (and fast) way of doing this. But I will do my best
Jan on 15 Nov 2009 at 0:45 #
I have tried the contours fonction but it doesn’t work. Kosmos didn’t found the srtm data. Is it possible to give him myself?
breki on 15 Nov 2009 at 16:24 #
@Jan,
SRTM data does not work since NASA moved the server. I will fix this in Kosmos v3.
rodentgigantus on 24 Nov 2009 at 15:13 #
Hi,
I am using Kosmos to generate locally served pages. I am getting the error
A generic error occurred in GDI+
when I run Console tilegen
and according to this
http://www.dotnetcharting.com/kb/article.aspx?id=11335
it is because the temp path is set wrong. I don’t know which environment var to set to get around this. Please let me know how I can point it to write to a directory with the correct permissions.
Regards
Jack on 13 Dec 2009 at 18:14 #
Hi
I can’t manage to get Kosmos working. The latest .NET sp3 is installed i use it with another software as you can see there http://img13.imageshack.us/i/capturedcran20091213180.png/
I get this error message at startup.
Kosmos Version: 2.1.1.0 OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3 CLR Version: 2.0.50727.3053 Current culture: English (United States) Current UI culture: English (United States)
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for castle: That assembly does not allow partially trusted callers. (\.psf\Home\Desktop\Kosmos-2.5.405.6\Gui\Kosmos.Gui.exe.Config line 4) —> System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Configuration.TypeUtil.CreateInstanceWithReflectionPermission(Type type) at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord) at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord) at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory..ctor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord) at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord) at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere) The action that failed was: LinkDemand The assembly or AppDomain that failed was: System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a The Zone of the assembly that failed was: MyComputer The Url of the assembly that failed was: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll — End of inner exception stack trace — at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at Castle.Core.Resource.ConfigResource..ctor(String sectionName) at Kosmos.Gui.Program.ConfigureWindsor() in d:\MyStuff\BuildArea\Sandbox\Kosmos\trunk\Kosmos.Solution\Kosmos.Gui\Program.cs:line 87 at Kosmos.Gui.Program.Main(String[] args) in d:\MyStuff\BuildArea\Sandbox\Kosmos\trunk\Kosmos.Solution\Kosmos.Gui\Program.cs:line 48
breki on 13 Dec 2009 at 22:02 #
@Jack,
TobbY on 02 Mar 2010 at 15:38 #
Hello Igor,
I treid Kosmos today but I didn’t get my own rendering template working:
http://wiki.openstreetmap.org/wiki/User:Indiancoder
I add it to the prefernces save the projekt but I still see in the log: [15:34:12] Loading rendering rules from ‘Kosmos.RenderingRules.OsmWikiRenderingRulesSource’… (0%)
What is going wrong?
TobbY
breki on 03 Mar 2010 at 14:26 #
@TobbY,
Probably a bug
. You can try opening the project file in a text editor and setting the rules URL there.
Be patient, a new SW is coming out soon.
anto on 05 Mar 2010 at 10:39 #
i found a pretty awesome mapping website in french called Geoportail, it takes all the contour lines and applies a color scheme to them, going from light green near sea level, dark green from 50-200 meters, wheite to beige from 200-600 and beige to dark brown from 600-5000 meters.
here is a direct link to a topography map. its better than other maps in some way because you can superimpose transparencies, and adjust their opacity … altitude, geology, monuments, satellite, map, hydrology, etc
http://www.geoportail.fr/visu2D.do?cg=djoxLjEqYzptZXRyb3BvbGUqY3Y6MS4wKnZ2OjEuMSp4eTo0Ljc0OTczMDA3NDE0ODE3Mnw0NS4yMzQ0MjMzMTI5ODE4NzUqczoxMypwdjoxLjAqcDpkZWNvdXZlcnRlKmw6QWx0aXwxfDEwMHwwLFBob3RvfDF8MHwxNA%3D%3D
i think it would be fantastic if open street map could do altitude maps with these colot schemes instead of contour lines.
Thanks!
Hi, I tried to run Kosmos and i figuered i might need an hour + to read all the instructions and make a 3d model, because i was getting errors and i had to read about the workaround.
breki on 05 Mar 2010 at 16:44 #
@anto,
Thanks for the link – it does look nice. I think it won’t be a big problem to produce something similar with Maperitive. BTW: Maperitive is a successor to Kosmos and it’s coming out soon.
Sandor on 09 Mar 2010 at 10:52 #
Hi Igor! Can you help me with an advice? I have problem, when i try build your Kosmos.Gui.Controls project. The assembly ‘BrekiViews.WinForms does not find the actual version of WeifenLuo.WinFormsUI.Docking.dll. I tried to use the versin of dll, what I found in your Kosmos-2.3.213.0 and Kosmos-2.4.100.0 library. The whole error message:
Error 420 Assembly ‘BrekiViews.WinForms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5c4516580f722f1d’ uses ‘WeifenLuo.WinFormsUI.Docking, Version=2.2.3720.18471, Culture=neutral, PublicKeyToken=5c4516580f722f1d’ which has a higher version than referenced assembly ‘WeifenLuo.WinFormsUI.Docking, Version=2.2.3469.32232, Culture=neutral, PublicKeyToken=5c4516580f722f1d’ c:\Documents and Settings\Sanyi\Dokumentumok\Visual Studio 2008\Projects\Kosmos\Kosmos-2.3-source\BrekiViews\BrekiViews.WinForms\bin\Release\BrekiViews.WinForms.dll Kosmos.Gui.Controls
Thank You very mutch! Sandor
breki on 10 Mar 2010 at 7:38 #
@Sandor,
My guess is that you need to download the latest Docking DLL and make sure all projects reference that version.
Sperrobjekt Weblog on 19 Mar 2010 at 11:06 #
Testing Maperitive…
It’s time for another post about a tool that is related to the Openstreemap (OSM) project. Yesterday, golem.de published a post about Maperitive, a cross-platform real-time OSM renderer that runs on .NET/Mono written by Igor Brejc. Maperitive is expec…
Alex on 22 Jul 2010 at 11:18 #
Hi Igor, I would like to ask about the Kosmos licence. Can it be used in commercial products? If so, in which conditions?
Thanks
Alex
breki on 22 Jul 2010 at 19:08 #
@Alex,
The license is BSD, so yes, it can be used in commercial products, as long as you adhere to its clauses: http://en.wikipedia.org/wiki/BSD_licenses
Alex on 23 Jul 2010 at 0:40 #
When I run it on windows xp as:
Console>Kosmos.Console.exe tileserv Tiles http://localhost/Kosmos/
(The tiles are on the ./Tiles)
I get this:
Kosmos Console v2.5.405.6 by Igor Brejc
OpenStreetMap rendering application
Starting Kosmos tile map server on ‘http://localhost/Kosmos/’… Stopped tile map server
ERROR: process can not access file because it is beeing used by other process
Any help? Thank you
Alex