OruxMaps

Uncategorized Boards => ERRORES/BUGS => Topic started by: VAHiker on February 19, 2018, 12:59:49 AM

Title: Geopdfs not geolocated properly
Post by: VAHiker on February 19, 2018, 12:59:49 AM
Of the US National Park Service geopdfs, some work in Orux and some don't. One example that's too far south is

  http://www.nps.gov/hfc/carto/PDF/PRWImap1.pdf

Another larger scale that is off is

http://www.nps.gov/hfc/carto/PDF/POHEmap1.pdf
Title: Re: Geopdfs not geolocated properly
Post by: orux on February 20, 2018, 05:40:18 PM
Quote from: VAHiker post_id=12883 time=1518998389 user_id=7301
Of the US National Park Service geopdfs, some work in Orux and some don't. One example that's too far south is

  http://www.nps.gov/hfc/carto/PDF/PRWImap1.pdf

Another larger scale that is off is

http://www.nps.gov/hfc/carto/PDF/POHEmap1.pdf


Hello;



the first one is working right in my phones (if you have problems with it, clean vectorial cache in settings-->maps-->vectorial cache, then refresh the offline map list).



the second one is not right, but I think it is not an OruxMaps problem; if you open it with another app, you will see the same error. I think it is wrong calibrated; see attached, the same coordinates will show the same point in both apps:



(//%3C/s%3E%3CLINK_TEXT%20text=%22https://preview.ibb.co/jeC0Qx/Screensho%20...%20111709.jpg%22%3Ehttps://preview.ibb.co/jeC0Qx/Screenshot_20180220_111709.jpg%3C/LINK_TEXT%3E%3Ce%3E) (//https)



orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on February 21, 2018, 01:31:17 AM
I don't see vectorial under maps to clear cache. I cleared everything that I could find, downloaded the file again and still the same problem. The track of the hike in the park is about 10 miles north of the map displayed in Oruxmaps.
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on February 21, 2018, 01:45:51 AM
If you mean "Reset raster cache" I did that. I then used your distance measuring tool and the start point of the hike, the Visitor Center, is 13 miles south on the map of the GPS point.
Title: Re: Geopdfs not geolocated properly
Post by: orux on February 21, 2018, 05:50:46 PM
Quote from: VAHiker post_id=12912 time=1519173951 user_id=7301
If you mean "Reset raster cache" I did that. I then used your distance measuring tool and the start point of the hike, the Visitor Center, is 13 miles south on the map of the GPS point.


Hello!



The map: http://www.nps.gov/hfc/carto/PDF/PRWImap1.pdf is working fine in my devices. If I load a route, it matches perfectly with the path.



(//%3C/s%3E%3CLINK_TEXT%20text=%22https://image.ibb.co/neVjLx/Screenshot_%20...%20090512.jpg%22%3Ehttps://image.ibb.co/neVjLx/Screenshot_20180221_090512.jpg%3C/LINK_TEXT%3E%3Ce%3E) (//https)



Try this: rename the map (keep the extension .pdf) and refresh the map list. Then load it again,



orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on February 22, 2018, 04:19:00 AM
No, still the same problem after the rename. Moving to the same center point that you are showing on your map that is at 38.5749 Lat is at 38.3874 when display on mine. It is straight south though, the Longitude is the same. Your map is fine. I have an older version that I converted from the PDF to a png and georeference in OkMap and made an Oruxmap. It works fine, but I was excited about the new support of the geopdfs now and downloaded all the maps from the NPS site. Most work fine like the Shenandoah and the Manassas, but I was wanting to show the rangers in Prince William Forest Park how it works for them and it was broken. Exactly the same problem here on two different phones.
Title: Re: Geopdfs not geolocated properly
Post by: orux on February 22, 2018, 10:16:36 AM
Quote from: VAHiker post_id=12918 time=1519269540 user_id=7301
No, still the same problem after the rename. Moving to the same center point that you are showing on your map that is at 38.5749 Lat is at 38.3874 when display on mine. It is straight south though, the Longitude is the same. Your map is fine. I have an older version that I converted from the PDF to a png and georeference in OkMap and made an Oruxmap. It works fine, but I was excited about the new support of the geopdfs now and downloaded all the maps from the NPS site. Most work fine like the Shenandoah and the Manassas, but I was wanting to show the rangers in Prince William Forest Park how it works for them and it was broken. Exactly the same problem here on two different phones.


I'm really intrigued with this problem. Can you share your map with me (the file you are using, not a link to the download website), to see if it is a different version/format?



orux
Title: Re: Geopdfs not geolocated properly
Post by: orux on February 22, 2018, 11:28:34 AM
Quote from: orux post_id=12919 time=1519290996 user_id=2
Quote from: VAHiker post_id=12918 time=1519269540 user_id=7301
No, still the same problem after the rename. Moving to the same center point that you are showing on your map that is at 38.5749 Lat is at 38.3874 when display on mine. It is straight south though, the Longitude is the same. Your map is fine. I have an older version that I converted from the PDF to a png and georeference in OkMap and made an Oruxmap. It works fine, but I was excited about the new support of the geopdfs now and downloaded all the maps from the NPS site. Most work fine like the Shenandoah and the Manassas, but I was wanting to show the rangers in Prince William Forest Park how it works for them and it was broken. Exactly the same problem here on two different phones.


I'm really intrigued with this problem. Can you share your map with me (the file you are using, not a link to the download website), to see if it is a different version/format?



orux


Sorry, maybe I was testing different versions;



Could you test the last beta version?



http://www.oruxmaps.com/foro/viewtopic.php?f=4&t=4743





orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on February 22, 2018, 12:34:35 PM
The Beta fixes the problem! Thanks.
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 04, 2018, 04:21:59 PM
And 7.3.0 has this fix so I removed the Beta, but when the 7.3.1 was auto installed I tried to open the Prince William Forest Park geopdf map when we started our hike, and BOOM!, Oruxmaps crashed. I responded to the crash by uploading the data so you should be able to access the details.
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 04, 2018, 04:38:03 PM
I also tried the 7.3.2beta3 and it also crashes when trying to open the PWF geopdf
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 04, 2018, 04:54:07 PM
There is also a problem with the zoom levels when switching maps. I have a track on the screen and when switching maps want to see the same view, but it is jumping about two levels, even though the zoom levels that the app is displaying, say level 15, is still being reported, but it is only right for the vmaps. I think that this used to work as expected.



I just tried two other geopdf and they both crashed Orux when trying open them too, so issue doesn't seem to be the PWF map itself.
Title: Re: Geopdfs not geolocated properly
Post by: orux on August 04, 2018, 06:46:05 PM
Quote from: VAHiker post_id=13975 time=1533392519 user_id=7301
And 7.3.0 has this fix so I removed the Beta, but when the 7.3.1 was auto installed I tried to open the Prince William Forest Park geopdf map when we started our hike, and BOOM!, Oruxmaps crashed. I responded to the crash by uploading the data so you should be able to access the details.


Hello;



But you can open it again, or you can not open it anymore?



orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 04, 2018, 09:13:38 PM
I can restart Oruxmaps, but when opening any of the geopdfs that I have tried, it crashes again. Orux opens displaying the previous successful map displayed, but not any geopdfs now.
Title: Re: Geopdfs not geolocated properly
Post by: orux on August 04, 2018, 10:35:15 PM
Quote from: VAHiker post_id=13980 time=1533410018 user_id=7301
I can restart Oruxmaps, but when opening any of the geopdfs that I have tried, it crashes again. Orux opens displaying the previous successful map displayed, but not any geopdfs now.


Now the app is using android pdf libraries, instead of external libraries; in this way, I can save a lot of memory, and the apk is smaller; your device and android version?



It is strange but seems that the android pdf implementation is worse, or not complete.





orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 04, 2018, 11:21:40 PM
Motorola Moto G5 plus, Android 7.0
Title: Re: Geopdfs not geolocated properly
Post by: orux on August 05, 2018, 10:18:28 AM
Quote from: VAHiker post_id=13984 time=1533417700 user_id=7301
Motorola Moto G5 plus, Android 7.0


OK, I will back to the old library; it seems that there are devices that do not include the right one in the Android SDK, it is incredible...

You can test the last beta with the old library.





orux
Title: Re: Geopdfs not geolocated properly
Post by: VAHiker on August 12, 2018, 01:43:59 AM
Thanks for fixing this. Works fine again in 7.3.2.