Revision 5472 org.gvsig.raster.tools/branches/org.gvsig.raster.tools_proyeccion_al_vuelo/org.gvsig.raster.tools.app.basic/src/main/java/org/gvsig/raster/tools/app/basic/tool/layerdatatype/ProcessEndActions.java
ProcessEndActions.java | ||
---|---|---|
42 | 42 |
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException; |
43 | 43 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
44 | 44 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
45 |
import org.gvsig.fmap.mapcontext.layers.FLyrDefault; |
|
45 | 46 |
import org.gvsig.raster.algorithm.process.IProcessActions; |
46 | 47 |
import org.gvsig.raster.swing.RasterSwingLibrary; |
47 | 48 |
import org.gvsig.raster.swing.RasterSwingLocator; |
... | ... | |
136 | 137 |
|
137 | 138 |
ProviderServices provServ = RasterLocator.getManager().getProviderServices(); |
138 | 139 |
RasterDataParameters storeParameters = provServ.createParameters(fileName); |
139 |
URI uri; |
|
140 |
try { |
|
141 |
uri = new URI(fileName); |
|
142 |
} catch (URISyntaxException e1) { |
|
143 |
throw new RasterNotLoadException("Can't create URI from "+fileName, e1); |
|
144 |
} |
|
145 |
storeParameters.setURI(uri); |
|
140 |
File file = new File(fileName); |
|
141 |
storeParameters.setURI(file.toURI()); |
|
146 | 142 |
|
147 | 143 |
MapContextManager mcm = MapContextLocator.getMapContextManager(); |
148 | 144 |
|
Also available in: Unified diff