Revision 11286 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerFactory.java
LayerFactory.java | ||
---|---|---|
53 | 53 |
import com.hardcode.driverManager.DriverLoadException; |
54 | 54 |
import com.hardcode.driverManager.DriverManager; |
55 | 55 |
import com.hardcode.driverManager.WriterManager; |
56 |
import com.hardcode.gdbms.driver.exceptions.FileNotFoundDriverException; |
|
57 | 56 |
import com.hardcode.gdbms.driver.exceptions.InitializeDriverException; |
58 |
import com.hardcode.gdbms.driver.exceptions.OpenDriverException; |
|
59 | 57 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
60 |
import com.hardcode.gdbms.driver.exceptions.UnsupportedVersionDriverException; |
|
61 | 58 |
import com.hardcode.gdbms.driver.exceptions.WriteDriverException; |
62 | 59 |
import com.hardcode.gdbms.engine.customQuery.QueryManager; |
63 | 60 |
import com.hardcode.gdbms.engine.data.DataSource; |
... | ... | |
184 | 181 |
// TODO Comprobar si hay un adaptador ya |
185 | 182 |
VectorialFileAdapter adapter = new VectorialFileAdapter(f); |
186 | 183 |
adapter.setDriver(d); |
184 |
|
|
185 |
//TODO azo: adapter needs a reference to projection and to spatial index (review) |
|
186 |
adapter.setProjection(proj); |
|
187 | 187 |
|
188 |
|
|
189 | 188 |
layer.setName(layerName); |
190 | 189 |
|
191 | 190 |
// TODO Meter esto dentro de la comprobaci?n de si hay memoria |
... | ... | |
284 | 283 |
adapter = new VectorialDefaultAdapter(); |
285 | 284 |
} |
286 | 285 |
adapter.setDriver((VectorialDriver) d); |
287 |
|
|
286 |
//TODO azo:adapter needs a reference to the projection |
|
287 |
adapter.setProjection(proj); |
|
288 |
|
|
288 | 289 |
FLyrVect layer = new FLyrVect(); |
289 | 290 |
layer.setName(layerName); |
290 | 291 |
|
... | ... | |
434 | 435 |
FLyrVect layer = new FLyrVect(); |
435 | 436 |
VectorialAdapter adapter = new VectorialDBAdapter(); |
436 | 437 |
adapter.setDriver(driver); |
438 |
adapter.setProjection(proj); |
|
437 | 439 |
|
438 | 440 |
layer.setName(layerName); |
439 | 441 |
layer.setSource(adapter); |
Also available in: Unified diff