Worldwindjava 更新版本需要注意的问题

从2.0升级到2.1

模块引入问题

作为module载入intellij中,删除对xerces_2_5_0.jar的引用

代码修订

package gov.nasa.worldwindx.applications.worldwindow.features.swinglayermanager

1.LayerManagerPanel

private LayerTree layerTree;
private boolean on = false;
变为 protected

package gov.nasa.worldwind.layers.mercator

主要用于对MercatorTiledImageLayer图层数据的批量下载

1.BasicMercatorTiledImageLayer

private static class DownloadPostProcessor implements
变为public
该类中的private final MercatorTextureTile tile;变更为protected

private final Object fileLock = new Object();
变为public
private boolean isTextureExpired(
变为public

2.MercatorTiledImageLayer

private final LevelSet levels;
变为protected
protected LevelSet getLevels()
变为public

public int computeLevelForResolution(Sector sector, Globe globe,
double resolution)
注释掉参数Globe globe及其后的内容
if (globe == null)
{
String message = Logging.getMessage(“nullValue.GlobeIsNull”);
Logging.logger().severe(message);
throw new IllegalStateException(message);
}

package gov.nasa.worldwind

主要用于自定义模型中,如果不需要自定义模型,没有必要进行修订

1.BasicModel
构造函数中,
if (globeName == null)
return;

变更为
if (globeName == null || globeName == “”)
return;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值