[mapserver-dev] Vector field rendering

Lime, Steve D (DNR) steve.lime at state.mn.us
Tue Jun 28 17:19:42 EDT 2011

I think it would be a cool addition. I think folks have done this type of stuff in the past using attribute binding for angle and size with a truetype marker...


-----Original Message-----
From: mapserver-dev-bounces at lists.osgeo.org [mailto:mapserver-dev-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette
Sent: Tuesday, June 28, 2011 3:14 PM
To: 'MapServer Dev List'
Subject: [mapserver-dev] Vector field rendering

Hi Devs,

We've been asked about the possibility to add support for rendering 
vector fields in MapServer. I don't think that would be very 
complicated, but before answering I'd like to gauge interest from others 
in seeing this feature in MapServer.

Vector fields are used for instance in meteorology to store/display wind 
direction and magnitude. The source is two single-band raster images, 
one band represents the U component of the vector, and the 2nd band the 
V component.

Using the u,v values at a given location we can compute a rotation and 
magnitude and use that to draw an arrow of a size proportional to the 
magnitude and pointing in the direction of the phenomenon (wind, 
current, etc.)

Wikipedia has a nice figure showing what I'm talking about:


Would there be interest in seeing support for vector fields added to the 
MapServer core? Has anyone done work on that front already?

Daniel Morissette
Provider of Professional MapServer Support since 2000

mapserver-dev mailing list
mapserver-dev at lists.osgeo.org

More information about the mapserver-dev mailing list