Revision 354 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerFactory.java
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