[Pywps-dev] Should we split the Input class?
Luís Moreira de Sousa
luis.de.sousa at protonmail.ch
Sat Jul 22 08:26:34 PDT 2017
We have a bit of a mess with the Input class concept. It is firstly instantiated in the Process implementation (by the user). Then it is deep copied to support the actual inputs at run time.
It seems we are bundling two concepts together:
. InputDeclaration - that describes the input name, type, abstract, etc.
. PhysicalInput - that holds the actual data (or path to data) after an Execute request is parsed
By associating the InputDeclaration class to the Process class and PhysicalInput to the Request class we can avoid the deep copy. And make the code more clear.
Please discuss. Cheers.
P.S.: this is also true for outputs, but there it is not as critical.
--
Luís Moreira de Sousa
Im Grund 6
CH-8600 Dübendorf
Switzerland
Phone: +41 (0)79 812 62 65
Email: luis.de.sousa at protonmail.ch
URL: https://sites.google.com/site/luismoreiradesousa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/pywps-dev/attachments/20170722/393b4de5/attachment.html>
More information about the pywps-dev
mailing list