mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
add GeoQ web tile maps
This commit is contained in:
parent
990d86b8c8
commit
591358e9cd
@ -17,7 +17,7 @@ public class ArcGISImageInfo extends TileFactoryInfo {
|
||||
* Constructor
|
||||
*/
|
||||
public ArcGISImageInfo() {
|
||||
super("ArcGISImage", 1, 24, 24,
|
||||
super("ArcGISImage", 0, 18, 19,
|
||||
256, true, true, // tile size is 256 and x/y orientation is normal
|
||||
"http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/tile/%1$d/%2$d/%3$d",
|
||||
"x", "y", "z");
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.meteoinfo.data.mapdata.webmap;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author yaqiang
|
||||
*/
|
||||
public class GeoQBlueMapInfo extends TileFactoryInfo {
|
||||
// <editor-fold desc="Variables">
|
||||
// </editor-fold>
|
||||
// <editor-fold desc="Constructor">
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public GeoQBlueMapInfo() {
|
||||
super("GeoQMap", 0, 16, 19,
|
||||
256, true, true, // tile size is 256 and x/y orientation is normal
|
||||
"http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/%1$d/%2$d/%3$d",
|
||||
"x", "y", "z");
|
||||
}
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Get Set Methods">
|
||||
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Methods">
|
||||
|
||||
@Override
|
||||
public String getTileUrl(int x, int y, int zoom) {
|
||||
zoom = this.getTotalMapZoom() - zoom;
|
||||
String url = String.format(this.baseURL, zoom, y, x);
|
||||
return url;
|
||||
}
|
||||
// </editor-fold>
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.meteoinfo.data.mapdata.webmap;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author yaqiang
|
||||
*/
|
||||
public class GeoQGrayMapInfo extends TileFactoryInfo {
|
||||
// <editor-fold desc="Variables">
|
||||
// </editor-fold>
|
||||
// <editor-fold desc="Constructor">
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public GeoQGrayMapInfo() {
|
||||
super("GeoQMap", 0, 18, 19,
|
||||
256, true, true, // tile size is 256 and x/y orientation is normal
|
||||
"http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetGray/MapServer/tile/%1$d/%2$d/%3$d",
|
||||
"x", "y", "z");
|
||||
}
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Get Set Methods">
|
||||
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Methods">
|
||||
|
||||
@Override
|
||||
public String getTileUrl(int x, int y, int zoom) {
|
||||
zoom = this.getTotalMapZoom() - zoom;
|
||||
String url = String.format(this.baseURL, zoom, y, x);
|
||||
return url;
|
||||
}
|
||||
// </editor-fold>
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.meteoinfo.data.mapdata.webmap;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author yaqiang
|
||||
*/
|
||||
public class GeoQMapInfo extends TileFactoryInfo {
|
||||
// <editor-fold desc="Variables">
|
||||
// </editor-fold>
|
||||
// <editor-fold desc="Constructor">
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public GeoQMapInfo() {
|
||||
super("GeoQMap", 0, 18, 19,
|
||||
256, true, true, // tile size is 256 and x/y orientation is normal
|
||||
"http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineCommunity/MapServer/tile/%1$d/%2$d/%3$d",
|
||||
"x", "y", "z");
|
||||
}
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Get Set Methods">
|
||||
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Methods">
|
||||
|
||||
@Override
|
||||
public String getTileUrl(int x, int y, int zoom) {
|
||||
zoom = this.getTotalMapZoom() - zoom;
|
||||
String url = String.format(this.baseURL, zoom, y, x);
|
||||
return url;
|
||||
}
|
||||
// </editor-fold>
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.meteoinfo.data.mapdata.webmap;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author yaqiang
|
||||
*/
|
||||
public class GeoQWarmMapInfo extends TileFactoryInfo {
|
||||
// <editor-fold desc="Variables">
|
||||
// </editor-fold>
|
||||
// <editor-fold desc="Constructor">
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public GeoQWarmMapInfo() {
|
||||
super("GeoQMap", 0, 18, 19,
|
||||
256, true, true, // tile size is 256 and x/y orientation is normal
|
||||
"http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetWarm/MapServer/tile/%1$d/%2$d/%3$d",
|
||||
"x", "y", "z");
|
||||
}
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Get Set Methods">
|
||||
|
||||
// // </editor-fold>
|
||||
// // <editor-fold desc="Methods">
|
||||
|
||||
@Override
|
||||
public String getTileUrl(int x, int y, int zoom) {
|
||||
zoom = this.getTotalMapZoom() - zoom;
|
||||
String url = String.format(this.baseURL, zoom, y, x);
|
||||
return url;
|
||||
}
|
||||
// </editor-fold>
|
||||
}
|
||||
@ -24,6 +24,10 @@ public enum WebMapProvider {
|
||||
ASatelliteMap,
|
||||
AHybridMap,
|
||||
TencentMap,
|
||||
GeoQMap,
|
||||
GeoQGrayMap,
|
||||
GeoQBlueMap,
|
||||
GeoQWarmMap,
|
||||
//BaiduMap,
|
||||
//BaiduSatelliteMap,
|
||||
//OviMap,
|
||||
@ -36,6 +40,6 @@ public enum WebMapProvider {
|
||||
CMA_CVA_MAP,
|
||||
CMA_VEC_MAP,
|
||||
CMA_IMG_MAP
|
||||
//ArcGISImage,
|
||||
//ArcGISImage
|
||||
//Custom
|
||||
}
|
||||
|
||||
@ -468,6 +468,18 @@ public class WebMapLayer extends MapLayer {
|
||||
case TencentMap:
|
||||
info = new TencentMapInfo();
|
||||
break;
|
||||
case GeoQMap:
|
||||
info = new GeoQMapInfo();
|
||||
break;
|
||||
case GeoQGrayMap:
|
||||
info = new GeoQGrayMapInfo();
|
||||
break;
|
||||
case GeoQBlueMap:
|
||||
info = new GeoQBlueMapInfo();
|
||||
break;
|
||||
case GeoQWarmMap:
|
||||
info = new GeoQWarmMapInfo();
|
||||
break;
|
||||
case CMA_CVA_MAP:
|
||||
info = new CMACvaMapInfo();
|
||||
break;
|
||||
|
||||
@ -1,10 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<MeteoInfo File="milconfig.xml" Type="configurefile">
|
||||
<Path OpenPath="D:\Working\MIScript\Jython\mis\plot_types\3d_earth">
|
||||
<RecentFolder Folder="D:\MyProgram\java\MeteoInfoDev\MeteoInfo"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\netcdf"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning\convolution"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning"/>
|
||||
<Path OpenPath="D:\Working\MIScript\Jython\mis\traj\TrajStat">
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\toolbox\miml\classification"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\toolbox\miml"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\toolbox\miml\model_persistence"/>
|
||||
@ -12,23 +8,27 @@
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\3d"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\map"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\map\projection"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\grads"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\3d_earth"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\plot_types\3d\jogl"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\satellite"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\satellite\calipso"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\traj"/>
|
||||
<RecentFolder Folder="D:\Working\MIScript\Jython\mis\traj\TrajStat"/>
|
||||
</Path>
|
||||
<File>
|
||||
<OpenedFiles>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning\classification\saturn.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\particles_1.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\isosurface_1.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\streamslice_1.py"/>
|
||||
<OpenedFile File="D:\Working\MIScript\Jython\mis\traj\TrajStat\convert2shp.py"/>
|
||||
</OpenedFiles>
|
||||
<RecentFiles>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\toolbox\miml\deep_learning\classification\saturn.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\particles_1.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\isosurface_1.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\plot_types\3d_earth\streamslice_1.py"/>
|
||||
<RecentFile File="D:\Working\MIScript\Jython\mis\traj\TrajStat\convert2shp.py"/>
|
||||
</RecentFiles>
|
||||
</File>
|
||||
<Font>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<MeteoInfo File="config.xml" Type="configurefile">
|
||||
<Path OpenPath="D:\Temp\test"/>
|
||||
<Path OpenPath="D:\MyProgram\java\MeteoInfoDev\MeteoInfo"/>
|
||||
<Font>
|
||||
<TextFont FontName="YaHei Consolas Hybrid" FontSize="14"/>
|
||||
<LegendFont FontName="宋体" FontSize="12"/>
|
||||
@ -8,5 +8,5 @@
|
||||
<ScriptLanguage Language="Jython"/>
|
||||
<LookFeel LafDecorated="true" Name="FlatLightLaf"/>
|
||||
<Figure DoubleBuffering="true"/>
|
||||
<Startup MainFormLocation="-7,-7" MainFormSize="1293,685" ShowMeteoDataDlg="true"/>
|
||||
<Startup MainFormLocation="-6,0" MainFormSize="1293,685" ShowMeteoDataDlg="false"/>
|
||||
</MeteoInfo>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user