-
Notifications
You must be signed in to change notification settings - Fork 179
Upgrade to edal-wms (ncwms 2.0) #234
Comments
Working on this issue on my ncwms2 branch if anyone would like to follow along. |
Ran into a potential bug - submitted issue: Reading-eScience-Centre/edal-java#30 |
We are using saxon-he transitively (via waterml), but we should make it an explicit dep. @cwardgar - where should we define this? |
Ok, here is an update: I added an explicit dependency on saxon-he, and the resource files are now being processed correctly by edal-java. Here is where things stand at the moment: In the edal-cdm artifact, CdmUtils uses FeatureDatasetFactoryManager to try to make a FeatureType.GRID from a NetcdfDataset. A GridDataset object is expect to be created, but a Coverage is created instead. This causes edal-cdm to fail as it is trying to cast the FeatureDataset into a GridDataset object on the return of CdmUtils.getGridDataset. I am cloning the repository now to try to get a workaround to see if this solves all of the issues. I expect to do a workaround be creating a GridDataset directly instead of using FeatureDatasetFactoryManager. In the long term, I know it would be best to get edal-java to start using Coverage over GridDataset, but I am just trying to get something working at this point. |
Just took a quick look at the edal-java repository. Looks like they are now using Velocity templates instead of JSP for the WMS It also looks like they are no longer using Spring. Not sure what that I was just too curious not to take a peak. Cheers, Ethan On Thu, Nov 19, 2015 at 10:09 AM, Sean Arms [email protected]
|
Hi Ethan, Here is where the repo for ncwms2/tds lives: https:/lesserwhirls/thredds/tree/ncwms2 Once I get something working, I will move the branch to the unidata reop and stop force pushing. There are two java files (so far) that have been added to the tds (thanks to @guygriffiths!): ThreddsWmsServlet.java We map to the ThreddsWmsServlet via web.xml, although I think this could be done programatically. For a list of all the changes to THREDDS so far, check out this I aim to test out the changes I've made to CdmUtils (outlined in #234 (comment)) today and make the appropriate pull request to edal-java. I have high hopes that it will be our last thing to adjust. |
Submitted a PR to edal-java for CdmUtils: Reading-eScience-Centre/edal-java#39 With this fix, I can now generate a GetCapabilities document from WMS, as well as request an image of the legend using the TDS code in https:/lesserwhirls/thredds/tree/ncwms2 To be clear, using the default catalogs and data from TDS (while enabling the WMS service in the testEnhanced catalog and threddsConfig.xml), the following works: I have tried to generate an image of a layer, but so far only a blank image is returned (no error on the client or server side). As an example, try @guygriffiths - any thoughts as to why the image would come back empty? The server does return a 1.3 kB png (I think the background is white...will double check in photoshop) image. |
The bounding box needs to be in the specified CRS, which I'm fairly sure is measured in metres for EPSG:3857. The image is probably correct but only of a very small area. Try one of: |
@guygriffiths - awesome, that was my mistake. Here are the images: We'll still need to implement caching and a few other things, but the basic edal-wms seems to be working in 5.0 now. Thank you so much @guygriffiths for all of your help! |
Ok, I have a working wms that can use Godiva3 - see #343 Note that to build godiva3, I had to use the following from the base level of the thredds repository:
Basically, make sure the following are on the class path:
Then, to compile, we use the class Apparently, this can all be handled in gradle such that the javascript files get compiled during the build (thus eliminating a ton of binary files current under git control), but I could not figure that one out. At any rate, wms and godiva3 are now working in 5.0. w00t. There are still a few things that we can do, such as:
|
The basics of this are fixed in /pull/610 The next step, besides bug fixes, will be to setup a cache, set defaults, and make sure users can still make changes to the default properties of layers in a way they used to be able to using wmsConfig.xml. |
@lesserwhirls, if possible, can we try to get ncwms-2.2.2 into the TDS 5.0 release? Just released today, v2.2.2 has support for datasets written with SGRID conventions (in addition to UGRID conventions), which means that TDS would be finally be able to deliver WMS layers of velocity arrows/barbs from staggered grid models like ROMS and WRF! https:/Reading-eScience-Centre/ncwms/releases/tag/ncwms-2.2.2 |
Sure thing! Let me see what I can do. |
🎉 |
Ok, the new war artifact can be found here. Don't forget to rename it to something like |
@lesserwhirls are you now using the latest ncWMS2 2.2.5 version, with |
We're using a snapshot of 2.2.5, but it was the second to last commit before that release. I'll update to the official release here shortly. |
Upgrade TDS 5.0 to use the new wms server based on Reading-eScience-Centre/edal-java
The text was updated successfully, but these errors were encountered: