scanaerial icon indicating copy to clipboard operation
scanaerial copied to clipboard

Adding of digitalGlobe as wms sources

Open katpatuka opened this issue 8 years ago • 8 comments

Hi Jonas,

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

katpatuka avatar Jul 05 '17 14:07 katpatuka

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.

Vort avatar Jul 05 '17 14:07 Vort

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

katpatuka avatar Jul 05 '17 15:07 katpatuka

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.

Vort avatar Jul 05 '17 16:07 Vort

It worked fine even without empty_* on way 505981095.

katpatuka avatar Jul 08 '17 05:07 katpatuka

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

Vort avatar Jul 08 '17 06:07 Vort

Note: DigitalGlobe urls changed - see: https://github.com/osmlab/editor-layer-index/commit/522b5f1ac3f73b7c5737d9b77e57566d6cf1adce

katpatuka avatar Jul 13 '17 19:07 katpatuka

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

Vort avatar Jul 14 '17 04:07 Vort

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

katpatuka avatar Aug 21 '19 14:08 katpatuka