OruxMaps

Uncategorized Boards => ERRORES/BUGS => Topic started by: dennis15926 on July 25, 2020, 06:37:38 PM

Title: Grid displays incorrectly when using custom grid with +towgs84
Post by: dennis15926 on July 25, 2020, 06:37:38 PM
Hello from Taiwan!

I've noticed that the on-screen grid (Show/hide Grid) does not display properly when using a Custom Grid that has Proj4 conversions using +towgs84
My guess is that the grid is created before the Geodetic Conversion (https://proj.org/usage/transformation.html) happens.

Case in point:
In Taiwan we use the TWD67 (https://epsg.io/3828) Coordinates, but the ESPG listing is incorrect; it is off by ~800 meters. The correct conversion is:
+proj=tmerc +lat_0=0 +lon_0=121 +k=0.9999 +x_0=250000 +y_0=0 +ellps=aust_SA +towgs84=-752,-358,-179,-0.0000011698,0.0000018398,0.0000009822,0.00002329 +units=m +no_defs
reference: Academia Sinica Blog (http://gis.rchss.sinica.edu.tw/qgis/?p=3542)

With this conversion, the coordinates shown in the coordinate box are accurate. But, the grid is drawn at the wrong place (misalignment of y:170, x:-805). This can be seen in the screenshot. Supposedly, the grid should be drawn at the coordinates (XXX000, XXXX000), but instead are at (XXX170, XXXX195)

Hopefully, this can be corrected, as it will be of great help to the Taiwan hiking community. If needed, I can help debug the source code.

BTW, Oruxmaps is really popular with the hiking community in Taiwan. Thanks for making such a great app!
Title: Re: Grid displays incorrectly when using custom grid with +towgs84
Post by: orux on August 03, 2020, 04:18:13 PM
Thanks;
You are right;
I think I can have a solution in next version:

(https://i.ibb.co/yq89dxz/Screenshot-20200803-161552.jpg) (https://ibb.co/kXh75PL)

orux
Title: Re: Grid displays incorrectly when using custom grid with +towgs84
Post by: dennis15926 on August 03, 2020, 05:11:44 PM
Hi Orux,

Thanks so much for the prompt response and quick fix  ;D

Just wanted to share a few links from the Taiwan hiking / mapping community. It's in Traditional Chinese, but you can see Oruxmaps screenshots everywhere in the posts :D

http://rudy.basecamp.tw/taiwan_topo.html
https://www.facebook.com/groups/taiwan.topo
https://www.facebook.com/groups/664516810370602/post_tags/?post_tag_id=1500861583402783

Thank you again for making all this possible for us hikers in Taiwan!!
Title: Re: Grid displays incorrectly when using custom grid with +towgs84
Post by: orux on August 11, 2020, 09:38:40 AM
Quote from: dennis15926 on August 03, 2020, 05:11:44 PM
Hi Orux,

Thanks so much for the prompt response and quick fix  ;D

Just wanted to share a few links from the Taiwan hiking / mapping community. It's in Traditional Chinese, but you can see Oruxmaps screenshots everywhere in the posts :D

http://rudy.basecamp.tw/taiwan_topo.html (http://rudy.basecamp.tw/taiwan_topo.html)
https://www.facebook.com/groups/taiwan.topo (https://www.facebook.com/groups/taiwan.topo)
https://www.facebook.com/groups/664516810370602/post_tags/?post_tag_id=1500861583402783 (https://www.facebook.com/groups/664516810370602/post_tags/?post_tag_id=1500861583402783)

Thank you again for making all this possible for us hikers in Taiwan!!


Thanks!

I am happy to see how the app is used around the world.

That's the best thing about developing the app!

orux