Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Peisheng Zhao
MapServer 5.4.1. WMS.

From: steve.l...@state.mn.us
To: zha...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] how to add a time stamp on raster data
Date: Tue, 21 Aug 2012 21:20:35 +







What version? What interface? Looking at the code, at least for 6.2+, class 
text is a candidate for substitution.



Steve





From: Peisheng Zhao [zha...@hotmail.com]

Sent: Tuesday, August 21, 2012 4:16 PM

To: Lime, Steve D (DNR); users mapserver

Subject: RE: [mapserver-users] how to add a time stamp on raster data






Steve,



Thank you for your answer. I have tried the method you suggest. But it prints 
out "%time%, not the value of time.



Peisheng






From: steve.l...@state.mn.us

To: zha...@hotmail.com; mapserver-users@lists.osgeo.org

Subject: RE: [mapserver-users] how to add a time stamp on raster data

Date: Tue, 21 Aug 2012 21:13:10 +




Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT
 expression in the annotation layer. Layer would look like (assuming a variable 
called 'time' is passed) this I think:




LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the 
  FEATURE
POINTS 10 10 END
  END  
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END



This would plop the passed time in the lower left corner of the output, or at 
least I think it should.



Steve




From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]

Sent: Tuesday, August 21, 2012 3:35 PM

To: users mapserver

Subject: [mapserver-users] how to add a time stamp on raster data








Hi all,



We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.



Peisheng













  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Lime, Steve D (DNR)
What version? What interface? Looking at the code, at least for 6.2+, class 
text is a candidate for substitution.

Steve


From: Peisheng Zhao [zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 4:16 PM
To: Lime, Steve D (DNR); users mapserver
Subject: RE: [mapserver-users] how to add a time stamp on raster data

Steve,

Thank you for your answer. I have tried the method you suggest. But it prints 
out "%time%, not the value of time.

Peisheng


From: steve.l...@state.mn.us
To: zha...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] how to add a time stamp on raster data
Date: Tue, 21 Aug 2012 21:13:10 +

Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT expression in the annotation layer. Layer would look like 
(assuming a variable called 'time' is passed) this I think:

LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the
  FEATURE
POINTS 10 10 END
  END
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END

This would plop the passed time in the lower left corner of the output, or at 
least I think it should.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 3:35 PM
To: users mapserver
Subject: [mapserver-users] how to add a time stamp on raster data


Hi all,

We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.

Peisheng
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Peisheng Zhao
Steve,

Thank you for your answer. I have tried the method you suggest. But it prints 
out "%time%, not the value of time.

Peisheng

From: steve.l...@state.mn.us
To: zha...@hotmail.com; mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] how to add a time stamp on raster data
Date: Tue, 21 Aug 2012 21:13:10 +







Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT
 expression in the annotation layer. Layer would look like (assuming a variable 
called 'time' is passed) this I think:




LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the 
  FEATURE
POINTS 10 10 END
  END  
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END



This would plop the passed time in the lower left corner of the output, or at 
least I think it should.



Steve




From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]

Sent: Tuesday, August 21, 2012 3:35 PM

To: users mapserver

Subject: [mapserver-users] how to add a time stamp on raster data








Hi all,



We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.



Peisheng






  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Lime, Steve D (DNR)
Probably, you'd do it through an annotation layer. What version are you using? 
What interface (CGI, WMS, WCS)? Basically the idea would be to funnel the time 
parameter into a TEXT expression in the annotation layer. Layer would look like 
(assuming a variable called 'time' is passed) this I think:

LAYER
  NAME 'timestamp'
  TYPE ANNOTATION
  STATUS DEFAULT
  TRANSFORM LL # lower-left corner of the
  FEATURE
POINTS 10 10 END
  END
  VALIDATION
'time' 'some expression that matches time values'
  END
  CLASS
LABEL
  ...
END
TEXT '%time%'
  END
END

This would plop the passed time in the lower left corner of the output, or at 
least I think it should.

Steve


From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Peisheng Zhao 
[zha...@hotmail.com]
Sent: Tuesday, August 21, 2012 3:35 PM
To: users mapserver
Subject: [mapserver-users] how to add a time stamp on raster data


Hi all,

We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.

Peisheng
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] how to add a time stamp on raster data

2012-08-21 Thread Peisheng Zhao

Hi all,

We have a set of time-series data. Is it popossible to add a time stamp, i.e. 
the value of time parameter in the request, on raster data? Thanks.

Peisheng
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users