bird-house / birdy

Birdy provides a command-line tool to work with Web Processing Services.
http://birdy.readthedocs.io/en/latest/
Apache License 2.0
8 stars 3 forks source link

Attach a load mechanism to output #213

Open huard opened 2 years ago

huard commented 2 years ago

Overview

This PR fixes #191

Changes:

Related Issue / Discussion

This is still at the draft stage as a support for discussions.

Additional Information

Links to other issues or sources.

huard commented 2 years ago

Hi @cehbrecht,

Here is a PR to discuss how to create a better interface for loading the data into python objects.

The way I'm doing this is that I'm "augmenting" the WPSExecution object with a load method, which returns BirdyOutput objects instead of owslib.wps.Output. Then each BirdyOutput is paired with a converter, which gives the BirdyOutput another load method that does the download and conversion.

I'm totally open to changing the names for these, and the interface.

cehbrecht commented 2 years ago

@huard would you like to add a notebook example to see it in "action"?