7aabd31e by chiangbt

给视图的中间添加了一个CrossHair

1 parent 71ffcc32
package com.pashanhoo.landsurvey.layers.tianditu;
import android.util.Log;
import com.esri.core.geometry.Point;
/**
* Created by jiangbotao on 2018/3/22.
*/
public class TDTTileinfo {
private static Point originalPoint4490 = new Point(-180, 90);
private static double[] res4490 = {
1.40625,
0.703125,
0.3515625,
0.17578125,
0.087890625,
0.0439453125,
0.02197265625,
0.010986328125,
0.0054931640625,
0.00274658203125,
0.001373291015625,
0.0006866455078125,
0.00034332275390625,
0.000171661376953125,
8.58306884765629E-05,
4.29153442382814E-05,
2.14576721191407E-05,
1.07288360595703E-05,
5.36441802978515E-06,
2.68220901489258E-06,
1.34110450744629E-06
};
private static double[] scale4490 = {
400000000,
295497598.5708346,
147748799.285417,
73874399.6427087,
36937199.8213544,
18468599.9106772,
9234299.95533859,
4617149.97766929,
2308574.98883465,
1154287.49441732,
577143.747208662,
288571.873604331,
144285.936802165,
72142.9684010827,
36071.4842005414,
18035.7421002707,
9017.87105013534,
4508.93552506767,
2254.467762533835,
1127.2338812669175,
563.616940
};
private static int levels = 21;
private static int dpi = 96;
private static int tileWidth = 256;
private static int tileHeight = 256;
private static Point originalPoint4326 = new Point(-20037508.3427892, 20037508.3427892);
private static double[] scale4326={
295829355.45,
147914677.73,
73957338.86,
36978669.43,
18489334.72,
9244667.36,
4622333.68,
2311166.84,
1155583.42,
577791.71,
288895.85,
144447.93,
72223.96,
36111.98,
18055.99,
9028,
4514,
2257 };
private static double[] res4326={
0.70391441567318025,
0.35195720784848739,
0.1759786039123464,
0.087989301956173202,
0.043994650989983904,
0.021997325494991952,
0.010998662747495976,
0.005499331373747988,
0.002749665686873994,
0.001374832843436997,
0.00068741640982119352,
0.00034370821680790179,
0.00017185409650664589,
8.5927048253322947e-005,
4.2963524126661473e-005,
2.1481773960635764e-005,
1.0740886980317882e-005,
5.3704434901589409e-006 };
public static Point getOriginalPoint4490() {
return originalPoint4490;
}
public static double[] getRes4490() {
return res4490;
}
public static double[] getScale4490() {
return scale4490;
}
public static Point getOriginalPoint4236() {
return originalPoint4326;
}
public static double[] getRes4326() {
return res4326;
}
public static double[] getScale4326() {
return scale4326;
}
public static int getLevels() {
return levels;
}
public static int getDpi() {
return dpi;
}
public static int getTileWidth() {
return tileWidth;
}
public static int getTileHeight() {
return tileHeight;
}
}
......@@ -5,7 +5,8 @@ import android.os.Environment;
import android.util.Log;
import com.esri.core.geometry.Point;
import com.pashanhoo.landsurvey.layers.tianditu.TDTTileinfo;
import com.pashanhoo.landsurvey.layers.tianditu.TianDiTuLocalTiledMapServiceLayer;
import com.pashanhoo.landsurvey.layers.tianditu.TianDiTuTiledMapServiceLayer;
import java.io.File;
......@@ -22,7 +23,7 @@ public class AppInfo {
// 天安门广场
public static Point initPoint = new Point(118.778644, 32.05212);
public static double initRes = TDTTileinfo.getRes4490()[17];
public static double initRes = TianDiTuTiledMapServiceLayer.getRes(17);
// public static double initRes = TDTTileinfo.getRes4326()[6];
......