SASGIS

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

MD5 hash for example Israeli Topo

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

MD5 hash for example Israeli Topo

Сообщение zoulou » 05 авг 2015, 23:21

Hello

Is it possible to use hashed tiles ?
Israeli topo site uses following function to get the tiles :

GetUrlScript.txt:
Код: Выделить всё
TextToMd5 := MD5Print(MD5String('Copyrighted AmudAnan ' + IntToStr(GetZ-1) + '/' + IntToStr(GetY) + '/' + IntToStr(GetX)));
ResultURL := GetURLBase + TextToMd5+ '.png';


The output :
"Copyrighted AmudAnan 15/13328/19584" equals "4ad6114ecf2f44c84765c5bf7c1c2614"

So these are equivalent :
http://a.amudanan.co.il/tiles/I50N64/4ad6114ecf2f44c84765c5bf7c1c2614.png

But there is a error "MD5Print" and "MD5Script". Why ?
Is there a way to use the hashed version ?

Thanks in advance
zoulou
Новичок
 
Сообщения: 1
Зарегистрирован: 05 авг 2015, 22:39
Благодарил (а): 0 раз.
Поблагодарили: 0 раз.

Re: MD5 hash for example Israeli Topo

Сообщение zed » 06 авг 2015, 10:05

zoulou писал(а):But there is a error "MD5Print" and "MD5Script". Why ?

Because there is no such functions yet Описание скриптов Pascal, but they can be added in next Nightly builds SASPlanet if you create a new ticket in our Bugtracker.

And I think that you need only one function that calculate MD5 checksum by given string and return result in string representation i.e. function MD5String(const Adata: string): string.
zed
Гуру
 
Сообщения: 2888
Зарегистрирован: 16 авг 2008, 20:21
Благодарил (а): 89 раз.
Поблагодарили: 525 раз.


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

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

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