ZOO-Project
Functions
service_internal_saga.h File Reference
#include "service.h"
#include "service_internal.h"

Go to the source code of this file.

Functions

int zoo_saga_support (maps **, map *, service *, maps **, maps **)
 Load and invoke a SAGA-GIS module defined in a service metadata definitions. More...
 

Function Documentation

int zoo_saga_support ( maps **  main_conf,
map request,
service s,
maps **  inputs,
maps **  outputs 
)

Load and invoke a SAGA-GIS module defined in a service metadata definitions.

Load all the input data into SAGA-GIS using io_gdal, io_tables and io_shapes_las for SAGA grids/shapes, tables and pointcloud respectively. Load and run the module from its library and invoke it using the data imported in SAGA-GIS at first stage. After the execution, export the outputs to files using io_gdal and io_shapes_las for grids/shapes and pointcloud respectively.

Parameters
main_confthe conf maps containing the main.cfg settings
requestthe map containing the HTTP request
sthe service structure
inputsthe maps containing the inputs
outputsthe maps containing the outputs