Revision 1848 branches/Fmap_GisPlanet/libraries/libFMap/src/com/iver/cit/gvsig/fmap/demo/ImageFrame.java
ImageFrame.java | ||
---|---|---|
52 | 52 |
import org.cresques.cts.IProjection; |
53 | 53 |
import org.cresques.cts.ProjectionPool; |
54 | 54 |
|
55 |
import com.hardcode.driverManager.DriverLoadException; |
|
55 | 56 |
import com.iver.cit.gvsig.fmap.DriverException; |
56 | 57 |
import com.iver.cit.gvsig.fmap.FMap; |
57 | 58 |
import com.iver.cit.gvsig.fmap.MapControl; |
58 | 59 |
import com.iver.cit.gvsig.fmap.ViewPort; |
60 |
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver; |
|
59 | 61 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
60 | 62 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
61 | 63 |
|
... | ... | |
90 | 92 |
LayerFactory.setDriversPath( |
91 | 93 |
"d:/java/eclipse30/eclipse/workspace/Andami/gvSIG/extensiones/com.iver.cit.gvsig/drivers"); |
92 | 94 |
|
93 |
l = LayerFactory.createLayer("Provin", "gvSIG shp driver", |
|
95 |
l = LayerFactory.createLayer("Provin", |
|
96 |
(VectorialFileDriver) LayerFactory.getDM().getDriver("gvSIG shp driver"), |
|
94 | 97 |
new File("C:/Documents and Settings/fjp/Mis documentos/provin.shp"), |
95 | 98 |
ProjectionPool.get("EPSG:23030")); |
96 | 99 |
|
... | ... | |
107 | 110 |
getJContentPane().add(lbl, java.awt.BorderLayout.CENTER); |
108 | 111 |
} catch (DriverException e) { |
109 | 112 |
e.printStackTrace(); |
113 |
} catch (DriverLoadException e) { |
|
114 |
e.printStackTrace(); |
|
110 | 115 |
} |
111 | 116 |
|
112 | 117 |
|
Also available in: Unified diff