|
| 1 | +# (c) 2016 Open Source Geospatial Foundation - all rights reserved |
| 2 | +# (c) 2014 - 2015 Centre for Maritime Research and Experimentation (CMRE) |
| 3 | +# (c) 2013 - 2014 German Aerospace Center (DLR) |
| 4 | +# This code is licensed under the GPL 2.0 license, available at the root |
| 5 | +# application directory. |
| 6 | + |
| 7 | +# This is a INI file to be read with python ConfigParser (https://docs.python.org/2/library/configparser.html) |
| 8 | +# Is possible to reference another variable in the ini file using the format %(<variable name>)s (note the 's' at the end) |
| 9 | + |
| 10 | +# ########################################### # |
| 11 | +# Default Service Params # |
| 12 | +# ########################################### # |
| 13 | + |
| 14 | +[DEFAULT] |
| 15 | +service = GdalContour |
| 16 | +namespace = default |
| 17 | +description = GDAL Contour Remote Service |
| 18 | +executable_path = ./xmpp_data/configs/myservice/code |
| 19 | +executable_cmd = python %(executable_path)s/test.py |
| 20 | +output_dir = ./xmpp_data/output/ |
| 21 | +unique_execution_id = %(unique_exe_id)s |
| 22 | +workdir = %(output_dir)s/%(unique_execution_id)s |
| 23 | +active = True |
| 24 | +max_running_time_seconds = 300 |
| 25 | + |
| 26 | +# . This option allows you to set the CPU and Memory average load scan time. |
| 27 | +# . It is espressed in 'minutes' and if disabled here it will be set by default |
| 28 | +# . to 15 minutes. |
| 29 | +load_average_scan_minutes = 1 |
| 30 | + |
| 31 | +# . Use this option to completely avoid using this host (and prevent starting a new |
| 32 | +# . 'processbot') whenever one of the following process names are running. |
| 33 | +# . In other words, if one of the following processes are currently running on this machine, |
| 34 | +# . GeoServer won't send any WPS execute request until they are finished. |
| 35 | +process_blacklist = [{"cwd": "/mnt/d/work/code/python/geonode/geonode-master", "name": "celery", "cmdline": "-A geonode.celery_app:app worker -Q default,geonode,cleanup,update,email -B -E -l INFO"}] |
| 36 | + |
| 37 | +# ########################################### # |
| 38 | +# Inputs and Actions Declaration # |
| 39 | +# ########################################### # |
| 40 | + |
| 41 | +[Input1] |
| 42 | +class = param |
| 43 | +name = interval |
| 44 | +title = Elevation Interval |
| 45 | +type = application/json |
| 46 | +input_mime_type = application/json |
| 47 | +description = Elevation interval between contours. |
| 48 | +min = 1 |
| 49 | +max = 1 |
| 50 | +default = 200 |
| 51 | + |
| 52 | +[Action1] |
| 53 | +class = cmdline |
| 54 | +input_ref = interval |
| 55 | +alias = i |
| 56 | +template = -name value |
| 57 | + |
| 58 | +[Const1] |
| 59 | +class = const |
| 60 | +name = workdir |
| 61 | +type = string |
| 62 | +description = Remote process sandbox working directory |
| 63 | +value = %(workdir)s |
| 64 | + |
| 65 | +[Action2] |
| 66 | +class = cmdline |
| 67 | +input_ref = workdir |
| 68 | +alias = w |
| 69 | +template = -name value |
| 70 | + |
| 71 | +[Const2] |
| 72 | +class = const |
| 73 | +name = execution_id |
| 74 | +type = string |
| 75 | +description = Remote process unique execution id |
| 76 | +value = %(unique_execution_id)s |
| 77 | + |
| 78 | +[Action2] |
| 79 | +class = cmdline |
| 80 | +input_ref = execution_id |
| 81 | +alias = e |
| 82 | +template = -name value |
| 83 | + |
| 84 | +# ########################################### # |
| 85 | +# Output Parameters Declaration # |
| 86 | +# ########################################### # |
| 87 | + |
| 88 | +#[Output1] |
| 89 | +#name = result1 |
| 90 | +#type = application/zip |
| 91 | +#output_mime_type = application/zip |
| 92 | +#description = WPS Resource Binary File |
| 93 | +#title = SRTM |
| 94 | +#filepath = %(workdir)s/contour.zip |
| 95 | +#publish_as_layer = true |
| 96 | +#publish_default_style = polygon |
| 97 | +#publish_target_workspace = it.geosolutions |
| 98 | +#publish_layer_name = contour |
| 99 | + |
| 100 | +# . Enable this option in order to perform a backup of this output |
| 101 | +# . before sending it to GeoServer. |
| 102 | +# . WARNING: This option works only along with 'wps_execution_shared_dir' |
| 103 | +# . option on 'remote.config', and takes precedence on 'upload_data' |
| 104 | +# backup_on_wps_execution_shared_dir = true |
| 105 | + |
| 106 | +# . Enable this option if you want the output to be uploaded on remote host. |
| 107 | +# . Notice that you must also configure uploader parameters on 'remote.config' |
| 108 | +# upload_data = true |
| 109 | + |
| 110 | +# . Optionally it is possible to specify a root folder if the uploader class supports it. |
| 111 | +# upload_data_root = /remote-wps/default |
| 112 | + |
| 113 | +#[Output2] |
| 114 | +#name = result2 |
| 115 | +#type = application/x-netcdf |
| 116 | +#output_mime_type = application/x-netcdf |
| 117 | +#description = NetCDF Binary File |
| 118 | +#title = flexpart |
| 119 | +#filepath = %(output_dir)s/flexpart.nc |
| 120 | +#publish_as_layer = true |
| 121 | +#publish_default_style = raster |
| 122 | +#publish_target_workspace = it.geosolutions |
| 123 | +#publish_layer_name = flexpart |
| 124 | + |
| 125 | +[Output2] |
| 126 | +name = result2 |
| 127 | +type = application/zip |
| 128 | +output_mime_type = application/zip |
| 129 | +description = Test ShapeFile |
| 130 | +title = watermask |
| 131 | +filepath = d:/tmp/DE_USNG_UTM18.zip |
| 132 | +publish_as_layer = true |
| 133 | +publish_default_style = polygon |
| 134 | +publish_target_workspace = it.geosolutions |
| 135 | +publish_layer_name = DE_USNG_UTM18 |
| 136 | + |
| 137 | +# . Enable this option in order to perform a backup of this output |
| 138 | +# . before sending it to GeoServer. |
| 139 | +# . WARNING: This option works only along with 'wps_execution_shared_dir' |
| 140 | +# . option on 'remote.config', and takes precedence on 'upload_data' |
| 141 | +# backup_on_wps_execution_shared_dir = true |
| 142 | + |
| 143 | +# . Enable this option if you want the output to be uploaded on remote host. |
| 144 | +# . Notice that you must also configure uploader parameters on 'remote.config' |
| 145 | +# upload_data = true |
| 146 | + |
| 147 | +# . Optionally it is possible to specify a root folder if the uploader class supports it. |
| 148 | +# upload_data_root = /remote-wps/default |
| 149 | + |
| 150 | +#[Output3] |
| 151 | +#name = result3 |
| 152 | +#type = application/owc |
| 153 | +#output_mime_type = application/xml |
| 154 | +#description = WPS OWC Json MapContext |
| 155 | +#layers_to_publish = result2 |
| 156 | +#publish_as_layer = true |
| 157 | +#publish_layer_name = owc_json_ctx |
| 158 | +#publish_metadata = ./xmpp_data/resource_dir/owc_json_ctx.json |
| 159 | + |
| 160 | +# ########################################### # |
| 161 | +# Logging Options Declaration # |
| 162 | +# ########################################### # |
| 163 | + |
| 164 | +[Logging] |
| 165 | +stdout_parser = [.*\[DEBUG\](.*), .*\[INFO\] ProgressInfo\:([-+]?[0-9]*\.?[0-9]*)\%, .*\[(INFO)\](.*), .*\[(WARN)\](.*), .*\[(ERROR)\](.*), .*\[(CRITICAL)\](.*)] |
| 166 | +stdout_action = [ignore, progress, log, log, abort, abort] |
0 commit comments