Published by breki on 12 Jan 2008 at 09:54 am
About
My name is Igor Brejc and I am a computer programmer / systems architect. In my spare time I am developing various open source tools. One of those tools is BrekiLabeller, a custom labeller for CruiseControl.NET.
I am also involved with the OpenStreetMap (OSM) project, both by entering new geo data for the area I live in and by developing new tools which can help the OSM community.
My contributions to the OSM project:
- Covering the city of Maribor and Pohorje mountain
- Srtm2Osm tool which calculates elevation contours (from SRTM data) and saves them in the OSM file format.
- Maintaining the OSM Garmin map for Slovenia (SI:Garmin_Map)
Work in progress:
- Kosmos – a standalone application for OSM map rendering and tile map service.
I am living in Maribor, Slovenia.



Leslie Viljoen on 26 Aug 2008 at 17:36 #
Hi!
I am interested in adapting Kosmos into a control that can be plugged into a tracking application I am working on. I currently have a mappoint control and have written an online embedded browser which allows me to show google-maps pulled live from their server. I’d like to add offline openstreetmap data as an option.
I have downloaded Kosmos 2.1′s source but I see it’s in Visual Studio 2008. I only have 2005. Can Kosmos be saved or exported to a 2005 project? Of not I can still try to recreate the project in 2005.
Thanks for your great work! Leslie Viljoen
breki on 26 Aug 2008 at 22:26 #
Hello Leslie,
The solution file is in 2008, yes, but you should be able to compile it in VS 2005, since I intentionally did not use any of the .NET 3.0+ stuff (the target of all projects is .NET 2.0). I recommend you create a new solution in VS 2005 and add all the necessary projects manually.
breki on 26 Aug 2008 at 22:28 #
Just to clarify about VS: project files are more or less the same for VisualStudio 2005 and 2008, only the solution file is really different. But I’m not 100% if you can open the project file created in 2008 in the VS 2005. Let me know if you have problems with this.
Tomsoft on 09 Nov 2008 at 2:19 #
Hello igor,
I would be interested by discussing with you of the possibility to use Kosmo to export data on another mobile mapping application (J2memap/8motions). Please contact me on my email. Regards,
Andreas Engel on 03 Dec 2008 at 8:11 #
Hello,
I use your great Kosmos. Now I have a question.
Is it possible to change the grid from ° ‘ ” to ° and dezimal ‘?
Thanks a lot and please sorry my bad englisch.
Andreas
breki on 06 Dec 2008 at 17:19 #
Hi Andreas,
Sorry for the late answer – I’ve been busy last few days. No, currently this is the only way to show the grid, but I’ll add your feature request to my “todo” list for new versions.
Buzz on 06 Jan 2009 at 21:35 #
Hi there.
Kosmos is a great tool. I can’t find any licensing information on it though (BSD?). I would like to get rid of the commercial app that we are using (which is expensive and not nearly as quick), and use Kosmos as the base for a custom tool we are making. Can we use some of the kosmos code (the GDI bits)? What are the limitations?
breki on 06 Jan 2009 at 22:03 #
Hi Buzz,
I licensed Kosmos under the BSD license (you can find the license file in the zip package), which means you can reuse the code for your needs, provided that you adhere to license terms. If you need any other info, please contact me directly on info … igorbrejc.net
Buzz on 07 Jan 2009 at 8:33 #
Thanks for that. I found the license files. Great work.
klay on 05 May 2009 at 2:06 #
Hi Igor
I download the source code for Kosmos from :
http://downloads.igorbrejc.net/osm/kosmos/source/
I got this: the project ‘OsmUtils.Framework’ is under source control. An error occured registering this project with source control.It is recommended that you do not make any changes to this project
the project ‘Kosmos’ is under source control. An error occured registering this project with source control.It is recommended that you do not make any changes to this project
Unexpected error encountered.It is recommended that you restart the application as soon as possible. Error: The parameter is incorrect. File: vsee\lib\xfcstrwinstrw.cpp Line number: 166
many many times like those error messages
..
breki on 05 May 2009 at 17:10 #
@klay,
This sounds to me like your source control doesn’t like Kosmos code
. Which source control are you using, by the way?
klay on 12 May 2009 at 1:03 #
Hi Igor, I dont use a source control at all,
breki on 12 May 2009 at 16:27 #
@klay,
Sorry, but I cannot really help you. I tried opening the solution file from the ZIP package myself and it works without problems. I guess it’s something to do with your configuration.
Joe Jackson on 09 Jul 2009 at 14:49 #
Hi there,
I’ve tried your latest version of GroundTruth, but can’t seem to get it to work (I’ve installed .NET 3.5). This is the error that comes up after sending a request: E:\Download\GroundTruth>groundtruth getdata -bu “http://www.openstreetmap.org/?l at=51.3106&lon=-0.0838&zoom=13&layers=B000FTF”
Read 0.0 B so far… ERROR: System.Net.WebException: The remote server returned an error: (501) Not Implemented. at System.Net.HttpWebRequest.GetResponse() at Brejc.OsmLibrary.Osmxapi.OsmxapiClient.DownloadData(Stream outputStream) n d:\MyStuff\BuildArea\Sandbox\Brejc.Geo\trunk\Brejc.Geo\Brejc.OsmLibrary\Osmxa i\OsmxapiClient.cs:line 46 at GroundTruth.DownloadOsmDataCommand.Execute(IEnumerable`1 args) in d:\MySt ff\BuildArea\Sandbox\GroundTruth\trunk\GroundTruth.Solution\GroundTruth\Downloa OsmDataCommand.cs:line 121 at GroundTruth.ConsoleApp.Process() in d:\MyStuff\BuildArea\Sandbox\GroundTr th\trunk\GroundTruth.Solution\GroundTruth\ConsoleApp.cs:line 53
Any idea what’s causing it? Many thanks
breki on 09 Jul 2009 at 20:28 #
@Joe,
Unfortunately OSMXAPI server is dead for quite some time, so you won’t be able to download the latest OSM data using the getdata command. So it’s not GroundTruth’s fault.
I suggest you download the data using Planet OSM extracts for your area.
Sayyid on 15 Sep 2009 at 10:24 #
Hey Igor,
is it possible to change the background color with GroundTruth Rules? I can manually change it in the typ file, but i didn’t find a setting in the GroundTruth Rules
thanks Sayyid
breki on 15 Sep 2009 at 18:44 #
@Sayyid,
Are you talking about the map background color or a background color for an individual feature?
Sayyid on 15 Sep 2009 at 18:50 #
@breki the map background color
Niels on 17 Sep 2009 at 10:35 #
Hello,
Are you going to upload the source code for 2.5? Or is there a versioning url?
Dankec on 30 Oct 2009 at 14:11 #
Brejc, you rock maan!
HarryS on 04 Aug 2010 at 16:41 #
Thx for this nice tool. Worked fine for me the first time around – using the dummies manual..
Thanks, Harry (Netherlands)