例子演示创建一条线
private void CreateLineLayer() {
UI.runOnRenderThread(new Runnable() {
@Override
public void run() {
ILineString iLineString = ISGWorld.getInstance().getCreator().getGeometryCreator().CreateLineStringGeometry(new double[]{6.0, 6.0, 0, 11.0, 6.0, 0});//double必须小写,要不然报错根本找不到原因!!!
ITerrainPolyline iTerrainPolyline = ISGWorld.getInstance().getCreator().CreatePolyline(iLineString.CastTo(IGeometry.class), "#ff8040", AltitudeTypeCode.ATC_ON_TERRAIN, "");
iTerrainPolyline.getLineStyle().setWidth(100);
iTerrainPolyline.getLineStyle().setPattern(0xFFFFFFFF);
ISGWorld.getInstance().getNavigate().FlyTo(iTerrainPolyline);
}
});
}