Arcgis For Android 加载天地图(拥有缓存功能)

      天地图做为国家发布的地理信息公共服务平台,“天地图”网站装载了覆盖全球的地理信息数据,这些数据以矢量、影像、三维3种模式全方位、多角度展现,可漫游、能缩放,具有多类型全面的地理信息服务。

那怎么在Android程序中使用呢?

常量类:

public class TDTConstant {

    public static final String LAYER_NAME_VECTOR = "vec";
    public static final String LAYER_NAME_VECTOR_ANNOTATION_CHINESE = "cva";
    public static final String LAYER_NAME_VECTOR_ANNOTATION_ENGLISH = "eva";
    public static final String LAYER_NAME_IMAGE = "img";
    public static final String LAYER_NAME_IMAGE_ANNOTATION_CHINESE = "cia";
    public static final String LAYER_NAME_IMAGE_ANNOTATION_ENGLISH = "eia";
    public static final String LAYER_NAME_TERRAIN = "ter";
    public static final String LAYER_NAME_TERRAIN_ANNOTATION_CHINESE = "cta";

    public static final String TILE_MATRIX_SET_MERCATOR = "w";
    public static final String TILE_MATRIX_SET_2000 = "c";

    public static final Point ORIGIN_2000 = new Point(-180 + 0.000160, 90 - 0.000110);
    public static final Point ORIGIN_MERCATOR = new Point(-20037508.3427892, 20037508.3427892);

    public static final int SRID_2000 = 4490;
    public static final int SRID_MERCATOR = 102100;

    public static final double X_MIN_2000 = -180;
    public static final double Y_MIN_2000 = -90;
    public static final double X_MAX_2000 = 180;
    public static final double Y_MAX_2000 = 90;

    public static final double X_MIN_MERCATOR = -20037508.3427892;
    private static final double Y_MIN_MERCATOR = -20037508.3427892;
    public static final double X_MAX_MERCATOR = 20037508.3427892;
    public static final double Y_MAX_MERCATOR = 20037508.3427892;

    public static final int tileWidth = 256;
    public static final int tileHeight = 256;

    public static final int dpi = 96;

    public static final double[] SCALES = { 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};//,2254.467762533835, 1127.2338812669175, 563.616940

// //错误   public static final double[] RESOLUTIONS_MERCATOR = { 78271.51696402048, 39135.75848201024, 19567.87924100512, 9783.93962050256, 4891.96981025128, 2445.98490512564, 1222.99245256282,
//            611.49622628141, 305.748113140705, 152.8740565703525, 76.43702828517625, 38.21851414258813, 19.109257071294063, 9.554628535647032, 4.777314267823516, 2.388657133911758, 1.194328566955879,
//            0.5971642834779395 };


    public static final double[] RESOLUTIONS_2000 = { 1.40625, 0.703125, 0.3515625, 0.17578125,
            0.087890625, 0.04394531
  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 8
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值