Hi,

another question for implementing my new datastore.
I have defined a layer which uses TIME. Now if somebody requests the 
layer without providing a time parameter then the query I receive at

protected FeatureReader<SimpleFeatureType, SimpleFeature> 
getReaderInternal(Query query)

contains a TIME propertyName and a IncludeFilter. What I understand is 
that geoserver wants me to produce all data for any time and the spatial 
filtering is done somewhere else.
I would have expected that the filter contains only the spatial 
component and the lack of a time constraint/filter automatically does 
not perform a filtering on time.

On the other hand side if I do not switch on TIME in the layer 
definition and I provide a TIME attribute it does not find its way into 
the filter of the query.

The only option I see to make a time constraint optional is by adding 
the constraint into viewparams, but that looks like a hack to me and I 
would like to prevent this.

Thus, here the question: Is there a possibility to have an optional TIME 
parameter, which is included in the filter of the query in case it is 
present in the map request or not included otherwise?
Or is there an option to set a default value for the TIME parameter in 
case there is no valid time specified in the request?

Thanks in advance.

best regards
Andreas

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to