コード例 #1
0
 @Override
 public PropertyDescriptor getDescriptor(Name name) {
   if (name.equals(ComplexFeatureConstants.FEATURE_CHAINING_LINK_NAME)) {
     return ComplexFeatureConstants.FEATURE_CHAINING_LINK;
   }
   return super.getDescriptor(name);
 }
コード例 #2
0
  public Function function(Name processName, List<Expression> args, Literal fallback) {
    // if the param function just return it
    if (processName.equals(new NameImpl(ParameterFunction.NAME))) {
      return new ParameterFunction(fallback, args);
    }

    // lookup the process
    if (functionNames == null) {
      init();
    }

    if (!processToFunction.containsKey(processName)) {
      // no such function
      return null;
    } else {
      // wrap the process
      org.geotools.process.Process process = Processors.createProcess(processName);
      Map<String, Parameter<?>> parameters = Processors.getParameterInfo(processName);
      if (process instanceof RenderingProcess) {
        return new RenderingProcessFunction(
            processName.getLocalPart(),
            processName,
            args,
            parameters,
            (RenderingProcess) process,
            fallback);
      } else {
        return new ProcessFunction(
            processName.getLocalPart(), processName, args, parameters, process, fallback);
      }
    }
  }