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

Build tool for downloading data from pre-loaded shapefile #106

Open xhqiao89 opened 6 years ago

xhqiao89 commented 6 years ago

danames[CodePlex]
We need to be able to download data from a HydroServer using a pre-defined/pre-built shapefile that matches the specifications of the shapefiles.

The idea is that if someone already has a shapefile of valid data sites (maybe they we're sent it from a friend, or downloaded it from the web or maybe it was pre-loaded with HD or available in an extension) then they should be able to import that shapefile and have it act just like one that was created by the search plugin (i.e. they should be able to hover over points and download data, etc.)

An example shapefile that contains points and WaterML links is attached to this issue. This one is not in the same format as the ones that are created by search, but we should support importing it as well.

This may need to be built as a new plugin, perhaps called quotSiteImporterquot.

xhqiao89 commented 6 years ago

ericch[CodePlex]
Tested with a Shale network shapefile of observation points and it loaded correctly.

xhqiao89 commented 6 years ago

danames[CodePlex]
Please try this with the Shale network shapefile of observation points as a test. It would be nice to pre-load that shapefile with their plugin and have it already work as a site-data layer for downloading observations.

xhqiao89 commented 6 years ago

ericch[CodePlex]
In the SearchLayerModifier, the function IsSearchLayer(ILayer layer) won't return true with the attached example shapefile due to the shapefile not having all the required search columns in its data set.

The layer columns of the following example shapefile are: SiteName, SiteCode, StartDate, Latitude, Longitude, ts_id, Agency, WaterML.

The needed search columns as a minimum are: SiteCode, VarCode, ServiceCode, ServiceURL, StartDate, EndDate, ValueCount.

Right now the only search columns that the example shapefile fulfills are SiteCode and Start Date. The extra columns don't cause a problem but all the needed search columns need to be fulfilled. If the search columns were all fulfilled, then I think this tool would already work. I'll continue thinking on how to make the shapefile compatible.

xhqiao89 commented 6 years ago

cuylerfris[CodePlex]
marking as active