OpenStreetMap logo OpenStreetMap

Users' Diaries

Recent diary entries

#include

struct GPSPOINT {
unsigned long time;
float latitude;
float longtitude;
unsigned long altitude;
};

int main(int argc, char* argv[])
{
unsigned char raw_data[] = {0xD6, 0xB5, 0x84, 0x48, 0xA9, 0x90, 0x57, 0x42, 0xCD, 0x68, 0xDC, 0x41, 0xAA, 0x72, 0x43, 0x20};

GPSPOINT *point = (GPSPOINT*)raw_data;
point->altitude <<= 0x08;

float *altitude = (float *)&point->altitude;

printf("latitude: %3.7f, longtitude: %3.7f, altitude: %5.2f\n", point->latitude, point->longtitude, *altitude);

return 0;
}

#include

struct GPSPOINT {
unsigned long time;
float latitude;
float longtitude;
unsigned long altitude;
};

int main(int argc, char* argv[])
{
unsigned char raw_data[] = {0xD6, 0xB5, 0x84, 0x48, 0xA9, 0x90, 0x57, 0x42, 0xCD, 0x68, 0xDC, 0x41, 0xAA, 0x72, 0x43, 0x20};

GPSPOINT *point = (GPSPOINT*)raw_data;
point->altitude <<= 0x08;

float *altitude = (float *)&point->altitude;

printf("latitude: %3.7f, longtitude: %3.7f, altitude: %5.2f\n", point->latitude, point->longtitude, *altitude);

return 0;
}

When you download tracks from your data logger, you gets set of .trl files. This files contains raw binary data. Each point takes 16 bytes of memory.

D6 B5 84 48 A9 90 57 42 | CD 68 DC 41 AA 72 43 20
8B B6 84 48 49 90 57 42 | BD 6B DC 41 9F 78 43 D2
92 B6 84 48 E1 90 57 42 | 98 6E DC 41 EE 78 43 32
99 B6 84 48 8B 91 57 42 | 35 71 DC 41 14 78 43 1A

First line for example:

Bytes | Type | Description
0-3 | long | unixtime, 0x4884B5D6 (1216656854) is 19:14:14, 21 Jul 2008
4-7 | float | latitiude, 0x425790A9 is 53.8912696838
8-11 | float | longtitude, 0x41DC68CD is 27.5511722565
12-14 | float* | altitude, 0x4372AA00 is 242.6640625 meters
15 | char | unknown field

---
* This field contains only 24 bits of 32-bits float value. Just append zero: 0x4372AA -> 0x4372AA00 -> 242.6640625

Posted by mobafan on 25 July 2008 in English.

Hi,

normalerweise nutze ich JOSM, da ich aber gerade einen Fehler auf der Karte entdeckt habe und auf diesem Rechner JOSM nicht zur Verfügung stehen habe (und auch nicht runterladen kann), wollte ich das eben mit Potlatch korrigieren und die neue Führung der Landesstraße L 434 in Niedersachsen (die alte OD Fuhlen ist zur Gemeindestraße abgewertet worden, die Route geht jetzt über die Ortsumfahrung Fuhlen/Lachem) in die entsprechende vorhandene Route eintragen.

Die normale Änderung klappte soweit auch, aber das Hinzufügen einer Route ist nicht möglich. Mache ich da was falsch, oder ist da ein Bug im (deutschsprachigen) Potlatch (abgesehen davon, dass die Texte wie "Hinzufügen" aus den Schaltflächen herausragen)?

Posted by davidearl on 24 July 2008 in English.

Started systematic work on Huntingdon yesterday. Huntingdon is a market town of about 20,000 people so it will take four or five trips to complete. As everywhere there is lots of new housing development on the margins, so it's possibly more than that now, and there are the neighbouring villages of Godmanchester and Brampton that would make sense to do as I go (Brampton looks superficially as if it might be complete, but even reaching the Huntingdon edge of it I can now see that it isn't).

This first session covered Hinchingbrooke (that part of the town west of the A14 trunk road with lots of public building - police HQ, fire HQ, hospital, forensic lab; and a huge country park with a decent enough cafe which I arrived at at just the right time for lunch) and Stukeley Meadows (a boring housing estate in the north west sector of the town which pretentiously names most of its culs-de-sac after lakes in the Lake District). It must be terrible living in either of these bits because they are boxed in by two of the busiest roads in East Anglia, and I was conscious of loud traffic noise all the time. That and the East Coast Main Line railway bisecting it with 225km/h trains every ten minutes.

By the way I hope you get better soon Matthew. I say this because the key bit that was already done was Hinchingbrooke Hospital and the roads leading to it!

Location: Huntingdon, Huntingdonshire, Cambridgeshire, Cambridgeshire and Peterborough, England, United Kingdom

Yup, more tracks.. looks like this section hasnt been posted by anyone else cool.

Im also over in the Talk-ca discussion trying to figure out about GeoBase and to potential for OSM. .. Anyone have thoughts about that they might want to add??

Location: Area H (Manning Park/Tulameen/Siwash), Regional District of Okanagan-Similkameen, British Columbia, Canada

I finally managed to borrow a BU-353 USB GPS receiver and added my very first roads to OSM. Here's my complete workflow:

1) gpsd -d ntrip://lindi:$PASSWORD@www.euref-ip.net:80/METS0 -f /dev/ttyUSB0 -N -n -D 1

2) echo rw | nc 2947 > a.dump

3) gpsbabel -i nmea -f a.dump -o gpx -F a.gpx

4) open a.gpx in josm, edit map, upload

Any idea how I could I apply DGPS corrections as a post-processing step? I don't always have access to internet.

Posted by Mark Gray on 24 July 2008 in English.

I have been working on an OSM tile downloader/cacher/viewer application in VB.net. It works pretty well now and the source is available through subversion:

http://svn.mapwindow.org/svnroot/OSM_VBnet/

I post about this program in a thread on the MapWindow forum at:

http://www.mapwindow.org/phorum/read.php?2,9197,9477#msg-9477

In addition to caching and displaying tiles, it overlays GPX files (tracks and waypoints) on the map.

That's because at best resolution, you can only just make out the town.

I'll be there for a few days next week and was hoping to lay down some structure before the Slippy midweek update, so I'd have a printout to work off to get some names. (I traced one road, quite badly, north of the town, but even that might have been a hedgerow). I'll have to do some carefully recorded walks through the streets in when I'm in Methven to get some lines and names that someone else can build on. I did mark the town itself from imagery as a node – a first for me.

I'm a bit concerned about filling up my GPS's tracklog next week because I intend to try some piste mapping in the area. Might have to take a laptop. Might not be a bad idea, anyway, since NZ TV is so rubbish.

Now that I've rubbished your TV, I wonder if anyone from Christchurch or the ski areas would like to message me before Sunday? We could endeavour to catch up. I'll be in Christchurch the first weekend of August.

New topic: I have to get this off my conscience. I lived for a short period in my childhood in an apartment in Rosenweg, Hondelage, Braunschweig, Germany. That's not the confession … wait for it. A few weeks ago, I went into Potlatch and traced it and named it. At that time I didn't know to be careful that all the ways had been loaded. They probably had been. I probably left a mess for someone else to clean up. Terribly sorry. Happy to see Richard has made the "loading ways" message a lot more prominent in 0.10. A real newbie trap, that was. Sometimes I think the barrier to entry for Potlatch is too low.

See full entry

Location: Methven, Ashburton District, Canterbury, New Zealand
Posted by Peter56 on 24 July 2008 in English.

Hallo,

ich komme aus Leipzig (Holzhausen) und bin noch relativ neu bei OSM. Darum würde ich gerne User aus der Umgebung kennen lernen.

Zu diesem Zweck konnte ich den Verein GEO Leipzig (www.geoleipzig.de) dazu bewegen, für den 17.09.2008 ein Meeting zu organisieren. Eine Agenda im eigentlichen Sinne gibt es nicht. Schön wäre es allerdings, wenn User, die bereits länger dabei sind, von ihren Erfahrungen berichten können. Ansonsten sollte jeder auf den Tisch legen können, was ihn bewegt oder einfach nur lauschen.

Falls jemand etwas vorstellen kann/möchte steht ein PC+Beamer zur Verfügung und für ein paar Erfrischungen sorgt der Verein.

Als Ort haben wir ein Beratungsraum bei der PC-Ware AG. Das ist in Leipzig-Heiterblich, Blochstrasse. Wer pc-ware in der Adreßsuche bei OSM eingibt, sollte die Lage angezeigt bekommen.

NEIN, es handelt sich um KEINE verdeckte Werbeveranstaltung, Kaffeefahrt oder so, sondern eine Mitarbeiterin dieses Unternehmens hat den Raum besorgt und ist selbst am Projekt interessiert. Darüber hinaus wurde die Koordinierungsstelle der GDI-Initiative-Sachsen beim Landesvermessungsamt eingeladen.

Solltest Du Interesse oder Frage dazu haben, würde ich mich über eine Antwort hier oder an info@geoleipzig.de

Mit freundlichen Grüßen - Peter Scigalla

P.S.: Ich hab diese Einladung an User in der Nähe und verschiedenen Foren gepostet und hoffe, das wird nicht als Spam-Versuch gewertet.

Location: Neu-Paunsdorf, Paunsdorf, Ost, Leipzig, Saxony, 04329, Germany

えっと、こちらのUser Diaryは「Previewが無い」「一度Saveしてしまうと、後からEditできない」「HTMLのTableタグが上手く使えない(これは自分の問題かな?)」など、今やっているような長めのものを書くにはちょっと使い難いので、Bloggerの方へ引っ越しました。

ということで、「GPSロガーの設定をいぢってみる - 3」をあちらに作成し、その続きもあちらでやろうと思います。

こちらはGPXのアップロードや地図の編集についての作業記録やToDoなどに使おうかなと思っています。気が向いたらですけど...

Posted by kallies on 23 July 2008 in English.

Hi, folks!

After collecting some tracks of Waldshut-Tiengen (WT) and vector-drawing in JOSM, I am a little bit dissatisfied. Some details are not rendered the way I like and there is a thorn in my side. There is a part of a freeway (A98) around WT and another part is located at Laufenburg. But the link between these two parts is only a concept, not a final land-use plan. There is more than one option but one option has already been clicked into OSM. A few days ago another user changed the A98 concept in a bad way so I had to revert to the old one. This was the cause to write about that thorn. It's not a nicely rendered map if there is a street which doesn't exist...

So long!
Lukas

Location: Tiengen, Waldshut-Tiengen, VVG der Stadt Waldshut-Tiengen, Landkreis Waldshut, Baden-Württemberg, Germany
Posted by ricosi64 on 23 July 2008 in English.

Hi there,

so this is my first entry. I began to map about a week ago with my Holux M-241 and it worked quite fine.

There were some problems with drivers for Linux, since I don't use Windows, but at least I found a solution.

Since I was new to JOSM, I have done some tests of mapping (and designing) the area of Valleranello, which is located in the south of Rome, Italy, just outside the peripher-highway of Rome, between Via Pontina and Via Laurentia. I choose this area, because during the week I live there, and it was a white spot or better white area, so I was quite sure not to disturb anybody.

I tracked all the streets while running (Cycling in Rome is for brave men only thatdon't fear live). Some of the smaller streets I had to do by car, because - well - usually I don't fear dogs, but in this area People are frightened of beeing robbed and they think the gangsters would fear their dog's. Well it works fine for runners, the gangsters meanwhile come by cable or WLAN...

Ok so I tracked all of the roads and stuff, imported them to JOSM and created a map of Valeranello. I tried to upload, but somehow it didn't work - I couldn't see any results even two days after. So I improved the map in some details, added some names and stuff and finally i tried another upload.

This time I had the idea (from another tracker) to reload the area after upload and so I had to realise, that the first upload also finally has arrived.

The result is, that a lot of points and POI's are "doubled". So for the next days clearing those errors will be my big challenge.

Apart from the area of Valleranello I started to track small ways around Malagrotta, which is located in the South-West of Rome near Ponte Galeria and Fiumicino. Thats the place where I work at the Moment and during Lunchbreak (on the way to restaurant) I track every now and then some "new" streets.

23.07.08

Location: Municipio Roma IX, Rome, Roma Capitale, Lazio, Italy