Il 07/07/2011 17.03, Nacho Uve ha scritto:
2011/7/7 Victor Olaya
Nacho,
I am afraid I need more information to reproduce the errors. This is
what I have tried.
1)I create a model which takes a DEM and calculates slope twice. I am
able to configure both executions of slope separately...
I realize that only happens when save and re-open the new model. Then
both algs share the same parameters when editing.
2)I creted a model that taes a vector layer and a field. Autoincrement
works fine. Then I remove the field and enter a fixed field name that
exists in the input layer and it also works fine.
Hummm... I test with the followed model:
1.- Create aleatory vector layer
2.- Add Field ("ID", Numeric, 5, Integer)
3.- Autoincrement with "ID"
And I get the following message:
java.util.concurrent.ExecutionException:
es.unex.sextante.exceptions.GeoAlgorithmExecutionException: ERROR: Field
ID not found in layer Result
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
Hi all,
I confirm the ExecutionException reported by Nacho obtained with the
recent nightly build. The model is in attachment. ;)
It seems that the fields of random layers are not recognized by the
following procedures.
Cheers,
Antonio
--
Antonio Falciano
http://www.linkedin.com/in/antoniofalciano
<?xml version='1.0' encoding='ISO-8859-1' standalone='yes' ?>
<model name="Nacho model" group="test">
<algorithm key="PROC0" alg_cmd_line_name="randomvector" coords="20,20,157,58">
<assignment key="COUNT" assigned_to="INNERPARAM0PROC0" />
<assignment key="TYPE" assigned_to="INNERPARAM1PROC0" />
</algorithm>
<algorithm key="PROC1" alg_cmd_line_name="vectoraddfield" coords="197,98,66,58">
<assignment key="INPUT" assigned_to="RESULTPROC0" />
<assignment key="FIELD_PRECISION" assigned_to="INNERPARAM3PROC1" />
<assignment key="FIELD_TYPE" assigned_to="INNERPARAM1PROC1" />
<assignment key="FIELD_LENGTH" assigned_to="INNERPARAM2PROC1" />
<assignment key="FIELD_NAME" assigned_to="INNERPARAM0PROC1" />
<assignment key="DEFAULT_VALUE" assigned_to="INNERPARAM4PROC1" />
</algorithm>
<algorithm key="PROC2" alg_cmd_line_name="autoincrementvalue" coords="299,187,123,58">
<assignment key="LAYER" assigned_to="RESULTPROC1" />
<assignment key="FIELD" assigned_to="INNERPARAM0PROC2" />
</algorithm>
<output key="RESULTPROC2" class="class es.unex.sextante.outputs.OutputVectorLayer" description="output" />
<data_object key="INNERPARAM4PROC1" value="0" description="String" />
<data_object key="INNERPARAM0PROC1" value="ID" description="String" />
<data_object key="INNERPARAM0PROC2" value="ID" description="Field" />
<data_object key="INNERPARAM0PROC0" value="100.0" description="Numerical Value" />
<data_object key="INNERPARAM1PROC1" value="0" description="Selection" />
<data_object key="INNERPARAM3PROC1" value="0.0" description="Numerical Value" />
<data_object key="INNERPARAM1PROC0" value="2" description="Selection" />
<data_object key="RESULTPROC0" value="class es.unex.sextante.modeler.elements.ModelElementVectorLayer,-1" description='"Result" from Process 0: Create random vector layer' />
<data_object key="RESULTPROC2" value="class es.unex.sextante.modeler.elements.ModelElementVectorLayer,-1" description='"Autoincrement Value" from Autoincrement Value' />
<data_object key="INNERPARAM2PROC1" value="3.0" description="Numerical Value" />
<data_object key="RESULTPROC1" value="class es.unex.sextante.modeler.elements.ModelElementVectorLayer,-1" description='"Result" from Process 1: Add field' />
</model>
<?xml version='1.0' encoding='ISO-8859-1' standalone='yes' ?>
_______________________________________________
Sextante-users mailing list
Sextante-users@lists.forge.osor.eu
https://lists.forge.osor.eu/listinfo/sextante-users