Revision 496 2.1/trunk/org.gvsig.view3d/org.gvsig.view3d.swing/org.gvsig.view3d.swing.impl/src/main/java/org/gvsig/view3d/swing/impl/data/DefaultElevationModel.java
DefaultElevationModel.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import gov.nasa.worldwind.avlist.AVKey; |
4 | 4 |
import gov.nasa.worldwind.avlist.AVList; |
5 |
import gov.nasa.worldwind.cache.FileStore; |
|
5 | 6 |
import gov.nasa.worldwind.data.RasterServer; |
6 | 7 |
import gov.nasa.worldwind.retrieve.RetrievalPostProcessor; |
7 | 8 |
import gov.nasa.worldwind.retrieve.Retriever; |
... | ... | |
55 | 56 |
throw new IllegalArgumentException(); |
56 | 57 |
} |
57 | 58 |
|
58 |
if (this.getDataFileStore() == null) {
|
|
59 |
if (params.getValue(AVKey.FILE_STORE) == null) {
|
|
59 | 60 |
LOG.error("Can not create raster server, file store is null"); |
60 | 61 |
throw new IllegalArgumentException(); |
61 | 62 |
} |
63 |
|
|
64 |
setDataFileStore((FileStore) params.getValue(AVKey.FILE_STORE)); |
|
62 | 65 |
|
63 | 66 |
String datasetName = params.getStringValue(AVKey.DATASET_NAME); |
64 | 67 |
if (WWUtil.isEmpty(datasetName)) { |
... | ... | |
98 | 101 |
|
99 | 102 |
final AVList rasterServerParams = params.copy(); |
100 | 103 |
|
101 |
rasterServerParams.setValue(AVKey.FILE_STORE, this.getDataFileStore()); |
|
102 |
|
|
103 | 104 |
RetrieverFactory retrieverFactory = new RetrieverFactory() { |
104 | 105 |
|
105 | 106 |
final protected RasterServer rasterServer = |
Also available in: Unified diff