-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust lat/long for Norway? #118
Comments
I could be that the point is computed as a central point due to Norway having some overseas territories, but unsure if that's the case. I was not able to find where to adjust this. :( |
That would be in orange3-geo-master/orangecontrib/geo/geojson/admin1-NOR.json |
I know, but where in that file? I was only able to find polygon descriptions, couldn't figure out where is the coordinate for the "center of Norway". If you can find it, feel free to submit a pull request. :) |
Yes, I was too hasty. There is a lat/long, but it’s for Bouvet Island. Weird. I’ll dig a bit more. |
Not just Bouvet, also other counties. @kernc Do you perhaps remember if there is a "center" coordinate or it is computed on-the-fly? |
Yes, if there isn’t an explicit latitude and longitude given, a “representative point” is computed. So, it should be possible to add lat/long data to the file. I’ll fiddle around and see what I can come up with :-) |
What I do remember is that JSONs are generated. Manual edits should probably be made to the generating code. 😅 orange3-geo/orangecontrib/geo/geojson/make-geojson.sh Lines 81 to 141 in c54a6a8
|
Then again, maybe lat-longs for admin0 (countries) are computed on-the-fly, in which case the override might also fit somewhere here: orange3-geo/orangecontrib/geo/mapper.py Lines 111 to 126 in 1266026
|
I've been looking at the data files and I can’t figure out how they are generated. As we noted, there is info on Bouvet island (also Norwegian territory) in the admin1-NOR.json file, but nowhere else in the orange3-geo-master tree, so if that file is generated, what is it based on? |
https://github.com/biolab/orange3-geo/blob/master/CONTRIBUTING.md#building-geojson-files Based on your screenshot, however, I think you should to be looking at admin0.json and the code snippet above. |
Geo version
0.2.8
Orange version
3.27.1
Expected behavior
I think it would make more sense to have the default location of Norway to be in mainland Norway, say somewhere about 62° N, 8° E.
Actual behavior
Currently Norway is represented by a point on Svalbard, which, while admittedly Norwegian territory, is not where you’d look first.
Steps to reproduce the behavior
Show any data containing Norway with Geo Map.
Additional info (worksheets, data, screenshots, ...)
The text was updated successfully, but these errors were encountered: