< prev | next >

src < Attributes < Home

src

The src attribute specifies a data source to be used for a map or graph element. The value of the src attribute depends upon the context in which it is used. It may be a URL to a data file or CGI, or the name of a file in the OCS Resources folder. See the notes below for details.

Supporting Tags

The src attribute is supported by the <data> tag. Its usage depends on the parent of the <data> tag, so it may be required, optional, or not applicable in certain cases. See the notes below for details.

Examples

<contour>
  <data src="http://www/cgi-bin/MesoData.acgi?latest.mdf"
    param="TAIR" units="fahr"/>
</contour>
         
<observation>
  <data src="199407071700.mg0" param="TDEW"/>
</observation>
         
<overlay>
  <data src="Oklahoma Maps" param="County borders"/>
</overlay>

Notes

In many cases, the src attribute contains a URL to a file or CGI from which data can be obtained. Examples of this usage include <data> tags within a <contour> or <vector>. Currently, only MDF or MG0 formatted data files are supported, but this may change in future versions.

In other cases, the src attribute contains the name of a resource file in the OCS Resources folder. Examples of this usage include <data> tags within an <overlay>.

Sometime the <data> tag may not require a src attribute at all. One example of this includes certain uses of the <data> tag within an <overlay>.

Confidential. Copyright © 2002 Oklahoma Climatological Survey. All Rights Reserved.
Send questions or comments concerning this web page to
wolfie@ou.edu.