Menu

#347 East and South coordinates wrong

closed
r_x
None
1
2020-11-18
2020-11-18
No

I'm making OziExplorer maps.
Configuration:

  • Map size: 10240
  • Nr tiles to overlap map regions: 0
    The profile look like
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<atlas version="1" name="Italie 2020R" outputFormat="OziPng">   
    <Layer name="Italie Z13">   
        <Map maxTileCoordinate="1138687/788223" minTileCoordinate="1128448/777984" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 E5"/>
        <Map maxTileCoordinate="1148927/788223" minTileCoordinate="1138688/777984" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 E6"/>
        <Map maxTileCoordinate="1138687/798463" minTileCoordinate="1128448/788224" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 F5"/>
        <Map maxTileCoordinate="1148927/798463" minTileCoordinate="1138688/788224" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 F6"/>
    </Layer>
 </atlas>

When observing the calibration in OziExplorer
The calibration point nr 3 in map E5 is at the same place than

  • point nr 4 in map E6
  • point nr 2 in map F5
  • point nr 1 in map F6

E5: Point03,xy,10240,10240,in, deg, 40, 44.843221, N, 15, 28.114700, E, grid, , , ,N
E6: Point04,xy, 0,10240,in, deg, 40, 44.843221, N, 15, 28.125000, E, grid, , , ,N
F5: Point02,xy,10240, 0,in, deg, 40, 44.835418, N, 15, 28.114700, E, grid, , , ,N
F6: Point01,xy, 0, 0,in, deg, 40, 44.835418, N, 15, 28.125000, E, grid, , , ,N

To be sure that the calibrating points are on the same place on the map, i made the following profile, adding 2 tiles in each direction:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<atlas version="1" name="Italie 2020R" outputFormat="OziPng">   
    <Layer name="Italie Z13R">
        <Map maxTileCoordinate="1139199/788735" minTileCoordinate="1127936/777472" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 E5"/>
        <Map maxTileCoordinate="1149439/788735" minTileCoordinate="1138176/777472" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 E6"/>
        <Map maxTileCoordinate="1139199/798975" minTileCoordinate="1127936/787712" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 F5"/>
        <Map maxTileCoordinate="1149439/798975" minTileCoordinate="1138176/787712" mapSource="Monde, cartes de randonnées OpenTopoMap-Z(17)" zoom="13" name="Italie Z13 F6"/>
    </Layer>
 </atlas>

I replaced the .map file by those of the "Italie Z13" directory but i replaced
Line 10: "Point01,xy, 0, 0" by "Point01,xy, 511, 511"
Line 11: "Point02,xy,10240, 0" by "Point02,xy,10751, 511"
Line 12: "Point03,xy,10240,10240" by "Point03,xy,10751,10751"
Line 13: "Point04,xy, 0,10240" by "Point04,xy, 511,10751"
Line 46: "MMPXY, 1, 0, 0" by "MMPXY, 1, 511, 511"
Line 47: "MMPXY, 2, 10240, 0" by "MMPXY, 2, 10751, 511"
Line 48: "MMPXY, 3, 10240, 10240" by "MMPXY, 3, 10751, 10751"
Line 49: "MMPXY, 4, 0, 10240" by "MMPXY, 4, 511, 10751"
Line 56: "10240,10240" by "11264,11264"

Conclusion:
For the same point, the latitude/longitude is different when jumping line/column.
Ik think that the correct coordinates are for the top and left coordinates and the bottom and right coordinates are to be calculated with 1 pixel more.
I tried reducing 1 pixel for x(east) and y(south) like:
Line 10: "Point01,xy, 0, 0"
Line 11: "Point02,xy,10239, 0"
Line 12: "Point03,xy,10239,10239"
Line 13: "Point04,xy, 0,10239"
Line 46: "MMPXY, 1, 0, 0"
Line 47: "MMPXY, 2, 10239, 0"
Line 48: "MMPXY, 3, 10239, 10239"
Line 49: "MMPXY, 4, 0, 10239"
Line 56: "10240,10240"
and I got a correct résult ;)

Discussion

  • r_x

    r_x - 2020-11-18

    Can you please verify that it is always one pixel less, independent of the use map source/server and the used map size?

     
  • Marc Delsupexhe

    Marc Delsupexhe - 2020-11-18

    No.
    All is OK.
    I apologize.

     

    Last edit: Marc Delsupexhe 2020-11-18
  • Marc Delsupexhe

    Marc Delsupexhe - 2020-11-18

    Please delete this ticket. The dimensions are correct.
    I made a mistake in my translations.
    Sorry for the convenience.

     

    Last edit: Marc Delsupexhe 2020-11-18
  • r_x

    r_x - 2020-11-18
    • status: open --> closed
    • assigned_to: r_x
     

Log in to post a comment.

MongoDB Logo MongoDB