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: Wed, 01 Oct 2014 02:55:10
Message-Id: 20141001025458.GA8936@solfire
In Reply to: Re: [gentoo-user] "Headless question": Harvesting the results...software needed. by Matti Nykyri
1 Matti Nykyri <Matti.Nykyri@×××.fi> [14-10-01 00:26]:
2 > On Tue, Sep 30, 2014 at 08:12:38PM +0200, meino.cramer@×××.de wrote:
3 > > Matti Nykyri <matti.nykyri@×××.fi> [14-09-30 19:44]:
4 > > > > On Sep 30, 2014, at 17:12, Alec Ten Harmsel <alec@××××××××××××××.com> wrote:
5 > > >
6 > > > >
7 > > > >
8 > > > >> On 09/30/2014 10:05 AM, meino.cramer@×××.de wrote:
9 > > > >> Suppose the GPS would already be attached
10 > > > >> to the board and works...
11 > > > >>
12 > > > >> Is there any free available software and data for
13 > > > >> strict offline useage (which does NOT calls
14 > > > >> to home), which is able to map GPS data to a street/land
15 > > > >> map?
16 > > > >> I need both: The maps themselves and the logic to read
17 > > > >> GPS coordinates and map movements and ways to those maps.
18 > > > >>
19 > > > >> Is something like that available for free or should
20 > > > >> I directly ask the NSA/CIA/FBI/...?
21 > > > >>
22 > > > >> Thank you very much in advance for any help!
23 > > > >> Best regards,
24 > > > >> mcc
25 > > > > The only project I know of that has openly available map data is
26 > > > > OpenStreetMap (openstreetmap.org). I know they have an API, and they
27 > > > > probably (not sure) have maps available for download.
28 > > > >
29 > > > > afaik the only way to combine various map data out of the box is to use
30 > > > > a GIS package like QGIS. You can write software to do this using the
31 > > > > proj4 library for an embedded box, not sure if anything for your
32 > > > > specific use case already exists and is open source.
33 > > > >
34 > > > > Alec
35 > > >
36 > > > Sorry iphone send mail even if you don't wanna :/
37 > > >
38 > > > 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.
39 > > >
40 > > > 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 :)
41 > > >
42 > > > 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.
43 > > >
44 > > > 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 :)
45 > > >
46 > > > --
47 > > > -Matti
48 > > >
49 > > >
50 > > >
51 > >
52 > > YEAH! Matti is back! I saw your previous mail and thought: Oh
53 > > boy...Clint Eastwood is very talkative compared to /him/. ;;;)))
54 >
55 > Trashed the phone... and now back to the good old fashion terminal
56 > connection.
57 >
58 > > I am not /that/ serious this evening...sorry...
59 > > With all the help from this forum this evening I got by far more
60 > > working results as I have thought...
61 > >
62 > > But back to your mail:
63 > > The GPS module I plan to use is this one (by Adafruit, Lady Ada):
64 > > https://learn.adafruit.com/adafruit-ultimate-gps/overview
65 > > From there (see link list on the left) you can also download
66 > > the manuals (pdf).
67 >
68 > Nice... MicroTek chipset. Quite easy to use.
69 >
70 > > I will not use this thing as a driving assistant or "navi" (is this
71 > > common speaking outside germany also...or is it one of those pseudo
72 > > english german words like "handy" for "cell phone"...dont laugh! This
73 > > time /I am/ serious! :) )
74 > >
75 > > Its more like a GPS data logger. I plan to copy the gathered data on
76 > > my PC later and I will try to "draw" them onto a map.
77 > > May be the results proof later, that I am able to walk through walls
78 > > and hovering over the face of the waters...;)
79 >
80 > Ok. This is easy... You just need some maps... openstreetmaps are good
81 > for that. From the MT3339 you get NMEA messages and WGS-84 coordinates.
82 > I would suggest displaying your results in 2D. For germany Lambert
83 > conformal conic projection is good choice. In this projection all angles
84 > are true and sreight lines are great circle routes. Just convert the
85 > maps to this projection and convert your coordinates to Lambert false
86 > easting and false northing and you will have cartesian coordinates that
87 > are easy to draw. Even excel is able to draw this in real time :) I don't
88 > see where you need the address resolution.
89 >
90 > > May be the UV-mappinga abillity of this 3D renderig program will help -- I am
91 > > using it for other purposes since 2006.
92 > > www.blender.org
93 >
94 > From what I know about blender isn't it just 3d rendering program. Not
95 > a GIS application. It doesn't know anythin about coordinates...
96 >
97 > > Will see how far it will go. First step in progress will be acchived,
98 > > when I can read any data from the GPS module and they are not that
99 > > changing if I dont move and they will change when I move. The module
100 > > is ordered and will arrive -- I hope -- next week.
101 >
102 > Nice.
103 >
104 > --
105 > -Matti
106 >
107
108 Hi Matti,
109
110 thanks for your explanation. If I start struggling...you will receive
111 email (ok?) !
112
113 Blender:
114 The UV-Mapping of blender maps 2D-Images to whatever shaped things in
115 3D quite good...it is used for texturing.
116 Additionally Blender has a python API, so missing things can added.
117
118 Just a shot in the dark...
119
120 Best regards,
121 mcc

Replies

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