Talk:Kosmos
From OpenStreetMap
Contents |
General Discussion
I can't see any license mentioned. But then again I can't see the source either so I assume it is closed source but free to use?
- It's not closed source, I was just too lazy to write a source code export script from my two SVN repositories :). I have it now, the source will be published together with the new 2.1 release (probably today). The Kosmos license file is in license-Kosmos.txt .--Breki 05:13, 18 July 2008 (UTC)
Hi Breki, can you please tell me what particular Development environment you use, w/any applicable DDK or other packs needed, version numbers, etc. to compile the source here? :) :)
- I'll write this on the Kosmos Development page soon. --Breki 06:38, 27 July 2008 (UTC)
Breki, I really enjoy working with Kosmos ALOT, I find the development interfaces are very good and easy to use. But I am facing a rendering concern. When I display maps, the street ends are cut-straight off when they terminate. Please have a look at www.openstreetmap.org.... all streets are rounded off when they terminate. :)
- Yes, this is a known issue with Kosmos rendering. This is due to the way how the GDI+ draws lines and I haven't found a good (=easy) way of dealing with it so far. But it is on my todo list (and also listed here: Kosmos_Rendering_Help#Limitations) so when I get the time to deal with this, I'll try to fix it. BTW: Mapnik and Osmarender deal differently with this issue - Mapnik rounds the end, Osmarender makes a rectangular cut. --Breki 12:29, 6 August 2008 (UTC)
- I am glad you are already aware of it! :). I think the rounded ends are most easy on the eyes, just my opinion there..... :) I hope to have this issue fixed in a future edition. Have a great day! Best wishes, Paula. --PaulaA 14:29, 6 August 2008 (UTC)
Relations Support
Good to see relation rendering support in 2.1. However, is there any way we can do a Text Template rule where the TagToUse can refer to a tag of the Relation itself rather than a tag of the underlying Way? --Morb au 17:34, 20 July 2008 (UTC)
- Hmm... good question. Unfortunately that's not so easy to implement with the current system - there is no way in the rules to distinguish between name=* (example) for the relation and the same tag for its members. I'll add this to the todo list, thanks for mentioning. --Breki 18:37, 20 July 2008 (UTC)
Bug Reports
When starting Kosmos.Gui.exe from the unpacked Kosmos-2.0.507.2.zip I get the following error message:
System.ArgumentException: Illegal hotkey 'Ctrl+N'. bei BrekiViews.WinForms.WinFormsMenuItem.set_Hotkey(String value) in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.WinForms\WinFormsMenuItem.cs:Zeile 107. bei BrekiViews.Framework.MenuBuilder.Hotkey(String hotkey) in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.Framework\MenuBuilder.cs:Zeile 76. bei Kosmos.Gui.KosmosGuiModule.OnLoad() in d:\MyStuff\BuildArea\Sandbox\OsmUtils\trunk\Kosmos.Gui.Controls\KosmosGuiModule.cs:Zeile 171. bei BrekiViews.WinForms.ApplicationShell.LoadModule(String moduleName) in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.WinForms\ApplicationShell.cs:Zeile 113. bei BrekiViews.WinForms.ApplicationShell.Initialize() in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.WinForms\ApplicationShell.cs:Zeile 82. bei BrekiViews.WinForms.TdiShellForm.OnLoad(EventArgs e) in d:\MyStuff\BuildArea\Sandbox\BrekiViews\trunk\source\BrekiViews.WinForms\TdiShellForm.cs:Zeile 565. bei System.Windows.Forms.Form.OnCreateControl() bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) bei System.Windows.Forms.Control.CreateControl() bei System.Windows.Forms.Control.WmShowWindow(Message& m) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.ScrollableControl.WndProc(Message& m) bei System.Windows.Forms.ContainerControl.WndProc(Message& m) bei System.Windows.Forms.Form.WmShowWindow(Message& m) bei System.Windows.Forms.Form.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
David Schmitt 20:14, 7 July 2008 (UTC)
- Huh, that's odd. Are you using German Windows, by any chance? --Breki 20:37, 7 July 2008 (UTC)
- Yeah, a German Windows Vista David Schmitt 13:23, 8 July 2008 (UTC)
- Fix: http://igorbrejc.net/uncategorized/kosmos-20-illegal-hotkey-fix --Breki 15:46, 8 July 2008 (UTC)
- 2.0.508 works for me, thanks a lot for this awesome piece of software! David Schmitt 18:39, 8 July 2008 (UTC)
- Fix: http://igorbrejc.net/uncategorized/kosmos-20-illegal-hotkey-fix --Breki 15:46, 8 July 2008 (UTC)
- Yeah, a German Windows Vista David Schmitt 13:23, 8 July 2008 (UTC)
Loading Rendering Rules
Hi Breki, thank you for this great program! But, I am having a small roadblock, maybe you can see what I am doing not correct or what I can do. I am using the Console to generate a map on a offline computer designed for this purpose. However, I keep getting ERROR: Could not load rendering rules. I can see in the messages it is trying to connect with a outside IP. But what is strange is, I do have the Default rules in the directory, so I guess I don't really needed to connect to the IP which I hope I don't have to do each time. I guess you call them Cache Rules. But, If i load the same project in the GUI version, I get a slightly difference experience, ... it says "The rendering rules could not be loaded. A cached version of the rules is used instead". So, how do I get the Console to load rules on the local machine? :) I am so confused :( Thank you for any assistance & I am in love with this program and eager to make this work!!
- This rendering rules loading logic has given me a lot of pain lately :). I've added the caching logic to the GUI, but looks like I forgot to add it to the console. I'll fix this and release a new package in a day or two. Thank you for reporting this! --Breki 07:11, 20 July 2008 (UTC)
- Great Breki! It would be really nice if you made some command line switch for expressing where the location of the rules file was, or to override just to use Cache rules.... for those of us running Kosmos in a Intranet style fashion. This way, the program does not perform unnecessary transactions with Firewalls each time the command line is run. Or maybe better yet (idea), just implement a special command line switch which can say please use location C:/xx//- (i.e. Default/Cache rules), thereby overriding the connection with wiki. to grab rules. This would be so perfect & nice to streamline it down this way for us power users. :) Thank you so much for listening!!
- Well this has always been possible. Simply open the project file (.kpr) in a text editor and edit the RulesSource/WikiPage tag to point somewhere on your disk. Or even more simple: open the project in GUI and edit the properties of the project :) --Breki 08:52, 20 July 2008 (UTC)
- Ah, Thank you, .... have a very nice day. :)
- Well this has always been possible. Simply open the project file (.kpr) in a text editor and edit the RulesSource/WikiPage tag to point somewhere on your disk. Or even more simple: open the project in GUI and edit the properties of the project :) --Breki 08:52, 20 July 2008 (UTC)
- Great Breki! It would be really nice if you made some command line switch for expressing where the location of the rules file was, or to override just to use Cache rules.... for those of us running Kosmos in a Intranet style fashion. This way, the program does not perform unnecessary transactions with Firewalls each time the command line is run. Or maybe better yet (idea), just implement a special command line switch which can say please use location C:/xx//- (i.e. Default/Cache rules), thereby overriding the connection with wiki. to grab rules. This would be so perfect & nice to streamline it down this way for us power users. :) Thank you so much for listening!!
rules tracktype and access
I like Kosmos very much, especially since T@H is stalling at the moment ;-). What i miss for the moment are rendering-rules for "access" (permissive/private/no) for highways and areas. different line-types (or even dot-lines like mapnik) for tracks (tracktype=grade[1-5]) would be great. ---jha- 23:09, 28 July 2008 (UTC)
- If you really want this rules I suggest you create a separate rules page and play around with creating them yourself (see Kosmos_FAQ#How_to_use_rules). I'm not sure these should be in the "general purpose" rules, but if they don't clutter the map too much, we can add them there. Let me know of your results --Breki 05:41, 29 July 2008 (UTC)

