Revision 3462 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLayers.java

View differences:

FLayers.java
62 62
import com.iver.cit.gvsig.fmap.DriverException;
63 63
import com.iver.cit.gvsig.fmap.FMap;
64 64
import com.iver.cit.gvsig.fmap.ViewPort;
65
import com.iver.cit.gvsig.fmap.drivers.DefaultDBDriver;
65 66
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
66 67
import com.iver.cit.gvsig.fmap.drivers.VectorialDatabaseDriver;
67 68
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver;
......
674 675
                            VectorialDatabaseDriver driver;
675 676
                            try {
676 677
                                driver = (VectorialDatabaseDriver) LayerFactory.getDM().getDriver(driverName);
677
                                driver.setXMLEntity(xml.getChild(i).getChild(2));                            
678
                                //Hay que separar la carga de los datos del XMLEntity del load.
679
                                driver.setXMLEntity(xml.getChild(i).getChild(2));
680
                                
678 681
                                layer = LayerFactory.createDBLayer(driver, s[i], proj);
682
                                
679 683
                            } catch (DriverLoadException e) {
680 684
                                e.printStackTrace();
681 685
                                throw new XMLException(e);
682
                            }                                                                                                                 
686
                            }  
687
                            
683 688
                        }
684 689
                        // Clases con algun driver gen?rico creado por otro
685 690
                        // programador
......
824 829
                        }
825 830
                    }        
826 831
                }catch (Exception e) {
827
                	
832
                	layer.setActive(false);
833
					layer.setVisible(false);
834
					this.addLayer(layer);
835
					//throw new XMLException(e);
828 836
                    System.err.println("No se ha podido cargar la capa : "+xml.getChild(i).getStringProperty("name"));
829 837
                    
830 838
                }    

Also available in: Unified diff