DatasourceConnectionInfo dsInfo = new DatasourceConnectionInfo();
String url2 = "http://t0.tianditu.com/cia_c/wmts?tk=87c70883ade017002d5f2345ff079a3f";
dsInfo.setServer(url2);
dsInfo.setAlias("TianDiTu2");
dsInfo.setEngineType(EngineType.OGC);
dsInfo.setDriver("WMTS");
Datasource ds = m_workspace.getDatasources().open(dsInfo);
DatasourceConnectionInfo dsInfo1 = new DatasourceConnectionInfo();
dsInfo1.setServer(rootPath+"/SampleData/GeometryInfo/world.smwu");
Log.i("lvjian","address========>"+rootPath+"/SampleData/GeometryInfo/world.udb");
dsInfo1.setEngineType(EngineType.UDB);
Datasource ds1 = m_workspace.getDatasources().open(dsInfo1);
Datasource datasource = m_workspace.getDatasources().open(wmsInfo);
if (datasource != null) {
// m_mapControl.getMap().getLayers().add(datasource.getDatasets().get(0), true);
m_mapControl.getMap().getLayers().add(ds.getDatasets().get(0), true);
m_mapControl.getMap().getLayers().add(ds1.getDatasets().get(0),true);
m_mapControl.getMap().setCenter(new Point2D(117.25, 31.89));
m_mapControl.getMap().setScale(1 / 12322.6);
m_mapControl.getMap().refresh();
m_mapControl.getMap().setVisibleScalesEnabled(true);
}