Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "Headless question": Harvesting the results...software needed.
Date: Tue, 30 Sep 2014 18:12:56
Message-Id: 20140930181238.GM3828@solfire
In Reply to: Re: [gentoo-user] "Headless question": Harvesting the results...software needed. by Matti Nykyri
1 Matti Nykyri <matti.nykyri@×××.fi> [14-09-30 19:44]:
2 > > On Sep 30, 2014, at 17:12, Alec Ten Harmsel <alec@××××××××××××××.com> wrote:
3 >
4 > >
5 > >
6 > >> On 09/30/2014 10:05 AM, meino.cramer@×××.de wrote:
7 > >> Suppose the GPS would already be attached
8 > >> to the board and works...
9 > >>
10 > >> Is there any free available software and data for
11 > >> strict offline useage (which does NOT calls
12 > >> to home), which is able to map GPS data to a street/land
13 > >> map?
14 > >> I need both: The maps themselves and the logic to read
15 > >> GPS coordinates and map movements and ways to those maps.
16 > >>
17 > >> Is something like that available for free or should
18 > >> I directly ask the NSA/CIA/FBI/...?
19 > >>
20 > >> Thank you very much in advance for any help!
21 > >> Best regards,
22 > >> mcc
23 > > The only project I know of that has openly available map data is
24 > > OpenStreetMap (openstreetmap.org). I know they have an API, and they
25 > > probably (not sure) have maps available for download.
26 > >
27 > > afaik the only way to combine various map data out of the box is to use
28 > > a GIS package like QGIS. You can write software to do this using the
29 > > proj4 library for an embedded box, not sure if anything for your
30 > > specific use case already exists and is open source.
31 > >
32 > > Alec
33 >
34 > Sorry iphone send mail even if you don't wanna :/
35 >
36 > What you are considering doing is quite a challenge. What kind of coordinates does your gps module give you? The gps system works with cartesian x y z coordinates. Then these are usually displayed to the user in WGS-84. This is a quite hard mathematical problem (differential elliptical problem). Usually is done by your gps receiver and is approximated. GIS libraries have these functions built inside. Distances are easier and faster to calculate in cartesian coordinates. You need to calculate distance because coordinates from gps will never coincide with any address.
37 >
38 > Open street maps provides a very good start, but addresses have great differences in different countries. For example google misses addresses quite much depending on where you are searching. Getting the address right requires good locality from the program. Addresses and roads are vector maps. The fastest way to get address is to have the vector map of the world and then calculate distance to the closest address. The database will be huge :)
39 >
40 > Maps are usually raster pictures which have some projection. When you display them you can use 3d or 2d visual. In 3d (like google earth) you draw a sphere (or oblate spheroid) and draw textures on top of is to the right coordinates. In 3d everything needs to be converted to cartesian coordinates. Or in 2d you decide a projection and then convert the projection of your maps to this projection. After that it is just easy drawing. GIS libraries contain all the needed tools for these operations. There are a few of them with open source license.
41 >
42 > I have been doing some work with opengl 3d drawing maps. Good luck your project is quite big but it is sure very much fun :)
43 >
44 > --
45 > -Matti
46 >
47 >
48 >
49
50 YEAH! Matti is back! I saw your previous mail and thought: Oh
51 boy...Clint Eastwood is very talkative compared to /him/. ;;;)))
52
53 I am not /that/ serious this evening...sorry...
54 With all the help from this forum this evening I got by far more
55 working results as I have thought...
56
57 But back to your mail:
58 The GPS module I plan to use is this one (by Adafruit, Lady Ada):
59 https://learn.adafruit.com/adafruit-ultimate-gps/overview
60 From there (see link list on the left) you can also download
61 the manuals (pdf).
62
63 I will not use this thing as a driving assistant or "navi" (is this
64 common speaking outside germany also...or is it one of those pseudo
65 english german words like "handy" for "cell phone"...dont laugh! This
66 time /I am/ serious! :) )
67
68 Its more like a GPS data logger. I plan to copy the gathered data on
69 my PC later and I will try to "draw" them onto a map.
70 May be the results proof later, that I am able to walk through walls
71 and hovering over the face of the waters...;)
72
73 May be the UV-mappinga abillity of this 3D renderig program will help -- I am
74 using it for other purposes since 2006.
75 www.blender.org
76
77 Will see how far it will go. First step in progress will be acchived,
78 when I can read any data from the GPS module and they are not that
79 changing if I dont move and they will change when I move. The module
80 is ordered and will arrive -- I hope -- next week.
81
82 Best regards,
83 mcc

Replies

Subject Author
Re: [gentoo-user] "Headless question": Harvesting the results...software needed. Matti Nykyri <Matti.Nykyri@×××.fi>