/** * Simple process with a {@link ReferencedEnvelope} as the output * * @author Andrea Aime */ @DescribeProcess(title = "Bounds", description = "Computes the bounding box of the input features.") public class BoundsProcess implements VectorProcess { @DescribeResult(name = "bounds", description = "Bounding box of input features") public ReferencedEnvelope execute( @DescribeParameter(name = "features", description = "Input feature collection") FeatureCollection features) { return features.getBounds(); } }
public String getVersion(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return info.version(); } else { return null; } }
public InternationalString getDescription(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return new SimpleInternationalString(info.description()); } else { return null; } }
public InternationalString getTitle(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return new SimpleInternationalString(info.title()); } else { return null; } }
public InternationalString getDescription(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return new SimpleInternationalString(info.description()); } else { return null; } }
public InternationalString getTitle(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return new SimpleInternationalString(info.title()); } else { return null; } }
/** * Counts the elements in the collection (useful as a WFS sidekick) * * @author Andrea Aime */ @DescribeProcess( title = "Count Features", description = "Computes the number of features in a feature collection." ) public class CountProcess implements VectorProcess { /** The functions this process can handle */ public enum AggregationFunction { Average, Max, Median, Min, StdDev, Sum; } @DescribeResult(name = "result", description = "Number of features") public Number execute( @DescribeParameter(name = "features", description = "Input feature collection") SimpleFeatureCollection features) throws Exception { return features.size(); } }
public String getVersion(Name name) { DescribeProcess info = getProcessDescription(name); if (info != null) { return info.version(); } else { return null; } }
@DescribeProcess( title = "Style Coverage", description = "Styles a raster using a given SLD and raster symbolizer."
@DescribeProcess( title = "Normalize Coverage", description = "Normalizes a coverage by dividing values by the max value"
@DescribeProcess( title = "Query", description =
@DescribeProcess( title = "Rectangular Clip", description = "Clips (crops) features to the specified rectangular extent"
@DescribeProcess( title = "Add Coverages", description =
@DescribeProcess( title = "Scale Coverage", description = "Returns a scaled and translated version of a given raster"
@DescribeProcess( title = "Collect Geometries", description =
@DescribeProcess( title = "Crop Coverage", description = "Returns the portion of a raster bounded by a given geometry."
@DescribeProcess( title = "Reproject Features", description =
@DescribeProcess( title = "Multiply Coverages", description =
@DescribeProcess( title = "Feature from Geometry", description = "Converts a geometry into a feature collection."
@DescribeProcess( title = "Unique", description = "Returns the unique values of a given attribute in a feature collection."