OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

Join the forum, it's quick and easy

OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>
OruxMaps
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Wrong coordinates?

2 posters

Go down

Wrong coordinates? Empty Wrong coordinates?

Post  blepers Fri May 14, 2010 11:31 am

Hi,

I've just tried to create and display a map from an OZI file. The OruxMapsDesktop's conversion seems to work fine (the 4 coordinates in the otrk2.xml are correct - I checked in Google Maps and the 4 points indeed are located in the 4 corners of my PNG). In the android application however the top left coordinates are correct but the bottom right coordinates are wrong (when I place the position indicator on the bottom right corner it displays 45.9016°N-5.77002°E; the correct coordinates are 45.12754316°N 5.76858281°E).

This is problematic for me since my real position on the map is then displayed incorrectly. (I checked in the embedded Google Maps application and it works fine - 10m uncertainty with the GPS - so the problem does not come from the GPS.)

Have I missed something in the conversion process?

Here are the needed files to reproduce the problem:
  • Ozi Map (PNG + .map): (7.3MB)
  • [*:530c] The files generated by OruxMapsDesktop which I copied in the mapfiles/ directory:


    Thanks in advance,
    Baptiste. drunken

blepers
Guest


Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  blepers Fri May 14, 2010 11:35 am

Oops, the links didn't work on the previous message. Here are the files :


blepers

Cantidad de envíos : 4
Fecha de inscripción : 2010-05-14

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  orux Fri May 14, 2010 3:46 pm

blepers wrote:Oops, the links didn't work on the previous message. Here are the :


Hi, blepers;

I do not know why, but those are not real 'latitude/longitude' projection maps.

Try with 'Transverse Mercator' projection, with these parameters:
Projection Setup, 45.000000000, 5.000000000, 0.999600000, 0.00, 0.00, 49.000000000, 45.000000000,,,

Latitude origin --> 45.0
Longitude origin--> 5.0
factor k -->0.9996
false north-->0.0
false east-->0.0

I think it will work fine;

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  blepers Fri May 14, 2010 6:16 pm

Thanks for your answer!

The result is the same as before.

What I don't get is why OruxMaps is displaying wrong coordinates. When I open the .xml file I have:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<OruxTracker xmlns="http://oruxtracker.com/app/res/calibration"
 versionCode="2.1">
<MapCalibration layers="false" layerLevel="0">
<MapName><![CDATA[GRENOBLE -UN de Lutin France 2004- Topo 1 25000]]></MapName>
<MapChunks xMax="8" yMax="8" datum="WGS 1984:Global Definition@WGS 1984:Global Definition" projection="Transverse Mercator,5.0,45.0,0.9996,0.0,0.0" img_height="512" img_width="512" file_name="GRENOBLE -UN de Lutin France 2004- Topo 1 25000" />
<MapDimensions height="4000" width="4000" />
<MapBounds minLat="45.12754316" maxLat="45.22127209" minLon="5.64162321" maxLon="5.77413759" />
<CalibrationPoints>
<CalibrationPoint corner="TL" lon="5.64697296" lat="45.22127209" />
<CalibrationPoint corner="BR" lon="5.76858281" lat="45.12754316" />
<CalibrationPoint corner="TR" lon="5.77413759" lat="45.21741246" />
<CalibrationPoint corner="BL" lon="5.64162321" lat="45.13139645" />
</CalibrationPoints>
</MapCalibration>
</OruxTracker>

So, when looking at the map, why isn't OruxMaps displaying lon="5.76858281" lat="45.12754316" when I'm at the bottom right corner ? No

blepers

Cantidad de envíos : 4
Fecha de inscripción : 2010-05-14

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  orux Fri May 14, 2010 6:17 pm

blepers wrote:Thanks for your answer!

The result is the same as before.

What I don't get is why OruxMaps is displaying wrong coordinates. When I open the .xml file I have:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<OruxTracker xmlns="http://oruxtracker.com/app/res/calibration"
 versionCode="2.1">
<MapCalibration layers="false" layerLevel="0">
<MapName><![CDATA[GRENOBLE -UN de Lutin France 2004- Topo 1 25000]]></MapName>
<MapChunks xMax="8" yMax="8" datum="WGS 1984:Global Definition@WGS 1984:Global Definition" projection="Transverse Mercator,5.0,45.0,0.9996,0.0,0.0" img_height="512" img_width="512" file_name="GRENOBLE -UN de Lutin France 2004- Topo 1 25000" />
<MapDimensions height="4000" width="4000" />
<MapBounds minLat="45.12754316" maxLat="45.22127209" minLon="5.64162321" maxLon="5.77413759" />
<CalibrationPoints>
<CalibrationPoint corner="TL" lon="5.64697296" lat="45.22127209" />
<CalibrationPoint corner="BR" lon="5.76858281" lat="45.12754316" />
<CalibrationPoint corner="TR" lon="5.77413759" lat="45.21741246" />
<CalibrationPoint corner="BL" lon="5.64162321" lat="45.13139645" />
</CalibrationPoints>
</MapCalibration>
</OruxTracker>

So, when looking at the map, why isn't OruxMaps displaying lon="5.76858281" lat="45.12754316" when I'm at the bottom right corner ? No

Restart maps database (main screen of OruxMaps)

Try then,

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  blepers Fri May 14, 2010 6:23 pm

It works! Very Happy

Thanks for the help. Wink

(Any idea on how I can automate the process? Everytime I select a map OruxMapsDesktop switch back to "Longitute/Lattitude". I've ~50 maps to convert... Not a really big deal but if there is a quick and easy solution...)

blepers

Cantidad de envíos : 4
Fecha de inscripción : 2010-05-14

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  orux Fri May 14, 2010 6:33 pm

blepers wrote:It works! Very Happy

Thanks for the help. Wink

(Any idea on how I can automate the process? Everytime I select a map OruxMapsDesktop switch back to "Longitute/Lattitude". I've ~50 maps to convert... Not a really big deal but if there is a quick and easy solution...)

Perhaps it will work:

1.-make a backup of your .map files
2.-With Oruxmapsdesktop, use 'translator' tab, and replace 'Latitude/Longitude' by 'Transverse Mercator' in all .map files.

Use batch convertor.

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  blepers Fri May 14, 2010 6:45 pm

Seems to work fine. cheers

Again, thanks for the help!

blepers

Cantidad de envíos : 4
Fecha de inscripción : 2010-05-14

Back to top Go down

Wrong coordinates? Empty Re: Wrong coordinates?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum