PDA

View Full Version : NEMO Handy Analysis on Actix



thodoris85
2011-09-07, 02:18 AM
Hello,

I know this information is needed to very few people and I don't know if anyone finds this helpful but I guess I can upload this "trick". :)

Have tried in the past to figure out how is it possible to load a measurement from NEMO Handy (with its map) into Actix, but wasn't possible no matter how hard I tried.



Representation of indoor measurements by NEMO are not quite supported by Actix due to different representation of indoor coordinates of the two systems.
Actix realizes the measurement's coordinates in decimal degrees rather than meters

Map is represented fine, but the measurement's coordinates indicate that you have actually walked quite a few kilometers (even if the map is a few meters).

So here is a solution on how to fix that.
As I didn't succeed on changing the measurement to be represented on the map, I changed the map to be on the same scale as the measurement (meaning quite larger than it actually is).

So lets start already:

on the code below you can see a tab file (indoor map) created by NEMO Handy


!table
!version 300
!charset WindowsLatin1

Definition Table
File "Indoor map.jpg"
Type "RASTER"
(0,0) (0,0) Label "Pt 1",
(69,0) (774,0) Label "Pt 2",
(0,60) (0,670) Label "Pt 3",
(69,60) (774,670) Label "Pt 4"
CoordSys NonEarth Units "m"
Units "m"

you can see 4 sets of coordinates
(0,0) (0,0) Label "Pt 1",
(69,0) (774,0) Label "Pt 2",
(0,60) (0,670) Label "Pt 3",
(69,60) (774,670) Label "Pt 4"

lets take (0,0) (0,0) Label "Pt 1", to examine
(0,0) is the actual point in meters
(0,0) is a point on the jpeg image of the map, this is in pixels

this creates the upper left point



now lets take (69,0) (774,0) Label "Pt 2", to examine
(69,0) is the actual point in meters
(774,0) is a point on the jpeg image of the map, this is in pixels

this creates the upper right point


and so on for the other two points
so NEMO Handy created a set of 4 points, and hence we have a representation of the map in actual meters.
So actually the tab file make a correlation between the jpeg of the map and real meters

For the second set of points (69,0) (774,0) Label "Pt 2",, Actix reads (69,0) in meters.
According to the table found here: Decimal degrees - Wikipedia, the free encyclopedia (http://en.wikipedia.org/wiki/Decimal_degrees), if we multiply (69,0) by 111000, this will change our map to be on the same scale as the measurement itself
We have to do this for all the set of points.

our "new" tab file will actually become like this:


!table
!version 300
!charset WindowsLatin1

Definition Table
File "Indoor map.jpg"
Type "RASTER"
(0,0) (0,0) Label "Pt 1",
(7659000,0) (774,0) Label "Pt 2",
(0,6660000) (0,670) Label "Pt 3",
(7659000,6660000) (774,670) Label "Pt 4"
CoordSys NonEarth Units "m"
Units "m"

Thats all and I hope I didn't confuse you.


P.S As this is a workaround, if anyone knows the correct way of making NEMO Handy measurements to be shown correctly on their map, please let me know!