Revision 320 org.gvsig.projection.jcrs/trunk/org.gvsig.projection.jcrs/org.gvsig.projection.app.jcrs/org.gvsig.projection.app.jcrs.common/src/main/java/org/gvsig/crs/gui/panels/TransformationRecentsPanel.java
TransformationRecentsPanel.java | ||
---|---|---|
211 | 211 |
ICrs crs = null; |
212 | 212 |
String[] sourceAuthority = getSourceAbrev().split(":"); |
213 | 213 |
try { |
214 |
//crs = new CrsFactory().getCRS(getCode(), getWKT(),getParams()); |
|
215 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode()); |
|
216 |
crs.setTransformationParams(getParams(),null); |
|
214 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode(),getParams(),null); |
|
217 | 215 |
} catch (CrsException e) { |
218 | 216 |
logger.info("Can't create CRS with authority '"+sourceAuthority[0]+"', code "+getCode()+" and transformation source params '"+getParams()+"'.",e); |
219 | 217 |
} |
... | ... | |
273 | 271 |
} |
274 | 272 |
|
275 | 273 |
try { |
276 |
crs = new CrsFactory().getCRS(getSourceAbrev()); |
|
277 |
crs.setTransformationParams(sourceTransformation,targetTransformation);//nadFile); |
|
274 |
crs = new CrsFactory().getCRS(getSourceAbrev(),sourceTransformation,targetTransformation); |
|
278 | 275 |
return crs; |
279 | 276 |
} catch (org.gvsig.crs.CrsException e) { |
280 | 277 |
logger.info("Can't create CRS with '"+getSourceAbrev()+"' and transformation params source '"+sourceTransformation+" and target'"+targetTransformation+"'.",e); |
... | ... | |
300 | 297 |
if (getCode() == codigoNad){ |
301 | 298 |
try { |
302 | 299 |
setNad(false); |
303 |
//Siempre EPSG porque solo permitimos transformaciones |
|
304 |
//en el caso en que source y target sean de la EPSG |
|
305 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode()); |
|
306 |
crs.setTransformationParams(params,null);//nadFile); |
|
300 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode(),params,null); |
|
307 | 301 |
return crs; |
308 | 302 |
} catch (org.gvsig.crs.CrsException e) { |
309 | 303 |
logger.info("Can't create CRS with authority '"+sourceAuthority[0]+"', code "+getCode()+" and transformation source params '"+params+" .",e); |
... | ... | |
313 | 307 |
else { |
314 | 308 |
setNad(true); |
315 | 309 |
try { |
316 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode()); |
|
317 |
crs.setTransformationParams(null,params);//nadFile); |
|
318 |
|
|
310 |
crs = new CrsFactory().getCRS(sourceAuthority[0]+":"+getCode(),null,params); |
|
319 | 311 |
return crs; |
320 | 312 |
} catch (CrsException e) { |
321 | 313 |
logger.info("Can't create CRS with authority '"+sourceAuthority[0]+"', code "+getCode()+" and transformation target params '"+params+" .",e); |
Also available in: Unified diff