Processes

This page documents the processes available with the default configuration of raven.

Processes for the Raven WPS server.

class raven.processes.HydroBasinsSelectionProcess[source]

Bases: Process

hydrobasins-select Select a HydroBASINS watershed geometry (v1.1)

Return a watershed from the HydroSheds database as a polygon vector file.

Parameters:
  • location (string) – Location coordinates (longitude, latitude) for point of interest.

  • aggregate_upstream (boolean, optional) – Attempt to capture both the containing basin and all tributary basins from point

Returns:

  • feature (application/geo+json) – Geographic representation of shape properties.

  • upstream_ids (application/json) – List of all tributary sub-basins according to their HydroBASINS IDs, including the downstream basin.

class raven.processes.NALCMSZonalStatisticsProcess[source]

Bases: Process

nalcms-zonal-stats NALCMS Land Use Zonal Statistics (v1.0)

Return zonal statistics and land-use cover for the CEC NALCMS based on the boundaries of a vector file.

Parameters:
Returns:

  • features (application/geo+json) – Category pixel counts using either standard or simplified UNFAO categories

  • statistics (application/json) – Land-use type pixel counts using either standard or simplified UNFAO categories.

class raven.processes.NALCMSZonalStatisticsRasterProcess[source]

Bases: Process

nalcms-zonal-stats-raster NALCMS Land Use Zonal Statistics with raster output (v1.0)

Return zonal statistics, land-use cover, and raster grid for the CEC NALCMS based on the boundaries of a vector file.

Parameters:
Returns:

  • features (application/geo+json) – Category pixel counts using either standard or simplified UNFAO categories

  • statistics (application/json) – Land-use type pixel counts using either standard or simplified UNFAO categories.

  • raster (application/metalink+xml; version=4.0) – Zipped raster grid(s) of land-use using either standard or simplified UNFAO categories.

class raven.processes.RasterSubsetProcess[source]

Bases: Process

raster-subset Raster Subset (v1.0)

Return a masked raster based on boundaries of a vector file.

Parameters:
Returns:

raster – Elevation statistics: min, max, mean, median, sum, nodata

Return type:

application/metalink+xml; version=4.0, image/tiff; subtype=geotiff

class raven.processes.ShapePropertiesProcess[source]

Bases: Process

shape-properties Shape Properties (v1.0)

Return shape area in square metres based on line boundaries of a polygonal vector file.

Parameters:
  • shape (application/gml+xml, application/geo+json, application/x-zipped-shp, application/json, application/zip) – An ESRI Shapefile, GML, GeoPackage, JSON or GeoJSON file. The ESRI Shapefile must be zipped and contain the .shp, .shx, and .dbf.

  • projected_crs (integer) – Coordinate Reference System for area calculation (Default: EPSG:6622, NAD83(CSRS) / Quebec Lambert)

Returns:

properties – Geographic representations and descriptions of shape properties: centroid coordinates, area, perimeter and gravelius index.

Return type:

application/json

class raven.processes.TerrainAnalysisProcess[source]

Bases: Process

terrain-analysis Terrain Analysis (v1.0)

Return shape area in square metres based on line boundaries of a polygonal vector file.

Parameters:
Returns:

  • properties (application/json) – DEM properties (mean elevation, slope, and aspect) for each geometry.

  • dem (image/tiff; subtype=geotiff, application/metalink+xml; version=4.0) – DEM GeoTIFF image

class raven.processes.ZonalStatisticsProcess[source]

Bases: Process

zonal-stats Raster Zonal Statistics (v1.0)

Return zonal statistics based on the boundaries of a vector file.

Parameters:
Returns:

statistics – Land-use type pixel counts using either standard or simplified UNFAO categories.

Return type:

application/json