|
|||||||||
|
|
StormLab Customized Overlay
File Standards V4.0.4 Overview:
Open source GIS (geographic information systems) in StormLab 4.0 allows
intermediate to Disclaimer:
Storm Alert Inc. agrees to display customized overlay files meeting the
specified format that follows. 1.) File format. a. Files are to be created in Microsoft Windows b.
Files should contain only standard characters and punctuation with
standard carriage returns/line c. Files should not contain any special formatting other than the specified protocol describe here. d.
Files should be placed in the StormLab\OverlayData directory for
consistency and troubleshooting 2.)
Data Header Format: Line 1 (Download Only): Refresh:
X<CRLF> , where X is the minimum refresh interval of this file,
in minutes. Line 2 (Optional) Title: TEXT HERE<CRLF> , specifies a title for the user to identify the contents of
the Line 3 (Optional) Underlay: ANY TEXT<CRLF> , instructs StormLab whether this overlay should be plotted underneath the radar imagery (default is over). VERSION 4.0.1 AND HIGHER REQUIRED. The presence of the "Underlay:" tag will instruct the software to render the data as an underlay. The text after the tag is arbitrary (yes, true, 1, whatever). Line 4 (Download Only) Filename:
filename_{SITEINFO}.txt<CRLF> ,
specifies the local filename for Line 5 (Optional): IconFile: A, B, C, D, E, F<CRLF>
StormLab has the ability to plot icons contained in icon file sheets. An icon sheet is basically a graphics file (such as a .png) containing equally spaced icons. It is encouraged that you use transparent
png’s to create your icons, offering the smallest size and A
= A number indicating a key to reference this icon file later in the
document. For the first IconFile:
B = The width, in pixels of each icon in the file. C = The height, in pixels of each icon in the file. D
= Assuming that 0,0 marks the top/left corner of each icon, this item
represents the number of pixels E
= Assuming that 0,0 marks the top/left corner of each icon, this item
represents the number of pixels F
= The website containing your icon file. StormLab will only download
the file once, and check it For example: IconFile: 1, 22, 36, 4, 35, “http://www.blah.com/icons/stormcell.png" This tells StormLab that the 1st
icon file can be found at the website above. It will be stored When plotted, StormLab will position
each icon such that the point 4 pixels to the right and 35 pixels Line 6 (Blank line) <CRLF> 3.)
Drawing Polygons (used to create 2 or more point line segment) Line 1: PolyLine: A = Red color of line (0 to 255) B = Green color of line (0 to 255) C = Blue color of line (0 to 255) D = Pixel width of line (a number greater or equal to 0) E = Drop Shadow (0 for no, 1 for yes) F = Red color of polyline fill (0 to 255) G = Green color of polyline fill (0 to 255) H = Blue color of polyline fill (0 to 255) I = Fill Opacity (0 : transparent to 100: opaque). Zero implies no fill. J = [OPTIONAL] MinZoom = A number specifying the minimum zoom level to display this information.
If
the final optional setting is missing: (PolyLine: A, B, C, D, E, F, G, H, I<CRLF>) StormLab will use the default minimum
zoom setting specified in the Map and Data If
the final optional setting is present:
Values: 1 = This polyline will show up at all zoom levels 2 = This polyline will show up at zoom level 2x and higher 4 = This polyline will show up at zoom level 4x and higher 8 = This polyline will show up at zoom level 8x and higher 16 = This polyline will show up at zoom level 16x and higher 32 = This polyline will show up at zoom level 32x and higher 64 = This polyline will show up at zoom level 64x and higher 128 = This polyline will show up at zoom level 128x and higher For example: PolyLine: 255, 0, 0, 2, 1, 96, 0, 0, 30, 2 would tell StormLab to create a red
line that is 2 pixels wide, drop shadowed, and with a 30% opaque For example: PolyLine: 0, 0, 255, 1, 0, 0, 0, 0, 0 would tell StormLab to create a blue
line that is 1 pixels wide, no drop shadow, and with no fill. Because
Line 2: (Indented 3 spaces for
clarity) Lat/Lon:
Lat1,Lon1,Lat2,Lon2, etc…<CRLF> Contains all the latitude/longitude
pairs, separated by commas that define the polyline. Do not use spaces NOTE:
More than one Lat/Lon: data line
may appear in a polyline block to represent discontinuous areas,
Line 3 (Optional): (Indented 3 spaces for clarity) Text:
"Plotted Text"[,X,Y]<CRLF> Contains text to be plotted at each
location specified in any Lat/Lon:
sections. Text will be plotted using X
and Y are optional. If present, they represent the offset, in pixels, from the
last latitude and
Line 4 (Optional): (Indented 3 spaces for clarity) Title: “TEXT HERE”<CRLF>
StormLab can provide a mouse sampled
pop-up for each lat/lon pair described above. This sample can Line 5 (Optional): (Indented 3 spaces
for clarity) Sample:
“This is line 1 of sample text.\nThis is line 2 This section contains optional sample
text for the pop-up dialog described above. Note the use of For example, using the title and sample
example above, the popup should show:
SPC Day 1
Outlook
This is line 1 of sample text Line 6
(Optional): (Indented 3 spaces for clarity) Link: http://www.website.com<CRLF> This section contains an optional
website link for the pop-up dialog described above. When clicked, Line Last: End: Terminates the PolyLine block.
4.)
Plotting Icons Line 1: Object:[MinZoom]<CRLF> This tag establishes that the following
sequence of data pertains to plotting pre-created graphics MinZoom
is optional. If present, it must be one of the values below. In this
case, StormLab will only 1 = This object will show up at all zoom levels 2 = This object will show up at zoom level 2x and higher 4 = This object will show up at zoom level 4x and higher 8 = This object will show up at zoom level 8x and higher 16 = This object will show up at zoom level 16x and higher 32 = This object will show up at zoom level 32x and higher 64 = This object will show up at zoom level 64x and higher 128 = This object will show up at zoom
level 128x and higher
Object:16 would tell StormLab to
only plot this icon at 16x zoom or higher.
Line 2: (Indented 3 spaces for
clarity) Lat/Lon:
Lat1,Lon1<CRLF> Contains the latitude/longitude
location at which to render this object. Do not use spaces between
Line 3 (Indented 3 spaces for clarity) Icon:
A,B,CCC,D,E<CRLF> Contains information specific to the icon we are plotting. A:
A number specifying the X (east/west) pixel offset to plot this icon from
the longitude B:
A number specifying the Y (north/south) pixel offset to plot this icon from
the latitude C:
A *3 digit* number (000 to 359) contained the degrees in which to rotate the
icon about D:
A number specifying which icon file (described back in section 2 – Data
Header Format) contains the E:
A number specifying which icon in the file described in item D is to be
plotted. The icon count 1 2 3 4 5 6 7 8 9
10
11
12
Line 4 (Optional): (Indented 3 spaces for clarity) Text:
"Plotted Text"[,X,Y]<CRLF> Contains text to be plotted at each
location specified in the Lat/Lon:
section above. Text will be plotted X
and Y are optional. If present, they represent the offset, in pixels, from the
last latitude and An example of where this might be used
would be to plot a route number inside an interstate icon.
Line 5 (Optional): (Indented 3 spaces for clarity) Title: “TEXT HERE”<CRLF> StormLab can provide a mouse sampled
pop-up for each object described above. This sample can Line 6 (Optional): (Indented 3 spaces
for clarity) Sample:
“This is line 1 of sample text.\nThis is line 2 of This section contains optional sample
text for the pop-up dialog described above. Note the use of
SPC
Day 1 Outlook
This is line 1 of sample text Line 7
(Optional): (Indented 3 spaces for clarity) Link: http://www.website.com<CRLF> This section contains an optional
website link for the pop-up dialog described above. When clicked,
Line Last: End: Terminates the Object block. 5.)
Plotting Text Font:
FontName,FontSize,FontBold,FontEffects,R,G,B<CRLF> Anytime a Font: tag is found in the document, the current drawing font will be
switched to the FontName =
Any usable font name – e.g. Arial FontSize = A number containing the font size – e.g. 9 FontBold = 0 = normal, 1 = bold FontEffects = 0 = none, 1 = dropshadow, 2 = outline, 3 = strong outline R = A number (0-255) containing the red color of the font G = A number (0-255) containing the green color of the font B = A number (0-255) containing the blue color of the font Text:
TextOutput,MinZoom,Lat1,Lon1,Lat2,Lon2,etc…<CRLF> Anytime a Text: tag is found, text will be output to the screen, centered on
the lat/lon pairs that follow. TextOutput = The text to be output to the screen (could be a city, radar site, airport, whatever) MinZoom = A number specifying the minimum zoom level to display this information.
Values: 99
= StormLab will use the default minimum zoom setting specified in the
Map and Data Overlays 1 = This text will show up at all zoom levels 2 = This text will show up at zoom level 2x and higher 4 = This text will show up at zoom level 4x and higher 8 = This text will show up at zoom level 8x and higher 16 = This text will show up at zoom level 16x and higher 32 = This text will show up at zoom level 32x and higher 64 = This text will show up at zoom level 64x and higher 128 = This text will show up at zoom level 128x and higher Lat = A decimal number containing the latitude on which the font should be centered. Lon
= A decimal number containing the longitude on which the font should
be centered (make sure that Example: Text: My House,64,40.00,-95.00,35.00,-100.00 When a radar image is zoomed in to 64x
or higher, StormLab will plot the text “My House” at locations FixedText:
TextOutput,MinZoom,X,Y<CRLF> Anytime a FixedText: tag is found, text
will be output to the screen, anchored to the X, Y coordinates provided. X
and Y are pixels to the right down from the top left corner of the screen.
This the FixedText tag is not radar site dependent and is useful for
plotting fixed text on screen. TextOutput = The text
to be output to the screen. Commas are permitted.
Values: 99 =
StormLab will use the default minimum zoom setting specified in the
Map and Data Overlays 1 = This text will show up at all zoom levels 2 = This text will show up at zoom level 2x and higher 4 = This text will show up at zoom level 4x and higher 8 = This text will show up at zoom level 8x and higher 16 = This text will show up at zoom level 16x and higher 32 = This text will show up at zoom level 32x and higher 64 = This text will show up at zoom level 64x and higher 128 = This text will show up at zoom level 128x and higher X =
A whole number specifying the number of pixels from the left (right if
negative) of the radar window that the text should be plotted Example: FixedText: Chase Targer: Kansas City, MO,1,10,10 Will plot the text
'Chase Target: Kansas City, MO' at all zoom levels. The text will be
rendered starting at 10 pixels from the left and 10 pixels from the top
(in the upper left
portion of the radar screen). Location:
TextOutput,MinZoom,Lat1,Lon1,Lat2,Lon2,etc…<CRLF> Anytime a Location: tag is found, text will be output to the screen. Unlike the Text:
tag, the location tag will place a dot centered on the lat/lon pairs that
follow with the actual text TextOutput = The text to be output to the screen (could be a city, radar site, airport, whatever) MinZoom = A number specifying the minimum zoom level to display this information.
Values: 99
= StormLab will use the default minimum zoom setting specified in the
Map and Data Overlays 1 = This location will show up at all zoom levels 2 = This location will show up at zoom level 2x and higher 4 = This location will show up at zoom level 4x and higher 8 = This location will show up at zoom level 8x and higher 16 = This location will show up at zoom level 16x and higher 32 = This location will show up at zoom level 32x and higher 64 = This location will show up at zoom level 64x and higher 128 = This location will show up at zoom level 128x and higher Lat = A decimal number containing the latitude on which the location dot should be centered Lon
= A decimal number containing the longitude on which the located dot
should be centered (make Example: Location: KEAX,1,38.8103,-94.2478 At any zoom level (1x and higher),
StormLab will plot the location KEAX at 38.8103N and -94.2478W, · KEAX
6.) Plotting Circles It may become desirable to draw a circle in addition to the polyline feature near the top of the document.
Circle:
Lat,Lon,Units,Radius,R,G,B,DropShadow,Thickness,MinZoom<CRLF> Anytime a Circle: tag is found, a circle will be drawn on the screen with the following options Lat = A decimal number containing the latitude on which the location dot should be centered Lon = A decimal number containing the longitude on which the located dot should be centered (make sure that you include a negative number). Units =
0 – radius is in nautical miles, 1
– radius is in miles, 2 – radius is in
kilometers Radius – The radius of the circle as defined by the Units above. R = A number (0-255) containing the red color of the circle G = A number (0-255) containing the green color of the circle B = A number (0-255) containing the blue color of the circle DropShadow = 0 for no, 1 for a drop-shadowed circle Thickness = The line thickness of the circle MinZoom = A number specifying the minimum zoom level to display this information.
Values: 99 = StormLab will use the default minimum zoom setting specified in the Map and Data Overlays portion of the setup for this file. 1 = This location will show up at all zoom levels 2 = This location will show up at zoom level 2x and higher 4 = This location will show up at zoom level 4x and higher 8 = This location will show up at zoom level 8x and higher 16 = This location will show up at zoom level 16x and higher 32 = This location will show up at zoom level 32x and higher 64 = This location will show up at zoom level 64x and higher 128 =
This location will show up at
zoom level 128x and higher Example: Circle: 39.2,-95.9,0,50,255,255,255,1,3,1
|
||||||||
| Design and
Concept © 2007-2010 Storm Alert, Inc. Webmaster: General Site Disclaimer |
|||||||||