Skip to content
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

Adding of digitalGlobe as wms sources #23

Open
katpatuka opened this issue Jul 5, 2017 · 8 comments
Open

Adding of digitalGlobe as wms sources #23

katpatuka opened this issue Jul 5, 2017 · 8 comments

Comments

@katpatuka
Copy link

Hi Jonas,

Would it be possible to add the digitalglobe standard and premium imagery as wms sources to the scanaerial.cfg?

@Vort
Copy link
Collaborator

Vort commented Jul 5, 2017

You mean TMS?

I have added this sources to my config with the following lines:

server_api = tms
server_name = DigitalGlobe Standard
server_url = http://{switch:a,b,c}.tiles.mapbox.com/v4/digitalglobe.0a8e44ba/{zoom}/{x}/{y}.png?access_token=pk.eyJ1IjoiZGlnaXRhbGdsb2JlIiwiYSI6ImNqMmFxcGJ2MjAwOHEzMm9nZmF2c3luZWkifQ.HsF19zOlj8PeOxo5BhNqyQ

But it is better also to calculate empty_tile_bytes and empty_tile_checksum values.

@katpatuka
Copy link
Author

katpatuka commented Jul 5, 2017

...or TMS ;)
How are empty_tile_bytes and empty_tile_checksum values being calculated ?

@Vort
Copy link
Collaborator

Vort commented Jul 5, 2017

It's a size and CRC32 checksum of an empty tile.
If I remember correctly and empty tile for DigitalGlobe is completly white, then this values should work:

empty_tile_bytes = 103
empty_tile_checksum = 1788459727

Please, try it.

@katpatuka
Copy link
Author

It worked fine even without empty_* on way 505981095.

@Vort
Copy link
Collaborator

Vort commented Jul 8, 2017

The purpose of empty_ settings is to show error when program encounters empty tile (instead of going to trace the whole world).

@katpatuka
Copy link
Author

Note: DigitalGlobe urls changed - see: osmlab/editor-layer-index@522b5f1

@Vort
Copy link
Collaborator

Vort commented Jul 14, 2017

Thanks.

server_api = tms
server_name = DigitalGlobe Standard
server_url = https://{switch:a,b,c}.tiles.mapbox.com/v4/digitalglobe.0a8e44ba/{zoom}/{x}/{y}.png?access_token=pk.eyJ1IjoiZGlnaXRhbGdsb2JlIiwiYSI6ImNqM293Y3Y5ZjAwaWgycW55ZXFncHk0a3QifQ.6Kprj_J4oDmXqV97RricwA
empty_tile_bytes = 103
empty_tile_checksum = 1788459727
server_api = tms
server_name = DigitalGlobe Premium
server_url = https://{switch:a,b,c}.tiles.mapbox.com/v4/digitalglobe.316c9a2e/{zoom}/{x}/{y}.png?access_token=pk.eyJ1IjoiZGlnaXRhbGdsb2JlIiwiYSI6ImNqM293YnJ5MTAwajIzMnF0bmV4dnV1MW4ifQ.psvzzOez33BOH8xmRiJZWg
empty_tile_bytes = 103
empty_tile_checksum = 1788459727

@katpatuka
Copy link
Author

DigitalGlobe seems to be defunct now - are there corresponding Maxar entries one can use ?

@katpatuka katpatuka reopened this Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants