Return to Project-GC

Welcome to Project-GC Q&A. Ask questions and get answers from other Project-GC users.

If you get a good answer, click the checkbox on the left to select it as the best answer.

Upvote answers or questions that have helped you.

If you don't get clear answers, edit your question to make it clearer.

+1 vote
651 views

There appear to be a bug with the Laos map in Profile Stats, the generated image only shows a part of Laos, and contains no information about found regions, but if we look at the same user in Map Regions everything looks fine, the whole country shows and found regions are highlighted correctly.

I have looked at the stats for other people who also have found geocaches in Laos and the same error appears for all users, so it is not an isolated bug only for me.

Link to MapRegion, here everything is workinghttps://project-gc.com/Tools/MapRegions?profile_name=0250&country=Laos&submit=Filter

Link to ProfileStats (scroll down to Laos), not working: https://project-gc.com/ProfileStats/0250#Maps

Could you test the map generation for Laos and see what is wrong? To me it looks like all data is available, but the image generation is failing for some reason.

Attached images

in Bug reports by 0250 (270 points)

1 Answer

0 votes
Thank you for a very detailed and readable bug report.

I have been looking into this today. The issue is that we use data from different sources, and sometimes the country names doesn't match. Here was a case like that which we had missed.

I have added a "translation" in the code, which helps the system to create data that was missing. It's currently in the process of being created and should soon be done.

The maps however are cached (stored, not geocached) client-side for a while, therefore it could take a day or two before you notice the difference.
by magma1447 (Admin) (243k points)
Thanks! It looks a lot better now, but not perfect.

It appears that the cropping calculation is wrong, if you look at the Profile Stats now and count the visible regions on the Laos map you only see 14 regions (some only partially), 3 regions in the north/northwest is completely outside the edge of the map.

The same problem is also visible on the Profile Stats maps for Thailand, Vietnam and Philippines, but to a lesser degree than the errors on the Laos map.

Is it possible to adjust this calculation also?
I suspect that this has to do with the fact that there are no caches in those regions at all.
Interesting, i started looking into it and at first it showed promise as being the reason, but this region (see link below) in Laos does have one geocache and this region is completely outside the map. So maybe that is not the reason, the geocache is however very close to the border so im not ready to completely rule it out as the reason.

If this is in fact the case, it would appear that the cropping calculation uses the boundaries of geocaches rather than the boundaries of the regions that the map is supposed to show, but now i'm just guessing...

https://project-gc.com/Tools/MapRegions?profile_name=0250&country=Laos&submit=Filter&region=%E0%BA%9A%E0%BB%8D%E0%BB%88%E0%BB%81%E0%BA%81%E0%BB%89%E0%BA%A7
...