Note that there are some explanatory texts on larger screens.

plurals
  1. POwhich jar file contain net.opengis.wps.x100 and how can I download it?
    primarykey
    data
    text
    <p>I want to develope a wps process by 52 north and I shoud use <code>org.n52.wps.server.AbstractSelfDescribingAlgorithm</code> so this class is inherit from <code>net.opengis.wps.x100.ProcessDescriptionType</code>. My question is that which jar file contain this type and please tell me the url for download this jar file?! My code is:</p> <pre><code>package www.gise.cse.iitb.ac.in; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.n52.wps.io.data.IData; import org.n52.wps.io.data.binding.literal.LiteralDoubleBinding; import org.n52.wps.server.AbstractSelfDescribingAlgorithm; public class AddNumbersAlgo extends org.n52.wps.server.AbstractSelfDescribingAlgorithm { @Override public Class getInputDataType(String arg0) { // TODO Auto-generated method stub if (arg0.equals("Num1")){ //return GTVectorDataBinding.class; return LiteralDoubleBinding.class; } if (arg0.equals("Num2")){ //return GTVectorDataBinding.class; return LiteralDoubleBinding.class; } throw new RuntimeException("Error: WrongIdentifier"); } @Override public Class getOutputDataType(String arg0) { // TODO Auto-generated method stub if(arg0.equals("AdditionResult")){ return LiteralDoubleBinding.class; } throw new RuntimeException("Error: Wrong identifier"); } @Override public Map&lt;String, IData&gt; run(Map&lt;String, List&lt;IData&gt;&gt; arg0) { if (arg0 == null || !arg0.containsKey("Num1")){ throw new RuntimeException("Error: While allocating Input Parameters"); } if (arg0 == null || !arg0.containsKey("Num2")){ throw new RuntimeException("Error: While allocating Input Parameters"); } List&lt;IData&gt; datalist = arg0.get("Num1"); if(datalist == null || datalist.size()!=1){ throw new RuntimeException("Error:While allocating Input Parameters"); } //Checking for correctness of input List&lt;IData&gt; datalist1 = arg0.get("Num2"); if(datalist1 == null || datalist1.size()!=1){ throw new RuntimeException("Error:While allocating Input Parameters"); } //Extracting input IData Num1 = datalist.get(0); double firstNum = ((LiteralDoubleBinding)Num1).getPayload(); System.out.println(Num1); System.out.println(firstNum); IData Num2 = datalist1.get(0); double secondNum = ((LiteralDoubleBinding)Num2).getPayload(); System.out.println(Num2); System.out.println(secondNum); double Result = firstNum + secondNum; //double AdditionResult; //create the response. In this case a GenericFileDataBinding is used (see this.getOutputDataType(...) IData AdditionResult = new LiteralDoubleBinding(Result); //new Map created Map&lt;String, IData&gt; resultMap = new HashMap&lt;String, IData&gt;(); //created response added to corresponding identifier (see this.getOutputIdentifiers()) resultMap.put("AdditionResult", AdditionResult); return resultMap; } @Override public List&lt;String&gt; getInputIdentifiers() { // TODO Auto-generated method stub List&lt;String&gt; identifiers = new ArrayList&lt;String&gt;(); identifiers.add("Num1"); identifiers.add("Num2"); return identifiers; } @Override public List&lt;String&gt; getOutputIdentifiers() { // TODO Auto-generated method stub List&lt;String&gt; identifiers = new ArrayList&lt;String&gt;(); identifiers.add("AdditionResult"); return identifiers; } </code></pre> <p>and error is: </p> <blockquote> <p>Multiple markers at this line</p> <ul> <li><p>The type <code>net.opengis.wps.x100.ProcessDescriptionType</code> cannot be resolved. It is indirectly referenced from required .class files</p></li> <li><p>The type <code>net.opengis.wps.x100.ProcessDescriptionType</code> cannot be resolved. It is indirectly referenced from required .class files</p></li> </ul> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload