Revision 30499 branches/v2_0_0_prep/extensions/extRasterTools-SE/src/org/gvsig/rastertools/reproject/Reproject.java
Reproject.java | ||
---|---|---|
54 | 54 |
* M?todo para la transformaci?n del raster. |
55 | 55 |
* @param proj Proyecci?n destino |
56 | 56 |
*/ |
57 |
public void warp(IProjection proj, IProjection sourceSrs) throws ReprojectException {
|
|
57 |
public int warp(IProjection proj, IProjection sourceSrs) throws ReprojectException {
|
|
58 | 58 |
if (lyr == null) |
59 | 59 |
throw new ReprojectException("Capa no valida."); |
60 | 60 |
if (!lyr.isReproyectable()) |
... | ... | |
151 | 151 |
// ADRG_FORMAT = 27; // No reproyecta |
152 | 152 |
|
153 | 153 |
// warper.setFormat(27); |
154 |
warper.warp(epsg, source, pathDest, GeoRasterWriter.getWriter(pathDest).getDriverName()); |
|
155 |
} catch (GdalException e) { |
|
156 |
throw new ReprojectException("Error al reproyectar."); |
|
154 |
return warper.warp(epsg, source, pathDest, GeoRasterWriter.getWriter(pathDest).getDriverName()); |
|
157 | 155 |
} catch (NotSupportedExtensionException e) { |
158 | 156 |
throw new ReprojectException("Error al reproyectar."); |
159 | 157 |
} catch (RasterDriverException e) { |
Also available in: Unified diff