Vector Plugin

Description

displays polygon and line data on the map. Vector data is currently gotten through a tomcat servlet that queries data on a postgis database. In the future data might be qureid from Mapserver, using Mapservers GML output function. (WFS Version : Vector)

plugin_parameters :

usage

<param name="PluginType?_1" value="vector"> <param name="PluginParam?_1" value="P -parameter_name parameter_value -parameter_name parameter_value ...">

parameters

  • -status

o [1|0]

  • -jspurl (Url to access Jsp)

o [String]

  • -layer (if querying a servlet, table name)

o [String]

  • -querywidth (extents of query, meters/degrees )

o [int]

  • -displayradius (extents of display in viewer)

o [int]

  • -minalt

o [int]

  • -maxalt

o [int]

  • -vectorraise (dist in meters to set line above ground)

o [int]

  • -stroke (rgb)

o [int(0-255)]:[int(0-255)]:[int(0-255)]

  • -linew (pixel width of line)

o [float]

  • -interpolation (length in meters to interpolate the vector to dem/tin data)

o [int]

pluginAction

command parameters description returns

refresh &nbsp; drops current data and requeries &nbsp;

status 0,1 0 sets off, 1 sets on &nbsp;

getInfo &nbsp; vector, $STATUS, $QueryWidth?, $DisplayRadius?, $DISP_MAXZ,$DISP_MINZ,$vectorraise, $stroke(r:g:b), $LineWidth?, $interp_len comma delim list of parameters

setInfo STATUS, QueryWidth??, DisplayRadius??, DISP_MAXZ, DISP_MINZ,vectorraise, stroke(r:g:b),LineWidth?, interp_len sets parameters &nbsp;

Notes

z ht calculation

z values are calculated on the fly using vertical line intersections with the on screen dem polygons. polygons are each given a centroid, processing is ordered by the centroids distance from the camera focal position. after height data is calculated a flag is set and the vector will not get reprocessed until all other vectors within the display radius have been processed. as terrain data is streamed in vector height data will no longer match. turning the layer status off and on will reset the flags.

It might be a good idea to set the calculated flag to off to objects that get moused over...

interpolation

using the interpolation value (iv), intermediate break points are added to the vector (iv) meters apart on each separate line in the object. if (iv) is greater than the length of the line nothing is done.