IlvInformixConnectionInfo cx = new IlvInformixConnectionInfo(); cx.setHostName("server_hostname"); cx.setHostPort("9088"); cx.setUser("an_informix_user"); cx.setServer("informix_server_name"); cx.setPassword("password"); cx.setDatabaseName("database_name");
// we want to fetch layer "AN_INFORMIX_USER.WORLD.GEOM.SRID=0" String layerName="AN_INFORMIX_USER.WORLD.GEOM.SRID=0"; IlvInformixDataSource dataSource=new IlvInformixDataSource(cx, layerName);
boolean useTiling = true; int rowCount = 5; int columnCount = 5; dataSource.setTilingParameters(useTiling, rowCount, columnCount);
dataSource.setManager(getView().getManager());
IlvMapLayerTreeModel mltm = IlvMapLayerTreeProperty.GetMapLayerTreeModel(v.getManager()); mltm.addChild(null, dataSource.getInsertionLayer());
IlvMapDataSourceModel dataSourceModel = IlvMapDataSourceProperty.GetMapDataSourceModel(manager); dataSourceModel.insert(dataSource);
IlvDBConnectionInfo cx=…; String[] layersList = cx.getSpatiallyEnabledTableNames();