Revision 172 org.gvsig.sextante/trunk/org.gvsig.sextante.app/org.gvsig.sextante.app.algorithm/org.gvsig.sextante.app.algorithm.reproject/src/main/java/org/gvsig/sextante/app/algorithm/reproject/ReprojectParametersPanel.java
ReprojectParametersPanel.java | ||
---|---|---|
32 | 32 |
import javax.swing.JLabel; |
33 | 33 |
import javax.swing.JPanel; |
34 | 34 |
|
35 |
import org.cresques.cts.IProjection; |
|
36 |
import org.gvsig.app.gui.panels.CRSSelectPanel; |
|
37 |
import org.gvsig.fmap.crs.CRSFactory; |
|
38 |
import org.gvsig.sextante.app.extension.core.CompositeSourceOutputChannel; |
|
39 |
import org.gvsig.sextante.app.extension.gui.AlgorithmOutputPanel; |
|
40 |
|
|
41 | 35 |
import es.unex.sextante.core.GeoAlgorithm; |
42 | 36 |
import es.unex.sextante.core.ObjectAndDescription; |
43 | 37 |
import es.unex.sextante.core.OutputObjectsSet; |
... | ... | |
48 | 42 |
import es.unex.sextante.gui.core.SextanteGUI; |
49 | 43 |
import es.unex.sextante.outputs.Output; |
50 | 44 |
|
45 |
import org.cresques.cts.IProjection; |
|
46 |
|
|
47 |
import org.gvsig.app.gui.panels.CRSSelectPanel; |
|
48 |
import org.gvsig.fmap.crs.CRSFactory; |
|
49 |
import org.gvsig.geoprocess.core.CompositeSourceOutputChannel; |
|
50 |
import org.gvsig.geoprocess.gui.AlgorithmOutputPanel; |
|
51 |
|
|
51 | 52 |
/** |
52 | 53 |
* Panel for reproject algorithm |
53 | 54 |
* @author <a href="mailto:nachobrodin@gmail.com">Nacho Brodin</a> |
... | ... | |
226 | 227 |
} |
227 | 228 |
|
228 | 229 |
@Override |
229 |
public boolean assignParameters() {
|
|
230 |
public void assignParameters() {
|
|
230 | 231 |
try { |
231 | 232 |
ParametersSet params = m_Algorithm.getParameters(); |
232 | 233 |
params.getParameter(ReprojectAlgorithm.LAYER).setParameterValue(getSelectedVectorLayer()); |
... | ... | |
237 | 238 |
OutputObjectsSet ooSet = m_Algorithm.getOutputObjects(); |
238 | 239 |
Output out = ooSet.getOutput(ReprojectAlgorithm.RESULT); |
239 | 240 |
out.setOutputChannel(new CompositeSourceOutputChannel(getAlgorithmOutputPanel().getOutputParameters())); |
240 |
return true; |
|
241 | 241 |
} catch (Exception e) { |
242 | 242 |
Sextante.addErrorToLog(e); |
243 |
return false; |
|
244 | 243 |
} |
245 | 244 |
} |
246 | 245 |
|
Also available in: Unified diff