Revision 966 org.gvsig.raster.tilecache/trunk/org.gvsig.raster.tilecache/org.gvsig.raster.tilecache.io/src/main/java/org/gvsig/raster/tilecache/io/TileProvider.java
TileProvider.java | ||
---|---|---|
51 | 51 |
import org.gvsig.fmap.dal.coverage.exception.ProcessInterruptedException; |
52 | 52 |
import org.gvsig.fmap.dal.coverage.exception.RasterDriverException; |
53 | 53 |
import org.gvsig.fmap.dal.coverage.exception.RemoteServiceException; |
54 |
import org.gvsig.fmap.dal.coverage.exception.RmfSerializerException; |
|
54 | 55 |
import org.gvsig.fmap.dal.coverage.store.parameter.MultiDimensionalStoreParameters; |
55 | 56 |
import org.gvsig.fmap.dal.coverage.store.parameter.RasterDataParameters; |
56 | 57 |
import org.gvsig.fmap.dal.coverage.store.parameter.RemoteStoreParameters; |
... | ... | |
93 | 94 |
import org.gvsig.raster.impl.store.properties.RemoteDataStoreStatistics; |
94 | 95 |
import org.gvsig.tools.ToolsLocator; |
95 | 96 |
import org.gvsig.tools.locator.LocatorException; |
97 |
import org.slf4j.Logger; |
|
98 |
import org.slf4j.LoggerFactory; |
|
96 | 99 |
|
97 | 100 |
/** |
98 | 101 |
* Provider for WMTS service |
... | ... | |
103 | 106 |
public static String NAME = "Tile Store"; |
104 | 107 |
public static String DESCRIPTION = "Raster Tiled Source"; |
105 | 108 |
public static final String METADATA_DEFINITION_NAME = "TileStore"; |
109 |
private static final Logger logger = LoggerFactory.getLogger(TileProvider.class); |
|
106 | 110 |
private RasterProvider provider = null; |
107 | 111 |
private boolean open = false; |
108 | 112 |
private Extent viewRequest = null; |
... | ... | |
218 | 222 |
if(!new File(path).exists() && |
219 | 223 |
provider != null && |
220 | 224 |
provider.getRMFFile() != null && |
221 |
new File(provider.getRMFFile()).exists()) |
|
225 |
new File(provider.getRMFFile()).exists())
|
|
222 | 226 |
RasterLocator.getManager().getFileUtils().copyFile(provider.getRMFFile(), path); |
227 |
|
|
228 |
if(provider != null && provider.getColorTable() != null) { |
|
229 |
ColorTable colorTable = provider.getColorTable(); |
|
230 |
RasterLocator.getManager().getProviderServices().saveObjectToRmfFile(path, ColorTable.class, colorTable); |
|
231 |
} |
|
223 | 232 |
} catch (LocatorException e) { |
224 |
//No copiamos el fichero pero no se hace nada
|
|
233 |
logger.info("No se ha podido copiar el fichero RMF a la capa tileada", e);
|
|
225 | 234 |
} catch (FileNotFoundException e) { |
226 |
//No copiamos el fichero pero no se hace nada
|
|
235 |
logger.info("No se ha podido copiar el fichero RMF a la capa tileada", e);
|
|
227 | 236 |
} catch (IOException e) { |
228 |
//No copiamos el fichero pero no se hace nada |
|
237 |
logger.info("No se ha podido copiar el fichero RMF a la capa tileada", e); |
|
238 |
} catch (RmfSerializerException e) { |
|
239 |
logger.info("No se ha podido copiar la tabla de color a la capa tileada", e); |
|
229 | 240 |
} |
230 | 241 |
return path; |
231 | 242 |
} |
... | ... | |
943 | 954 |
* the table from one tile because this is a property of a tile. The color table is sent to |
944 | 955 |
* the render with the data in a tile. |
945 | 956 |
*/ |
946 |
public ColorTable getColorTable() { |
|
957 |
/*public ColorTable getColorTable() {
|
|
947 | 958 |
return null; |
948 |
} |
|
959 |
}*/
|
|
949 | 960 |
|
950 | 961 |
/* |
951 | 962 |
* (non-Javadoc) |
Also available in: Unified diff