[SoC] GSoC 2018 Week 4 Report - "Database Output Storage for PyWPS"

Jan Pišl janjanpisl at gmail.com
Sun Jun 10 10:09:48 PDT 2018


Hi everyone,


this is my report from week 4. It can also be found on my wiki page [0]. As
always, any feedback is appreciated!


Enjoy the rest of the weekend!


Kind regards,

Jan Pišl


Week 4 report


*What did you get done this period?*

-I changed the structure of the code. Classes PgStorage and SQLiteStorage
are now stored in separate files in the db folder. FileStorage is in a
separate file, too. Rest of the code is in the __init__ files. [1]


- I added the data_type attribute to inout/formats/__init__.py. At the
moment, allowed values are either vector or raster using the enum module.
This was done so when storing output data it can be differed between raster
and vector data and appropriate method can be used. [2]


- The Dbstorage class has been simplified. Instead of creating an instance
of the class in outputs.py and calling the get_db_type method in the
constructor, get_db_type is now a static method and gets called directly in
outputs.py [3]

- PgStorage accesses the data_type value and calls appropriate method
(store_vector_output or store_raster_output) [4]

 - I implemented the store_raster_output method in the PgStorage class [5]



*What do you plan on doing next week (period) ?*

- Implement store_raster_output for SQLiteStorage

- Implement another method for storing other types of data (string, CSV,
etc.)

- Write a script that tests whether different data types get stored
correctly

- Submit the Phase 1 evaluation.



*Are you blocked on anything?*

No.

[0] https://wiki.osgeo.org/wiki/Database_Output_Storage_for_PyWPS

[1] *https://github.com/janpisl/pywps/commit/18c46864ff75fb01e3c7d76f3f4a1b6d2457a22f
<https://github.com/janpisl/pywps/commit/18c46864ff75fb01e3c7d76f3f4a1b6d2457a22f>*
[[2]  *https://github.com/janpisl/pywps/commit/4bb079bfcde0b4fcc42393f531e86c47a91507d4
<https://github.com/janpisl/pywps/commit/4bb079bfcde0b4fcc42393f531e86c47a91507d4>*

*[3] **https://github.com/janpisl/pywps/commit/80c61c92e183c06af741fe94d0b172f9a5940609
<https://github.com/janpisl/pywps/commit/80c61c92e183c06af741fe94d0b172f9a5940609>*
[4]
https://github.com/janpisl/pywps/commit/e024b1e5d1eb8df1a79989a59b14276b2757d98d

[5]
 https://github.com/janpisl/pywps/commit/a09dfc61729b36eb81ddd0d9adb5bda2effe3029
<https://github.com/janpisl/pywps/commit/a09dfc61729b36eb81ddd0d9adb5bda2effe3029>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/soc/attachments/20180610/70a5a41d/attachment.html>


More information about the SoC mailing list