Revision 3301 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
70 | 70 |
import com.iver.cit.gvsig.fmap.drivers.DriverAttributes; |
71 | 71 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
72 | 72 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDatabaseDriver; |
73 |
import com.iver.cit.gvsig.fmap.drivers.VectorialDriver; |
|
73 | 74 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.AlphanumericData; |
74 | 75 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.ClassifiableVectorial; |
75 | 76 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Labelable; |
... | ... | |
87 | 88 |
import com.iver.cit.gvsig.fmap.rendering.LegendFactory; |
88 | 89 |
import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend; |
89 | 90 |
import com.iver.cit.gvsig.fmap.rendering.VectorialLegend; |
91 |
import com.iver.utiles.IPersistance; |
|
90 | 92 |
import com.iver.utiles.PostProcessSupport; |
91 | 93 |
import com.iver.utiles.XMLEntity; |
92 | 94 |
import com.vividsolutions.jts.geom.Coordinate; |
... | ... | |
517 | 519 |
throw new XMLException(e); |
518 | 520 |
} |
519 | 521 |
xml.addChild(dbDriver.getXMLEntity()); // Tercer child. Antes hemos metido la leyenda y el selection support |
522 |
} else if (source instanceof VectorialAdapter) { |
|
523 |
// Se supone que hemos hecho algo gen?rico. |
|
524 |
xml.putProperty("type", "vectorial"); |
|
525 |
|
|
526 |
VectorialDriver driver = (VectorialDriver) source.getDriver(); |
|
527 |
|
|
528 |
// Guardamos el nombre del driver para poder recuperarlo |
|
529 |
// con el DriverManager de Fernando. |
|
530 |
xml.putProperty("other", driver.getName()); |
|
531 |
try { |
|
532 |
xml.putProperty("recordset-name", getRecordset().getName()); |
|
533 |
} catch (DriverException e) { |
|
534 |
throw new XMLException(e); |
|
535 |
} |
|
536 |
if (driver instanceof IPersistance) |
|
537 |
{ |
|
538 |
xml.putProperty("className", driver.getClass().getName()); |
|
539 |
IPersistance persist = (IPersistance) driver; |
|
540 |
xml.addChild(persist.getXMLEntity()); // Tercer child. Antes hemos metido la leyenda y el selection support |
|
541 |
} |
|
520 | 542 |
} else if (source instanceof WFSAdapter) { |
521 | 543 |
} |
522 | 544 |
xml.putProperty("driverName", getSource().getDriver().getName()); |
Also available in: Unified diff