diff --git a/_tourism/TyanShan/TyanShan.zmp/params.txt b/_tourism/TyanShan/TyanShan.zmp/params.txt index 573dbb4f..063d4026 100644 --- a/_tourism/TyanShan/TyanShan.zmp/params.txt +++ b/_tourism/TyanShan/TyanShan.zmp/params.txt @@ -10,7 +10,6 @@ DefURLBase=http://91.237.82.95:8088/pub/tourism/tyanshan/ projection=1 sradiusa=6378137 sradiusb=6378137 -CACHETYPE=4 NameInCache=TyanShan Ext=.jpg defaultContentType=image/jpeg diff --git a/_tourism/TyanShan/tyan_shan.zmp/params.txt b/_tourism/TyanShan/tyan_shan.zmp/params.txt index 00647528..99a0940a 100644 --- a/_tourism/TyanShan/tyan_shan.zmp/params.txt +++ b/_tourism/TyanShan/tyan_shan.zmp/params.txt @@ -10,7 +10,6 @@ DefURLBase=http://91.237.82.95:8088/pub/tourism/tyan_shan/ projection=1 sradiusa=6378137 sradiusb=6378137 -CACHETYPE=4 NameInCache=Tyan_Shan Ext=.jpg defaultContentType=image/jpeg diff --git a/_tourism/djungarii.zmp/params.txt b/_tourism/djungarii.zmp/params.txt index 3b292cbe..c9490b54 100644 --- a/_tourism/djungarii.zmp/params.txt +++ b/_tourism/djungarii.zmp/params.txt @@ -9,7 +9,6 @@ DefURLBase=http://g-utka.ru/tsvetik/automaps/jungariaoro/olmap/ projection=1 sradiusa=6378137 sradiusb=6378137 -CACHETYPE=4 NameInCache=djungarii Ext=.jpg UsePreloadPage=0 diff --git a/_tourism/hrebtovka_elbrus.zmp/params.txt b/_tourism/hrebtovka_elbrus.zmp/params.txt index 73b277ec..17d70edc 100644 --- a/_tourism/hrebtovka_elbrus.zmp/params.txt +++ b/_tourism/hrebtovka_elbrus.zmp/params.txt @@ -10,7 +10,6 @@ DefURLBase=http://91.237.82.95:8088/pub/tourism/hr_elbrus/ projection=1 sradiusa=6378137 sradiusb=6378137 -CACHETYPE=4 NameInCache=hr_elbrus Ext=.jpg defaultContentType=image/jpeg diff --git a/_tourism/kyrgyz.zmp/18.bmp b/_tourism/kyrgyz.zmp/18.bmp new file mode 100644 index 00000000..47d65f27 Binary files /dev/null and b/_tourism/kyrgyz.zmp/18.bmp differ diff --git a/_tourism/kyrgyz.zmp/24.bmp b/_tourism/kyrgyz.zmp/24.bmp new file mode 100644 index 00000000..595f438b Binary files /dev/null and b/_tourism/kyrgyz.zmp/24.bmp differ diff --git a/_tourism/kyrgyz.zmp/GetUrlScript.txt b/_tourism/kyrgyz.zmp/GetUrlScript.txt new file mode 100644 index 00000000..1f0d7199 --- /dev/null +++ b/_tourism/kyrgyz.zmp/GetUrlScript.txt @@ -0,0 +1,53 @@ +function GetCode(const url: AnsiString): Cardinal; +var + VResponseCode: Cardinal; + VResponseHeader, VResponseData: AnsiString; +begin + Result := 1; + if Assigned(Downloader) then begin + VResponseHeader := ''; + VResponseData := ''; + VResponseCode := Downloader.DoHttpRequest(url, '', '', VResponseHeader, VResponseData); + Result := VResponseCode; + end; +end; + +var + BaseUrl: string; + code: Cardinal; + z_ok, z_no: integer; + r: integer; +begin + ResultURL := ''; + z_ok := StrToIntDef(GetBefore(';', ScriptBuffer), 1); // Максимальный масштаб, который точно есть + z_no := StrToIntDef(GetAfter(';', ScriptBuffer), 25); // Минимальный масштаб, которого точно нет + + // Масштаба нет - говорить не о чем + if getz >= z_no then exit; + + // Выбор зеркала +// r := random(2); + r := 0; + case r of + 0: BaseUrl := GetURLBase; +// 1: BaseUrl := RegExprReplaceMatchSubStr(GetURLBase, '91.237.82.95:8088', 'maps.melda.ru'); + end; + + // Проверяем наличие масштаба + if getz > z_ok then begin + code := GetCode(BaseUrl+'z'+inttostr(getz)+'/'); + + // Внимание! Если сервер вернёт 403 - code почему-то будет 0. Так что выбор "404 или что-то иное" + // Если дело дошло до проверки наличия масштаба - значит какая-то граница (z_ok / z_no) точно подвинется. + if code = 404 then z_no := getz else z_ok := getz; + + // Сохраняем актуализированные границы для последующих вызовов + ScriptBuffer := inttostr(z_ok) + ';' + inttostr(z_no); + + // Масштаба нет (о чём могли только что при проверке узнать) - говорить не о чем + if getz >= z_no then exit; + end; + + // Ок, качаем тайлик + ResultURL:= BaseUrl+'z'+inttostr(getz)+'/'+inttostr(getx div 1024)+'/x'+inttostr(getx)+'/'+inttostr(gety div 1024)+'/y'+inttostr(gety)+'.jpg'; +end. diff --git a/_tourism/kyrgyz.zmp/info.txt b/_tourism/kyrgyz.zmp/info.txt new file mode 100644 index 00000000..cc7fa4e0 --- /dev/null +++ b/_tourism/kyrgyz.zmp/info.txt @@ -0,0 +1,16 @@ +
+ - garl@mail.ru
+
+
+
- . +
+
, . 1:50000. GeoTIFF. , (Global mapper, Ozi explorer .) 254 dpi 100 . +
1:200000. +
+
AS IS ( ). . , , . , . (avp westra.ru) ( ) . +
. +
+
. (, , ) .
.., , . +
+
04.04.2007 +
http://westra.ru/reports/tianshan/kirgmap.html \ No newline at end of file diff --git a/_tourism/kyrgyz.zmp/params.txt b/_tourism/kyrgyz.zmp/params.txt new file mode 100644 index 00000000..e1c17bb6 --- /dev/null +++ b/_tourism/kyrgyz.zmp/params.txt @@ -0,0 +1,19 @@ + +[PARAMS] +pnum=17 +GUID={6e2d3659-d51a-4121-8b38-9c96381370b3} +name_ru=- . +name=Kyrgyz ridge map +ParentSubMenu_ru=\ +ParentSubMenu=Tourism\Kyrgyz +DefURLBase=http://91.237.82.95:8088/pub/tourism/kyrgyz/ +projection=1 +sradiusa=6378137 +sradiusb=6378137 +NameInCache=kyrgyz +Ext=.jpg +defaultContentType=image/jpeg +ContentType="image/jpeg" +MaxConnectToServerCount=1 +License= +IsUseDownloaderInScript=1 diff --git a/_tourism/terskey.zmp/params.txt b/_tourism/terskey.zmp/params.txt index fb1cc77a..496d7fd0 100644 --- a/_tourism/terskey.zmp/params.txt +++ b/_tourism/terskey.zmp/params.txt @@ -9,7 +9,6 @@ DefURLBase=http://map.g-utka.ru/ projection=1 sradiusa=6378137 sradiusb=6378137 -CACHETYPE=4 NameInCache=Terskey Ext=.png UsePreloadPage=0