Git Product home page Git Product logo

flyover-reverse-engineering's People

Contributors

retroplasma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flyover-reverse-engineering's Issues

Error during install & use (Go 1.16.x)

Hi Andrian, thanks for your work!

I have some problem with the use of this project.
When I tried to follow your doc, during setup I have an error:

$ go get -d github.com/retroplasma/flyover-reverse-engineering/...
$ cd "$(go env GOPATH)/src/github.com/retroplasma/flyover-reverse-engineering"
cd: no such file or directory: /home/sylvain/go/src/github.com/retroplasma/flyover-reverse-engineering

I discovered that it downloaded the project in this path : /home/sylvain/go/pkg/mod/github.com/retroplasma/flyover-reverse-engineering, but with the wrong rights:

$ ls -alh
drwxr-xr-x sylvain users 4.0 KB Sun Apr 18 12:56:40 2021  .
drwxr-xr-x sylvain users 4.0 KB Sun Apr 18 12:56:40 2021  ..
dr-xr-xr-x sylvain users 4.0 KB Sun Apr 18 12:56:40 2021  [email protected]

So i tried to copy the project folder in the right directory, and change rights with chmod.
I continued to follow your documentation but I had an error during:

$ go run cmd/export-obj/main.go 34.007603 -118.499741 20 3 40
cmd/export-obj/main.go:16:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/fly: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:17:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:18:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:19:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/fly/exp: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:20:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/mps: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:21:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/mps/config: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:22:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/mth: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:23:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/oth: go.mod file not found in current directory or any parent directory; see 'go help modules'
cmd/export-obj/main.go:24:2: no required module provides package github.com/retroplasma/flyover-reverse-engineering/pkg/web: go.mod file not found in current directory or any parent directory; see 'go help modules'

I tried to manually clone the project in an other directory, but I had exactly the same errors.

Tested on both Archlinux & Macos (BigSur), with go version go1.16.3 and GOPATH=/home/sylvain/go

Cant find github.com/golang/protobuf/proto

Hi guys,

Im trying to install using "go get github.com/retroplasma/flyover-reverse-engineering" but i get the error:

# cd /Users/JESSDB/go/src/github.com/retroplasma/flyover-reverse-engineering; git submodule update --init --recursive
Submodule 'github.com/golang/protobuf' ([email protected]:golang/protobuf) registered for path 'vendor/github.com/golang/protobuf'
Submodule 'github.com/ulikunitz/xz' ([email protected]:ulikunitz/xz) registered for path 'vendor/github.com/ulikunitz/xz'
Cloning into '/Users/JESSDB/go/src/github.com/retroplasma/flyover-reverse-engineering/vendor/github.com/golang/protobuf'...
Warning: Permanently added 'github.com,140.82.118.4' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:golang/protobuf' into submodule path '/Users/JESSDB/go/src/github.com/retroplasma/flyover-reverse-engineering/vendor/github.com/golang/protobuf' failed
Failed to clone 'vendor/github.com/golang/protobuf'. Retry scheduled
Cloning into '/Users/JESSDB/go/src/github.com/retroplasma/flyover-reverse-engineering/vendor/github.com/ulikunitz/xz'...
Permission denied (publickey).
fatal: Could not read from remote repository.

panic: unexpected end of JSON input

Hey,

Not entirely sure what I'm doing wrong. In terminal getting a panic: unexpected end of JSON input that seems to be coming from the oth.go file?

(apologies - I am very new to this!)

Script doesn't set config.json

Hi,

I really look forward to using this tool, however, the script doesn't generate the first parameter for config.json but does so for the second parameter.

I hope you can help me out,
Cheers

"x509: certificate signed by unknown authority" on WSL and missing src folder with Go 1.16

go run cmd/export-obj/main.go 34.007603 -118.499741 20 3 40
panic: Get https://gspe35-ssl.ls.apple.com/geo_manifest/dynamic/config?application=geod&application_version=1&country_code=US&hardware=MacBookPro11,2&os=osx&os_build=20B29&os_version=11.0.1: x509: certificate signed by unknown authority

goroutine 1 [running]:
github.com/retroplasma/flyover-reverse-engineering/pkg/oth.CheckPanic(...)
        /home/bizz/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/oth/oth.go:36
main.main()
        /home/bizz/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:105 +0x14a6
exit status 2

and when I comment out that checkpanic line:

go run cmd/export-obj/main.go 34.007603 -118.499741 20 3 40
panic: minPlace not found

goroutine 1 [running]:
github.com/retroplasma/flyover-reverse-engineering/pkg/oth.CheckPanic(...)
        /home/bizz/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/oth/oth.go:36
main.main()
        /home/bizz/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:111 +0x1453
exit status 2

Please could you help me?

I really wanted to play around with this data..

Overflow and path error on Windows

I am in Windows with GO 1.15, I changed the config.json file and executed the go get instruction. When I ran cd "$(go env GOPATH)/src/github.com/retroplasma/flyover-reverse-engineering", the system cannot find the path specified is reported. I neglected it and ran the example code in README.md to get Santa Monica Pier, then I get :
# github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/internal ..\..\..\go\src\github.com\retroplasma\flyover-reverse-engineering\pkg\fly\c3m\internal\huffman.go:148:35: constant 4294967295 overflows int

Is there any advice about the overflow and the path problem?

unable to download from London?

Hey retroplasma,

Im trying to use this tool again to rip some more stuff from Apple maps. I updated all the files from github and ran the default Santa Monica Pier example and it works fine. But when I try and run a location in London it fails with this error:


Felixs-MBP:flyover-reverse-engineering felix$ go run cmd/export-obj/main.go 51.488287 -0.316545 20 3 15
london 42193.4 51.49416405580992 -0.1312690762721167
panic: t must be 1 goroutine 1 [running]:
runtime/debug.Stack(0xc00011c9f0, 0x13a94c0, 0x14b4840)
	/usr/local/Cellar/go/1.13.1/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm.Parse.func1(0xc00011cde8)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm/c3mm.go:27 +0x5a
panic(0x13a94c0, 0x14b4840)
	/usr/local/Cellar/go/1.13.1/libexec/src/runtime/panic.go:679 +0x1b2
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm.parseC3MMv1(0xc000362000, 0x12db5, 0x12fb5, 0x0, 0x3, 0x3f80000000000001, 0x3fcf81e7, 0x12d9a, 0x28bbd, 0xc0000c0060, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm/c3mm.go:140 +0x958
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm.parseC3MM(0xc000362000, 0x12db5, 0x12fb5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm/c3mm.go:42 +0xc3
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm.Parse(0xc000362000, 0x12db5, 0x12fb5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3mm/c3mm.go:31 +0xca
main.(*context)._getC3mm(0xc0000b29c0, 0x0, 0x0, 0xc0002dd620, 0x7, 0xc0002dd7c8, 0x6, 0x3fecc280117a4a70, 0xbf62c4bce9e16431, 0x40e49a2ccccccccd, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:315 +0x66b
main.(*context).getC3mm(0xc0000b29c0, 0x0, 0x0, 0xc0002dd620, 0x7, 0xc0002dd7c8, 0x6, 0x3fecc280117a4a70, 0xbf62c4bce9e16431, 0x40e49a2ccccccccd, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:295 +0x117
main.(*context).checkTile(0xc0000b29c0, 0x0, 0x0, 0xc0002dd620, 0x7, 0xc0002dd7c8, 0x6, 0x3fecc280117a4a70, 0xbf62c4bce9e16431, 0x40e49a2ccccccccd, ...)
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:189 +0x79
main.main()
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:154 +0xd3e



goroutine 1 [running]:
main.main()
	/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/export-obj/main.go:156 +0x1460
exit status 2

any idea what it could be?

Thanks a lot dude!

Unable to download from lat, lon := 35.4240,136.7679

When I enter the lat, lon := 35.4240,136.7679 coordinates the files don't download.

Here is my console readout:
`Felixs-MacBook-Pro:flyover-reverse-engineering felix$ go run cmd/poc-export-obj/main.go
Nagoya 76884.7 34.939622148496554 136.7646824069133
Downloading...
Decoding...
https://gspe11-ssl.ls.apple.com/tile?style=15&v=2036&region=186&x=922633&y=413807&z=20&h=0&sid=6565400357354698630327463474867077906879&accessKey=1589380704_e7ZJE3zzR3KWDKzN_EFaNl2H6cB7LgX1HL2bjBMczYUGt%2B%2BzIYuEQTD8jyJwLbawD%2B7Qriygmj0tW6b%2F2z7XXzuAphOFAH8RuYlP40Q2qhL4109Z1n1homWr%2BHGRtklzzEnjCuoJsN8Wxoe%2BbcMAVmHBGlLgxP%2BzOf30a7P%2Fc4rcOGIMrX29rChLwgI4h8nnMaBI1UdpGsehLzSRG
Invalid C3M header goroutine 1 [running]:
runtime/debug.Stack(0xc0002b53f0, 0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse.func1(0xc0002b5710)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:27 +0x5a
panic(0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/panic.go:679 +0x1b2
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.parse(0xc000407800, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:36 +0x25e
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse(0xc000407800, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:30 +0xc3
main.context.exportOBJ(0xc000279050, 0x28, 0xc0001b2000, 0x2b, 0x40, 0xc000112250, 0xf, 0xc0001961a0, 0x20, 0xc00025c000, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:83 +0xa23
main.main()
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:33 +0x1e5

Downloading...
Decoding...
https://gspe11-ssl.ls.apple.com/tile?style=15&v=2036&region=186&x=922633&y=413807&z=20&h=1&sid=6565400357354698630327463474867077906879&accessKey=1589380705_YcnbiRq4hRuVMZXQ_JO0o1CFfYCvCDhbrrPI140d0WBWNziBQWofj%2BVcCF9a%2BruXDCdl5c7rtmcpIKpw1XuZTYSAMmoW1OjNKdLOB7ktwI7ETHaUQAebDGBMQXXBIy6O2UhQPZpLiK6ZZOdwcCvZ3%2Fl%2BGCQ%2FSunYbaKQazM9VEYyPEv4H7wOARo8Y53R0qi%2BxuvFfgsRcd5L95vWf
Invalid C3M header goroutine 1 [running]:
runtime/debug.Stack(0xc0002b53f0, 0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse.func1(0xc0002b5710)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:27 +0x5a
panic(0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/panic.go:679 +0x1b2
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.parse(0xc0002a4000, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:36 +0x25e
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse(0xc0002a4000, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:30 +0xc3
main.context.exportOBJ(0xc000279050, 0x28, 0xc0001b2000, 0x2b, 0x40, 0xc000112250, 0xf, 0xc0001961a0, 0x20, 0xc00025c000, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:83 +0xa23
main.main()
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:33 +0x1e5

Downloading...
Decoding...
https://gspe11-ssl.ls.apple.com/tile?style=15&v=2036&region=186&x=922633&y=413807&z=20&h=2&sid=6565400357354698630327463474867077906879&accessKey=1589380705_lFoXFYzL6V3tKbW5_MEpFiZ9KCZdbcuRiljIQd26l6Arpqi69Q%2BkZ37NlhROWEaPVh9kPRfAmO2ii9UMsFiCngNZPdpXc9%2FSCp8IkTJ6K0T%2Fmi05HAESsjgFUrXELV0Lwe2QkqwG%2Fq6r0%2FBCdrOcdYYihJVOLgr0cHUNPBoLnu98%2F%2BpOnIQqDCuUk28GaXPK9u%2Fbm%2BVGY3CpznLa8
Invalid C3M header goroutine 1 [running]:
runtime/debug.Stack(0xc0002b53f0, 0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/debug/stack.go:24 +0x9d
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse.func1(0xc0002b5710)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:27 +0x5a
panic(0x1399780, 0x149e5c0)
/usr/local/Cellar/go/1.13.1/libexec/src/runtime/panic.go:679 +0x1b2
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.parse(0xc0002a4600, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:36 +0x25e
github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m.Parse(0xc0002a4600, 0xa0, 0x600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/pkg/fly/c3m/c3m.go:30 +0xc3
main.context.exportOBJ(0xc000279050, 0x28, 0xc0001b2000, 0x2b, 0x40, 0xc000112250, 0xf, 0xc0001961a0, 0x20, 0xc00025c000, ...)
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:83 +0xa23
main.main()
/Users/felix/go/src/github.com/retroplasma/flyover-reverse-engineering/cmd/poc-export-obj/main.go:33 +0x1e5

`

etc. But no files appear in the folder.

Please help ^_^ Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.