def get_time_info(layer):
 layer = gs_catalog.get_layer(layer.name)
 if (layer is None):
  raise ValueError(('no such layer: %s' % layer.name))
 resource = layer.resource
 info = (resource.metadata.get('time', None) if resource.metadata else None)
 vals = None
 if info:
  value = step = None
  resolution = info.resolution_str()
  if resolution:
   (value, step) = resolution.split()
  vals = dict(enabled=info.enabled, attribute=info.attribute, end_attribute=info.end_attribute, presentation=info.presentation, precision_value=value, precision_step=step)
 return vals

def get_time_info ( layer ) : layer = gs_catalog . get_layer ( layer . name ) if ( layer is None ) : raise ValueError ( ( 'no such layer: %s' % layer . name ) ) resource = layer . resource info = ( resource . metadata . get ( 'time' , None ) if resource . metadata else None ) vals = None if info : value = step = None resolution = info . resolution_str ( ) if resolution : ( value , step ) = resolution . split ( ) vals = dict ( enabled = info . enabled , attribute = info . attribute , end_attribute = info . end_attribute , presentation = info . presentation , precision_value = value , precision_step = step ) return vals
get the configured time dimension metadata for the layer as a dict .