Class: WMSTime service:ngeoWMSTime

ngeo.WMSTime

new WMSTime($filter, gettextCatalog)

ngeo - WMS time service

Parameters:
Name Type Description
$filter angular.$filter

angular filter service.

gettextCatalog !angularGettext.Catalog

service.

Extends

Methods

formatTimeValue(time, resolution, [opt_useISOFormat]opt, [opt_toUTC]opt)

Format time regarding a resolution

Parameters:
Name Type Attributes Description
time number

(in ms format) timestamp to format

resolution (ngeox.TimePropertyResolutionEnum|undefined)

resolution to use

[opt_useISOFormat] boolean= <optional>

True to a ISO-8601 date string that can be used as a WMS-T Parameter. Otherwise, use a localized date format.

[opt_toUTC] boolean= <optional>

to get the UTC date

Returns:
string

Date string regarding the resolution.

formatWMSTimeParam(wmsTimeProperty, times, [opt_toUTC]opt)

Format time to be used as a WMS Time query parameter

Parameters:
Name Type Attributes Description
wmsTimeProperty ngeox.TimeProperty

a wmstime property from a node

times {start : number, end : (number|undefined)

start & end time selected (in ms format)

[opt_toUTC] boolean= <optional>

to get the UTC date

Returns:
string

ISO-8601 date string ready to be used as a query parameter for a WMS request

getOptions(time)

Get options regarding the time property of a node;

Parameters:
Name Type Description
time ngeox.TimeProperty

the time property of a node

Inherited From:

getUTCDate(localDate)

Time.prototype.getUTCDate - Get UTC date from a local date object

Parameters:
Name Type Description
localDate Object

loacl date object in

Inherited From:
Returns:
Object

UTC date