Boilerplate AIKP (ocli.aikp.boilerplate)
Custom workflow
Check if the ROI present and to add if not (We can use existing one in ocli docker or please upload by yourself).
Make sure ROI present in the project
roi list
roi add -n Geamana /opt/project/test/integration/aikp/media/files/Geamana.geojson
Create task
task create -t ocli.aikp.boilerplate -n IBoilerplate --roi 0 --activate
Check the task parameters
task show
Now you have to see table like this
...
cos_key {project}/{name}/{roi_name}/
custom_input_path ['should be a file']
custom_parameter ['should be equal to 73']
friendly_name {project}/{name}/{roi_name}/
kind shapefile
name IBoilerplate
processing default
project Stagging
roi_name ['Required']
...
task set custom_parameter=73
task set custom_input_path="~/OCLI_HOME/PROJECTS/defaults.yaml"
Make the recipe
task make recipe --override
Custom commands
This section refers to custom commands that the developer included in the AIKP.
Check what custom commands are available
task template --help
Commands:
command_1 Command #1 info.
generate-report Command to generate a sample PDF report.
tree show the command tree of your CLI or the current...
Check custom command parameters
task template command_1 --help
Usage: cli.py task template command_1 [OPTIONS]
Command #1 info. Just run it ans see what I can do.
Options:
--dump-file Print the "custom_input_path" file on the screen.
--help Show this message and exit.
Running custom commands
task template command_1 # Run a custom command with default flags
task template command_1 --dump-file # Run with additional param (flag) to read the input file
task template generate-report --jtemplate-path="template.html" --out-dir="output/"