This document is archived and information here might be outdated. Recommended version. |
Time reference used by the time aware content.
[Visual Basic .NET] Public Property TimeReference As ITimeReference
[C#] public ITimeReference TimeReference {get; set;}
[C++]
HRESULT get_TimeReference(
ITimeReference** TimeReference
);
[C++]
HRESULT putref_TimeReference(
ITimeReference* TimeReference
);
[C++] Parameters TimeReference [out, retval]
TimeReference is a parameter of type ITimeReference** TimeReference [in]
TimeReference is a parameter of type ITimeReference*
You should set this property when the TimeValue that you are passing in is in different timezone that any of the dataframe's or layer's TimeReference in the MapServer.
When TimeReference is set to Null/Nothing, MapServer assumes the TimeValue is in layer's TimeReference while searching features from layer. For example, there may be two layers in the map, one is in Pacific Standard Time (PST) and the other is in Eastern Standard Time (EST). If the TimeValue you are passing in is PST, but you have TimeReference is set to Null, when MapServer searches for feature for the first layer, it will assume the input TimeValue is in PST and find the correct features. While it searches for the features from the second layer, it will assume the input TimeValue is in EST and will get incorrect features.