rootNode.setCore(0, newCore);
} catch (MalformedURLException e2) {
e2.printStackTrace();
}
try {
Geometry2D3D gSphere = Geometry2D3DFactory.getFactory().getGeometry("sphere");
url = ((ConnectionURL) gmt.getHeightfieldConnections().getConnections().get(0)).getUrl();
/* create HeightfieldTree, it automatically downloads the root node */
htree = new HeightfieldTree(new URL(source, url).toString(), gSphere, 6378140. / Global.heightfieldmultiplier);