Revision 1417
org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.app/org.gvsig.raster.tools.app.basic/src/main/java/org/gvsig/raster/tools/app/basic/raster/gui/wizard/PrepareLayerAskProjection.java | ||
---|---|---|
76 | 76 |
|
77 | 77 |
if (Configuration.getValue("general_ask_projection", Boolean.valueOf(false)).booleanValue()) { |
78 | 78 |
IProjection proj = readProjection(dataStore); |
79 |
if(proj != null) |
|
79 |
if(proj != null) {
|
|
80 | 80 |
((RasterDataParameters)storeParameters).setDynValue("CRS", proj); |
81 |
compareProjections(proj, context.getViewProjection(), dataStore); |
|
81 |
compareProjections(proj, context.getViewProjection(), dataStore); |
|
82 |
} |
|
82 | 83 |
} |
83 | 84 |
|
84 | 85 |
if(dataStore != null) |
... | ... | |
156 | 157 |
}*/ |
157 | 158 |
} |
158 | 159 |
} else if(repOption == RasterDataParameters.REPROJECT_VIEW) { |
159 |
if (lyrRaster != null) {
|
|
160 |
try {
|
|
160 |
try {
|
|
161 |
if (lyrRaster != null && lyrRaster.readProjection() != null) {
|
|
161 | 162 |
context.getMapControl().setProjection(lyrRaster.readProjection()); |
162 |
} catch (RasterDriverException e) { |
|
163 |
RasterToolsUtil.messageBoxError("Error reading the projection", null, e); |
|
163 |
lyrRaster.setVisible(true); |
|
164 | 164 |
} |
165 |
lyrRaster.setVisible(true); |
|
165 |
} catch (RasterDriverException e) { |
|
166 |
RasterToolsUtil.messageBoxError("Error reading the projection", null, e); |
|
166 | 167 |
} |
167 | 168 |
} else if(repOption == RasterDataParameters.DONT_CHANGE_PROJECTION) { |
168 | 169 |
lyrRaster.setVisible(true); |
Also available in: Unified diff