Grisoulechat / earth-reverse-engineering-utils

Random python scripts for retroplasma/earth-reverse-engineering
0 stars 0 forks source link

Error with earth reverse engineering utils #1

Open Grisoulechat opened 5 months ago

Grisoulechat commented 5 months ago

@LexSong

Today the python file, python find_overlaps.py no longer works. Can you help me please ? Here is the error :

Capturdd

LexSong commented 5 months ago

I found the issue but don't know how to fix it, but there is a walkaround.

image

You can see in the browser API calls, the epoch number rolled back from 967 from 966.

If we hardcoded the epoch number at line 66: https://github.com/Grisoulechat/earth-reverse-engineering-utils/blob/d52277130c65e4bd92a1a59085bf7964c8bb7c58/find_overlaps.py#L66 to 966 the script runs normally.

If you only wants to download the data, the hotfix should work for now.

LexSong commented 5 months ago

The hotfix:

@@ -64,6 +70,7 @@ class NodeData(object):
 def find_overlaps(bbox, max_octants_per_level):
     planetoid_metadata = read_planetoid_metadata()
     epoch = planetoid_metadata.root_node_metadata.epoch
+    epoch = 966

     overlapping_octants = defaultdict(list)
Grisoulechat commented 5 months ago

Thanks, it works but the search stops at octant level 8 I can't search after zoom 8, before I could zoom up to 18 or 20

LexSong commented 5 months ago

I summited a patch to fix the epoch issue: https://github.com/LexSong/earth-reverse-engineering-utils

Please check if this fixes your issue.

Grisoulechat commented 5 months ago

THANKS, you're perfect @LexSong