Dear list,
I'm creating a new type of Coverage Store, that does not require an URL to be set by the user.
In fact, the user has to fill two new fields I've added to the form : date and series.
With this information, I'm able to get the appropriate file in my system directory, using a connection on a Postgis database, which stores the path, date and series of raster files on my computer.
But I have a problem : I've added two fields Date and Series to the form, but when I fill these fields, I'm not able to get the values that I've put.
In the main module, in org.vnf.geoserver.global.CoverageStoreInfo.java, I've added two private variables date and series (two String), with getters/setters.
I've added them in the constructor and in the toDTO() method too.
I've done the same for org.vfny.geoserver.global.dto.CoverageStoreInfoDTO.java, and for org.vfny.geoserver.config.CoverageStoreConfig.java, where I've put for date the format for my date "dd/MM/yyyy hh:mm:ss". When I configure the plugin, this string appears correctly in my date fields.
So I've configured the whole form for my coverage (letting the url fields empty, I've disabled the test which verify that the url fields contains a valid way for a file), and I thought the getReader() method in CoverageStoreInfo returned a GridCoverageReader, but it returns null.
In this method this line "final CoverageStoreInfo gcInfo = data.getFormatInfo(id);" gives me a null value for the variable gcInfo. Is this a normal thing ? Because with gcInfo, I thought I would be able to make a gcInfo.getDate() and a gcInfo.getSeries(), to get these values...
The "id" variable contains the name for the coverage store I've just written (so it's ok), but the data private parameter for this class does not seem to contain an entry for the format I'm setting up.
I've seen that, for the GeoTiff plugin, the same null value seems to be returned, so maybe it is the normal behaviour, because the coverage store is not completely set.
My question is :
- In which class the values that I set (date and series) in the Coverage Store form can be gotten ?
Thanks for your attention,
Cédric B.