| 37 | = Development = |
| 38 | == Dependencies == |
| 39 | Current development of metadata management have dependence on external libraries: |
| 40 | * OWSLib (no additional dependence), |
| 41 | * Jinja templates (suitable to remake) |
| 42 | |
| 43 | == Architecture == |
| 44 | The new designed metadata management in GRASS is based on external python modules without interference to GRASS core. |
| 45 | * First step which is partially successful is to create basic modules for exporting ISO based metadata for raster and vector maps. The modules are contented to implemented class which is providing parsing metadata from r.info and v.info. This metadata are unassigned to ISO attributes with using OWSLib. The OWSLib is offering to create instances of ISO element. The instances are suitable to filled in the predefined Jinja xml ISO profile. From this part are created r.info.iso and v.info.iso |
| 46 | |
| 47 | === r.info.iso and v.info.iso === |
| 48 | * The modules are based on the said implementation. |
| 49 | * Offers converting metadata from *.info to xml file based on ISO standard |
| 50 | * Current available metadata profile for GRASS. |
| 51 | * INSPIRE profile, |
| 52 | * GRASS BASIC profile - this profile are mainly including available metadata from GRASS. |
| 53 | |
| 54 | === g.gui.metadata === |
| 55 | Current task is to design the GUI interface and the implementation. Below is the first design. |
| 56 | Main aggravating factor is the fact that some attributes in ISO can be define multiple times. For the solution is necessary to crate interface for getting information from some source. Currently the easier way is to get information form predefined XML Jinja template. Interface ensure independence between editor and source of informations. This is useful for future development. |
| 57 | The editor will support: |
| 58 | || version || function || |
| 59 | || 1.0 || to implement main window and layout || |
| 60 | || || function for browsing maps with using treeCtrl || |
| 61 | || || to create xml ISO file (with using v/r.info.iso) || |
| 62 | || || interface to get information about ISO attributes || |
| 63 | || 1.1 || editing of created xml file with using Jinja templates || |
| 64 | || 1.2 || to add multiple values for specific attributes || |
| 65 | || 1.3 || validate inspire xml || |
| 66 | || || options for update r/v.support by changed values values in editor. || |
| 67 | || 1.4 || multiple metadata editing ( choose maps, chooses attributes with are same for chosen maps. || |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |