| Versions |
 |
|
| Author |
Topic  |
|
|
arg_
4 Posts |
Posted - 24 sept. 2011 : 05:50:04
|
I am trying to convert my iGO favorites to Mireo Dont't Panic and I am stuck. Favorites are stored in a text file named favs.txt where each point is specified like this:
COUNTRY="India" CITY="New Delhi" AREA="Delhi NCR" STREET="Mehrauli Najafgarh Road" POI="check" TYPE="1050" PT="76.993175 28.590787" IDPT="57410272 22262984"
The last two integers (IDPT) are essential for viaGPS to recognise the point but I have no clue how they are calculated. Are they the coordinates in some other format?
I would very much appreciate any help
|
|
|
Ads
|
|
|
gpspassion
93427 Posts |
|
|
arg_
4 Posts |
Posted - 24 sept. 2011 : 13:09:08
|
not sure I understand the question, could you please clarify?
|
 |
|
|
glogloglo
2 Posts |
Posted - 24 sept. 2011 : 23:46:53
|
quote: Originally posted by arg_ COUNTRY="India" CITY="New Delhi" AREA="Delhi NCR" STREET="Mehrauli Najafgarh Road" POI="check" TYPE="1050" PT="76.993175 28.590787" IDPT="57410272 22262984"
Hm, this seems like a nice challenge. Maybe not, since the coordinates that you are searching for are most like Mercator projection coordinates. Basic formulae are given at http://en.wikipedia.org/wiki/Transverse_Mercator_projection.
Basically, the formulas say: x = a * lambda y = a * ln(tan(PI/4 + phi/2))
So first, lets convert coordinates from your example, from degrees to radians: lambda = 76.993175 * PI /180 = 1.3437843 phi = 28.590787 * PI / 180 = 0.4990033
Then, find the constant a: a = x / lambda = 57410272 / 1.3437843 = 42722832.824
Now, apply the constant a and the second formula to verify if our assumptions are correct;
y = 42722832.824 * ln(tan(PI/4 + 0.4990033/2)) = 22262981.317 which is very close to your value of 22262984. So my assumptions were correct 
Therefore, to convert PT="lambda phi" to IDPT="x y", use the formulas:
x = 42722832.824 * lambda * PI / 180 y = 42722832.824 * ln(tan(PI / 4 + phi * PI / 360))
|
 |
|
|
arg_
4 Posts |
Posted - 25 sept. 2011 : 06:42:51
|
you are a treasure!
I just converted in excel all my iGO favourites and imported to Don't Panic
thanks so much!
|
 |
|
|
glogloglo
2 Posts |
Posted - 25 sept. 2011 : 21:25:20
|
No problem!
What are your impressions of Dontpanic? I didn't see it mentioned anywhere on GPSPassion. Perhaps someone could write a review of Dontpanic and put it here under "Articles"? |
 |
|
|
arg_
4 Posts |
Posted - 26 sept. 2011 : 07:36:32
|
well, I must say that so far I am very impressed with it. It is lightweight and FAST! Has the smoothest scrolling while navigating that I have seen and route calculation -and recalculation- is ultra fast. There are some goodies missing however, like user defined POIs and radars. Another minor nuisance is that user favourites are limited to one hundred so I had to choose the best-100 among my iGO favourites ;) Hope they will increase the number in the future.
There is a 7-day trial version in android market so anybody can (and should) give it a try
|
 |
|
| |
Topic  |
|
|
|
| This page was generated in 0,31 seconds. |
 |
|