Revision 354
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrDefault.java | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import java.beans.PropertyChangeSupport; |
5 | 5 |
|
6 |
import org.cresques.cts.ICoordTrans; |
|
6 | 7 |
import org.cresques.cts.IProjection; |
7 | 8 |
|
8 | 9 |
import com.iver.cit.gvsig.fmap.XMLEntity; |
... | ... | |
19 | 20 |
private LayerPath layerPath = new LayerPath(); |
20 | 21 |
private FLayers root=null; |
21 | 22 |
private String name; |
23 |
private IProjection projection; |
|
22 | 24 |
|
23 | 25 |
/** |
24 | 26 |
* Las propiedades que se deben devolver aqu? son la propiedad selected y |
... | ... | |
100 | 102 |
public void setRoot(FLayers root){ |
101 | 103 |
this.root=root; |
102 | 104 |
} |
105 |
|
|
106 |
public void setProjection(IProjection proj){ |
|
107 |
projection = proj; |
|
108 |
} |
|
109 |
/** |
|
110 |
* @see org.cresques.geo.Projected#getProjection() |
|
111 |
*/ |
|
112 |
public IProjection getProjection() { |
|
113 |
return projection; |
|
114 |
} |
|
115 |
/** |
|
116 |
* @see org.cresques.geo.Projected#reProject(org.cresques.cts.ICoordTrans) |
|
117 |
*/ |
|
118 |
public void reProject(ICoordTrans arg0) { |
|
119 |
} |
|
103 | 120 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrComplexRaster.java | ||
---|---|---|
7 | 7 |
import java.awt.image.BufferedImage; |
8 | 8 |
import java.util.BitSet; |
9 | 9 |
|
10 |
import org.cresques.cts.ICoordTrans; |
|
11 |
import org.cresques.cts.IProjection; |
|
12 |
|
|
10 | 13 |
import com.iver.cit.gvsig.fmap.ViewPort; |
11 | 14 |
import com.iver.cit.gvsig.fmap.XMLEntity; |
12 | 15 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
... | ... | |
140 | 143 |
*/ |
141 | 144 |
public void setRasterLegend(RasterLegend legend) { |
142 | 145 |
} |
146 |
|
|
147 |
/** |
|
148 |
* @see org.cresques.geo.Projected#reProject(org.cresques.cts.ICoordTrans) |
|
149 |
*/ |
|
150 |
public void reProject(ICoordTrans arg0) { |
|
151 |
} |
|
143 | 152 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerFactory.java | ||
---|---|---|
54 | 54 |
* |
55 | 55 |
* @return DOCUMENT ME! |
56 | 56 |
*/ |
57 |
public static FLyrVect createLayer(VectorialFileDriver driver, File f) { |
|
57 |
public static FLyrVect createLayer(VectorialFileDriver driver, File f, IProjection proj) {
|
|
58 | 58 |
//TODO Comprobar si hay un adaptador ya |
59 | 59 |
VectorialFileAdapter adapter = new VectorialFileAdapter(f); |
60 | 60 |
adapter.setDriver(driver); |
... | ... | |
65 | 65 |
if (false) { |
66 | 66 |
} else { |
67 | 67 |
capa.setSource(adapter); |
68 |
capa.setProjection(proj); |
|
68 | 69 |
} |
69 | 70 |
|
70 | 71 |
return capa; |
... | ... | |
82 | 83 |
* |
83 | 84 |
* @throws UnsupportedOperationException DOCUMENT ME! |
84 | 85 |
*/ |
85 |
public static FLyrVect createLayer(WFSDriver driver, URL host) { |
|
86 |
public static FLyrVect createLayer(WFSDriver driver, URL host, IProjection proj) {
|
|
86 | 87 |
throw new UnsupportedOperationException(); |
87 | 88 |
} |
88 | 89 |
|
... | ... | |
99 | 100 |
* @throws UnsupportedOperationException DOCUMENT ME! |
100 | 101 |
*/ |
101 | 102 |
public static FLyrVect createLayer(VectorialDatabaseDriver driver, |
102 |
String connectionString) { |
|
103 |
String connectionString, IProjection proj) {
|
|
103 | 104 |
throw new UnsupportedOperationException(); |
104 | 105 |
} |
105 | 106 |
|
... | ... | |
129 | 130 |
* @throws IllegalArgumentException Si se pasa un driver que no implementa |
130 | 131 |
* GeorreferencedRasterDriver o NotGeorreferencedRasterDriver |
131 | 132 |
*/ |
132 |
public static void createLayer(RasterDriver driver, File f) |
|
133 |
public static void createLayer(RasterDriver driver, File f, IProjection proj)
|
|
133 | 134 |
throws IllegalArgumentException { |
134 | 135 |
} |
135 | 136 |
} |
Also available in: Unified diff