Revision 6164 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/demo/MapImage.java
MapImage.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
import javax.swing.JFrame; |
50 | 50 |
|
51 |
import org.cresques.cts.ProjectionPool; |
|
52 |
|
|
53 | 51 |
import com.hardcode.driverManager.DriverLoadException; |
54 | 52 |
import com.iver.cit.gvsig.fmap.DriverException; |
55 | 53 |
import com.iver.cit.gvsig.fmap.MapControl; |
54 |
import com.iver.cit.gvsig.fmap.crs.CRSFactory; |
|
56 | 55 |
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver; |
57 | 56 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
58 | 57 |
import com.iver.cit.gvsig.fmap.layers.LayerFactory; |
... | ... | |
108 | 107 |
FLayer l = LayerFactory.createLayer("Vias", |
109 | 108 |
(VectorialFileDriver) LayerFactory.getDM().getDriver("gvSIG shp driver"), |
110 | 109 |
new File("C:/Documents and Settings/fernando/Mis documentos/vias.shp"), |
111 |
ProjectionPool.get("EPSG:23030"));
|
|
110 |
CRSFactory.getCRS("EPSG:23030"));
|
|
112 | 111 |
newMapControl.getMapContext().getLayers().addLayer(l); |
113 | 112 |
newMapControl.addMapTool("zoom", new RectangleBehavior(new ZoomInListenerImpl(newMapControl))); |
114 | 113 |
newMapControl.setTool("zoom"); |
Also available in: Unified diff