浏览代码

update zmp

master
sasbot 4 年前
父节点
当前提交
900a91e99d
共有 12 个文件被更改,包括 124 次插入127 次删除
  1. +1
    -0
      .hgignore
  2. +1
    -2
      BuildZMmp.cmd
  3. +81
    -0
      BuildZMmp.wsf
  4. +0
    -1
      Maps/Read.me
  5. +13
    -0
      ProGorod1.zmp/zoom
  6. +28
    -0
      Update.cmd
  7. 二进制
      progorod_wms.zmp/18.bmp
  8. 二进制
      progorod_wms.zmp/24.bmp
  9. +0
    -37
      progorod_wms.zmp/GetUrlScript.BAK
  10. +0
    -37
      progorod_wms.zmp/GetUrlScript.txt
  11. +0
    -25
      progorod_wms.zmp/params.BAK
  12. +0
    -25
      progorod_wms.zmp/params.txt

+ 1
- 0
.hgignore 查看文件

@@ -1,6 +1,7 @@
# use glob syntax.
syntax: glob
.bin/*
.tmp/*
*.bak
*.~*
*.orig

+ 1
- 2
BuildZMmp.cmd 查看文件

@@ -1,2 +1 @@
cscript BuildZMmp.js
xcopy .bin\progorod_wms.zmp E:\GoogleMV\maps\ /y
cscript BuildZMmp.wsf /target:"..\Maps"

+ 81
- 0
BuildZMmp.wsf 查看文件

@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="windows-1251"?>
<job>
<runtime>
<named name="target" helpstring="Ïóòü ê ïàïêå, â êîòîðîé áóäóò ñîçäàâàòüñÿ *.zmp" required="true" type="string"/>
<example>Example: cscript BuildZMmp.wsf /target:"..\Maps"</example>
</runtime>
<script language="JScript">
<![CDATA[
function CBuildSource(Folder, Ext){
this.Ext = Ext;
this.fso = WScript.CreateObject("Scripting.FileSystemObject");
this.Folder = this.fso.GetFolder(Folder);
this.SourceCheckExtRegExp = new RegExp("^" + this.Ext + "$", "i");
this.CheckExt = function(Folder){
return this.fso.GetExtensionName(Folder.Name).match(this.SourceCheckExtRegExp);
};
this.GetSourceFoldersEnumerator = function(){
return new Enumerator(this.Folder.SubFolders);
};
};
function CBuilder(FolderName){
this.fso = WScript.CreateObject("Scripting.FileSystemObject");
this.WshShell = WScript.CreateObject("WScript.Shell");
this.FolderExists = false;
this.FolderName = FolderName;
if (FolderName.length == 0){
this.FolderName = ".";
};
this.GetNewFullFileName = function(FileName){
if (!this.FolderExists){
if (!this.fso.FolderExists(this.FolderName)){
this.Folder = this.fso.CreateFolder(FolderName);
this.FolderExists = true;
}else{
this.Folder = this.fso.GetFolder(this.FolderName);
this.FolderExists = true;
};
};
return this.fso.BuildPath(this.Folder.Path, this.fso.GetFileName(FileName));
};
this.GetCommandLine = function(SourceFolder, FileName){
return "7za a -tzip \""+ FileName + "\" \"" + SourceFolder + "\\*.*\"" ;
};
this.ProcessFolder = function(Folder){
var NewFileName = this.GetNewFullFileName(Folder.Name);
var FolderFullName = Folder.Path;
if (this.fso.FileExists(NewFileName)){
this.fso.DeleteFile(NewFileName);
};
var CommandLine = this.GetCommandLine(FolderFullName, NewFileName);
WScript.Echo(CommandLine);
var Pipe = this.WshShell.Exec(CommandLine);
while(!Pipe.StdOut.AtEndOfStream){
WScript.StdOut.WriteLine(Pipe.StdOut.ReadLine());
};
}
};
if (!WScript.Arguments.Named.Exists("target")){
WScript.Arguments.ShowUsage();
}else{
var Source = new CBuildSource(".", "zmp");
var Builder = new CBuilder(WScript.Arguments.Named.Item("target"));
var oFiles = Source.GetSourceFoldersEnumerator();
for (; !oFiles.atEnd(); oFiles.moveNext()){
var oFile = oFiles.item();
if (Source.CheckExt(oFile)){
Builder.ProcessFolder(oFile);
};
};
};
]]>
</script>
</job>

+ 0
- 1
Maps/Read.me 查看文件

@@ -1 +0,0 @@
المّ� ف�ل�ْ َّهلـٍ� �ـىً� *.zmp

+ 13
- 0
ProGorod1.zmp/zoom 查看文件

@@ -0,0 +1,13 @@
16
http://www.glekov.ru/lv15/00/000/020/330/000/017/633.png
=
http://a.tile.openstreetmap.org//15/20427/11311.png
¯® ª àâ¥
http://www.glekov.ru/lv15/00/000/019/905/000/017/449.png
¤®«¦­® ¡ëâì
http://www.glekov.ru/lv15/00/000/019/937/000/017/630.png

+ 28
- 0
Update.cmd 查看文件

@@ -0,0 +1,28 @@
@echo off
hg incoming "https://bitbucket.org/garl/plus.zmp/"
::echo %ERRORLEVEL%
IF ERRORLEVEL 9009 goto NoHg
IF ERRORLEVEL 2 goto err
IF ERRORLEVEL 1 goto noupdates
IF ERRORLEVEL 0 goto ok
goto err
:ok
echo ‡ ¡à ¥¬ ¨§¬¥­¥­¨ï ¨§ ९®§¨â®à¨ï
hg pull "https://bitbucket.org/garl/plus.zmp/" -u -f
IF ERRORLEVEL 1 goto err
IF NOT ERRORLEVEL 0 goto err
call BuildZMmp.cmd
goto end
:noupdates
echo �¥â ­®¢ëå ¨§¬¥­¥­¨©
goto end
:err
echo Žè¨¡ª  á¢ï§¨ á á¥à¢¥à®¬
goto end
:NoHg
echo �¥ ãáâ ­®¢«¥­ Mercurial
goto end
:end
pause

二进制
progorod_wms.zmp/18.bmp 查看文件

之前 之后

二进制
progorod_wms.zmp/24.bmp 查看文件

之前 之后

+ 0
- 37
progorod_wms.zmp/GetUrlScript.BAK 查看文件

@@ -1,37 +0,0 @@
var
sx,sy,sz:string;
lx,ty:extended;
rx,by:extended;
res:array[0..24] of extended;
begin
res[0]:=0;
res[1]:=50000;
res[2]:=49500;
res[3]:=25500;
res[4]:=9783;
res[5]:=4891.96980999999959749402;
res[6]:=2445;
res[7]:=1222;
res[8]:=611;
res[9]:=305;
res[10]:=152;
res[11]:=76;
res[12]:=38;
res[13]:=19;
res[14]:=9.5;
res[15]:=4.79999999999999982236;
res[16]:=2.39999999999999991118;
res[17]:=0;
res[18]:=0;
res[19]:=0;
lx:=-20037508+(getx*res[getz]*256);
rx:=-20037508+((getx+1)*res[getz]*256);
ty:=-15496570+((round(intpower(2,getz-1))-gety+1)*res[getz]*256);
by:=-15496570+((round(intpower(2,getz-1))-gety+0)*res[getz]*256);
ResultURL:=GetUrlBase+inttostr(getz)+'&BBOX='+RoundEX(lx,2)+','+RoundEX(by,2)+','+RoundEX(rx,2)+','+RoundEX(ty,2);
end.

+ 0
- 37
progorod_wms.zmp/GetUrlScript.txt 查看文件

@@ -1,37 +0,0 @@
var
sx,sy,sz:string;
lx,ty:extended;
rx,by:extended;
res:array[0..24] of extended;
begin
res[0]:= 0;
res[1]:= 50000;
res[2]:= 49500;
res[3]:= 25500;
res[4]:= 9783;
res[5]:= 4891.96980999999959749402;
res[6]:= 2445;
res[7]:= 1222;
res[8]:= 611;
res[9]:= 305;
res[10]:=152;
res[11]:=76;
res[12]:=38;
res[13]:=19;
res[14]:=9.5;
res[15]:=4.79999999999999982236;
res[16]:=2.39999999999999991118;
res[17]:=0;
res[18]:=0;
res[19]:=0;
lx:=-20037508+(getx*res[getz]*256);
rx:=-20037508+((getx+1)*res[getz]*256);
ty:=-15496570+((round(intpower(2,getz-1))-gety-1)*res[getz]*256);
by:=-15496570+((round(intpower(2,getz-1))-gety+0)*res[getz]*256);
ResultURL:=GetUrlBase+inttostr(getz)+'&BBOX='+RoundEX(lx,2)+','+RoundEX(by,2)+','+RoundEX(rx,2)+','+RoundEX(ty,2);
end.

+ 0
- 25
progorod_wms.zmp/params.BAK 查看文件

@@ -1,25 +0,0 @@
[PARAMS]
pnum=19
GUID={395F7E2F-41E6-4A25-83BA-6CE6310B00E8}
name=Êàðòà (pro-gorod.ru wms)
name_9=Map (pro-gorod.ru wms)
ParentSubMenu=Äðóãèå êàðòû
ParentSubMenu_9=Other maps
asLayer=0
DefURLBase=http://www.glekov.ru/lv
projection=2
sradiusa=6378137
sradiusb=6356752
NameInCache=progorodwms
separator=1
Ext=.png
UseDwn=1
Usestick=1
UseGenPrevious=1
Usedel=1
Usesave=1
UseAntiBan=0
Sleep=0
DefHotKey=32843
ContentType=image/png
BanIfLen=0

+ 0
- 25
progorod_wms.zmp/params.txt 查看文件

@@ -1,25 +0,0 @@
[PARAMS]
pnum=19
GUID={395F7E2F-41E6-4A25-83BA-6CE6310B00E8}
name=Êàðòà (pro-gorod.ru wms)
name_9=Map (pro-gorod.ru wms)
ParentSubMenu=Äðóãèå êàðòû
ParentSubMenu_9=Other maps
asLayer=0
DefURLBase=http://tiles.tmcrussia.com/f4091876df6a5d39e6690b7395a95399/?REQUEST=GetMap&FORMAT=image/png&LAYERS=lv
projection=2
sradiusa=6378137
sradiusb=6356752
NameInCache=progorodwms
separator=1
Ext=.png
UseDwn=1
Usestick=1
UseGenPrevious=1
Usedel=1
Usesave=1
UseAntiBan=0
Sleep=0
DefHotKey=32843
ContentType=image/png
BanIfLen=0

正在加载...
取消
保存