bird-house / kingfisher

A Web Processing Service for Earth-Observation Data Analysis
Other
0 stars 0 forks source link

Subclass for EO processes #10

Open huard opened 6 years ago

huard commented 6 years ago

All the EO COPERNICUS processes share a common set of inputs and outputs. We should propose an elegant way to use subclasses rather than copy-pasting the same code. I've tried something with the ocgis_func, we might want to review and improve it.

class GenericEOProcess
    common_inputs = [
        LiteralInput('BBox', 'Bounding Box', ...),
        LiteralInput('start', 'Start Date',
         ...
        ]
huard commented 6 years ago

@nilshempelmann Also, why not use the BoudingBoxInput ? I've never used it myself, so really just a question. Is it complicated to use it ?

nilshempelmann commented 6 years ago

BoundingBoxInput was disabled. @cehbrecht : Any news if its worling now? Can we give it a try?

cehbrecht commented 6 years ago

I need to check it. But what I remember is that PyWPS does it right but OWSLib does not.

cehbrecht commented 5 years ago

See also examples to avoid code duplication provided by PR https://github.com/bird-house/birdhouse-docs/pull/35