Ticket #3 (closed defect: fixed)
Filling optional default values issue with GIS GRASS integration
Reported by: | soeren | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | zoo-kernel | Version: | 1.0 |
Keywords: | optional values | Cc: | soeren |
Description
By default the zoo kernel fills all optional literal data inputs with default values. Thats fine in case default literal values are provided.
But here is the issue: optional literal data inputs are also attached in case no default values are available.
This results in something like "distance=NULL", which will in case of gis grass modules, abort the processing with an error.
There may be two solutions:
- The zoo kernel do not fill optional literal inputs when no default values are supported
- The zoo kernel uses the language specific way (None in case of Python) to specify missing default literal input values and the GIS GRASS integration framework will take care of parameter with attached NULL/None values
Both solutions are ok in case of literal data for me. The second one has the advantage, that the input map structure are fully available with literal data for service modules. So no new memory must be allocated/modified in case the developer decides to modify literal data in the input map.
Optional complex data inputs should IMHO not be filled. GIS GRASS has many modules with optional complex data inputs.