SASGIS

Веб-картография и навигация

ZMP for Costa Rica map

English- or other language speakers welcome here
Please do not translate your native language to "broken Russian" via crappy machine translation services - please post it as it is, in your native language.

Модератор: Tolik

ZMP for Costa Rica map

Сообщение flashkiwi » 09 окт 2017, 12:47

Hi

I want to create a ZMP for a Costa Rica maps found at

https://tiles1.arcgis.com/tiles/4u1m1BBDkNDTVWsd/arcgis/rest/services/25000/MapServer?f=jsapi

It needs a cache key added to each request. For example a tile request looks like:

https://tiles4.arcgis.com/tiles/4u1m1BB ... 4e1a1dcb62

How do I manage this in SAS? Will I have to do it manually and add a new key when the current one expires?

Thanks for your assistance!

FlashKiwi.
flashkiwi
Новичок
 
Сообщения: 5
Зарегистрирован: 09 окт 2017, 12:33
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.

Re: ZMP for Costa Rica map

Сообщение garl » 09 окт 2017, 15:24

try this
copy file into the map folder and restart sas palnet
zoom 15 ++
Вложения
costarica.zmp
(1.08 KiB) Скачиваний: 131
Russian NDN Team
QIP NightlyTester
Аватара пользователя
garl
Гуру
 
Сообщения: 1625
Зарегистрирован: 16 июл 2008, 14:40
Откуда: Краснодар, Кубанская столица.
Благодарил (а): 97 раз.
Поблагодарили: 245 раз.

Re: ZMP for Costa Rica map

Сообщение flashkiwi » 09 окт 2017, 16:32

Thanks very much!
I didn't think to add to the geturlscript.

Is there a way to download from multiple services (example tileserver1., tileserver2, tile server3 etc)?

Thanks

FlashKiwi
flashkiwi
Новичок
 
Сообщения: 5
Зарегистрирован: 09 окт 2017, 12:33
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.

Re: ZMP for Costa Rica map

Сообщение garl » 09 окт 2017, 16:53

to use random Tileservers use this code:

Код: Выделить всё
var
  ts: string;
begin
ts:= RegExprReplaceMatchSubStr(GetURLBase, 'tiles3\.arcgis', 'tiles'+inttostr( Random(4) )+'.arcgis' );

ResultURL:= ts+inttostr(getz-1)+'/'+inttostr(gety)+'/'+inttostr(getx)+'?cacheKey=b6c5da4e1a1dcb62';
end.
Russian NDN Team
QIP NightlyTester
Аватара пользователя
garl
Гуру
 
Сообщения: 1625
Зарегистрирован: 16 июл 2008, 14:40
Откуда: Краснодар, Кубанская столица.
Благодарил (а): 97 раз.
Поблагодарили: 245 раз.


Вернуться в International visitors section

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1