-
Notifications
You must be signed in to change notification settings - Fork 215
[Feature] Find octants by bounding box #25
Comments
Very nice! I would link to it in the README if you don't mind. We could also merge it if we document the pip goog proto dependency; at this point the repo is just a collection of scripts anyway. |
Maybe we could use http://www.transcrypt.org to transpile python into JavaScript to have a single dependency ? |
Hi there, i've been trying to get this to work but when I run the python script I get this error: Traceback (most recent call last): any idea what might be going wrong? Thank you! |
you need to install google protobuf |
@LexSong What website do you recommend to get the bounding box? I tried using coords from: python3.6 find_overlaps.py 41.340216 2.102509 41.465113 2.270393
LatLonBox(north=41.340216, south=2.102509, west=41.465113, east=2.270393)
[Octant level 1]
[Octant level 2]
[Octant level 3]
[Octant level 4]
[Octant level 5]
[Octant level 6]
[Octant level 7]
[Octant level 8]
[Octant level 9]
[Octant level 10]
[Octant level 11]
[Octant level 12]
[Octant level 13]
[Octant level 14]
[Octant level 15]
[Octant level 16]
[Octant level 17]
[Octant level 18]
[Octant level 19]
[Octant level 20] I also would place a python version check at the top of the script. |
@psociety you've mixed the number around, lexsong's script uses north then south then west then east, not north west south east |
@Rakiah oh, i tried recombining them yet i got the same result: python3.6 find_overlaps.py 41.340216 41.465113 2.102509 2.270393
LatLonBox(north=41.340216, south=41.465113, west=2.102509, east=2.270393)
[Octant level 1]
[Octant level 2]
[Octant level 3]
[Octant level 4]
[Octant level 5]
[Octant level 6]
[Octant level 7]
[Octant level 8]
[Octant level 9]
[Octant level 10]
[Octant level 11]
[Octant level 12]
[Octant level 13]
[Octant level 14]
[Octant level 15]
[Octant level 16]
[Octant level 17]
[Octant level 18]
[Octant level 19]
[Octant level 20] |
I assume that the north latitude should larger than south latitude? |
@LexSong you're right now it does throw octants up to level 13 :) |
Hey, total beginner to this stuff. Could someone explain a few things to me? How do I use the output of this script and enter it into earth-reverse-engineering? I have the bounding box of a building I want a model for and I'm not really sure how to use the output in earth-reverse-engineering. Also, what do the levels mean? For example, what does specifying the max level here mean?
|
@bhaktatejas922 Level is the zoom, go to google maps and zoom in, you will see how a z var changes in the url. It obviously has a max zoom and not all areas have the same. |
I add a python script to find overlapping octants by bounding box, instead of a single point:
https://github.com/LexSong/earth-reverse-engineering-utils
The script will stop early if it finds too many octants at the same level, so it can be used to dump large areas. I don't know javascript well enough to add the function to the main repo.
Hopefully, people will find this useful.
Example output:
The text was updated successfully, but these errors were encountered: