Browse Source

update zmp

undefined
sasgis 54 years ago
parent
commit
3140d8bd3a
1 changed files with 12 additions and 5 deletions
  1. +12
    -5
      gp_RoscosmGeo.zmp/GetUrlScript.txt

+ 12
- 5
gp_RoscosmGeo.zmp/GetUrlScript.txt View File

@@ -10,7 +10,7 @@ begin
end; end;
var binX,binY:string; var binX,binY:string;
i,posSRC,posDATE,posTYPE,posFirstAND:integer;
i,posSRC,posDATE,posTYPE,posFirstAND,lenbinXY:integer;
begin begin
posFirstAND:=pos('&',GetUrlBase)-1; posFirstAND:=pos('&',GetUrlBase)-1;
if posFirstAND<=0 then begin if posFirstAND<=0 then begin
@@ -44,10 +44,17 @@ begin
end; end;
end; end;
binX:='0'+dec2bin(GetX);
binY:='0'+dec2bin(GetY);
binX:=copy(binX,length(binX)-(GetZ-1)+1,GetZ-1);
binY:=copy(binY,length(binY)-(GetZ-1)+1,GetZ-1);
binX:=dec2bin(GetX);
binY:=dec2bin(GetY);
lenbinXY:=length(binX);
for i:=1 to ((GetZ-1)-lenbinXY) do begin
binX:='0'+binX;
end;
lenbinXY:=length(binY);
for i:=1 to ((GetZ-1)-lenbinXY) do begin
binY:='0'+binY;
end;
for i:=7 to GetZ-1 do begin for i:=7 to GetZ-1 do begin
ResultURL:=ResultURL+copy(binY,1,i-6)+'-'+copy(binX,1,i-6)+'/'; ResultURL:=ResultURL+copy(binY,1,i-6)+'-'+copy(binX,1,i-6)+'/';
end; end;


Loading…
Cancel
Save