CUAHSI / HydroDesktop

HydroDesktop is a free and open source GIS enabled desktop application that helps you search for, download, visualize, and analyze hydrologic and climate data registered with the CUAHSI Hydrologic Information System. HydroDesktop is part of the legacy CUAHSI toolkit and is not under active development. Click the "releases" link below to download the latest installer for Microsoft Windows.
73 stars 20 forks source link

Refactor Metadata Fetching/Caching #167

Open xhqiao89 opened 7 years ago

xhqiao89 commented 7 years ago

danames[CodePlex]
Instead of entering a direct WSDL for a single server and downloading metadata and then searching the metadata to download data let's reduce the steps significantly.

Let's try it this way:

1) add a new button to the Data Source group on the search tab called quotAdd Sites Layerquot

2) When user pushes this button, show a dialog box that requests the WSDL server connection URL string

3) Entering the string and clicking quotNextquot prsents a list of all variables on that server

4) User checks boxes next to variables and clicks Get Sites

5) A new sites (search results) layer is created for each variable on that server

--- all of the meta data is loaded into the regular HydroDesktop search results database.

--- we can now get rid of the idea of a quotlocal metadata cachequot and it's associated database.

--- user can simply click on the points on the map to download data just like with any other search results layer.

xhqiao89 commented 7 years ago

ericch[CodePlex]
Work should now be complete on this feature. I have pushed up the changes and will try to create an experimental release tomorrow so it can be tested. For now, I'll put this as resolved.

xhqiao89 commented 7 years ago

ericch[CodePlex]
The initial work for Refactoring Metadata Fetching/Caching has been completed. A new button on Data Sources will open up a form where user can put the desired URL and a Title for their layer. Once the Get Sites button is clicked, the metadata is downloaded and instantly converted to a list of DataSeriesCart which is plugged into current functionality and creates a search layer without ever touching the database and then displays it on the map. However, I still have much more work to do concerning error handling and hooking it up with the specific selected keywords the user wants. Once it is in a more acceptable state, I'll create a new Experimental Release for testing.

xhqiao89 commented 7 years ago

jirikadlec2[CodePlex]
Great suggestion! just a small technical detail: In HydroDesktop 1.6 and 1.7 the search results from a regular search are not loaded to a database, but they are saved as a searchresults_... .shp shapefile in the user's project folder.

-- Jiri