[Mapserver-users] CLASS-level TRANSFORM & OFFSET?

Charlton Purvis cpurvis at asg.sc.edu
Fri Jan 9 07:13:41 PST 2004


This is a multi-part message in MIME format.

------_=_NextPart_001_01C3D6C3.2A462EEA
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi, folks:

I'm not saying that the following is the best approach, but it is, at
least, *an* approach.

Attached is a color bar centigrade legend.  It's actually a bonafide
layer made up of a bunch of line segments and several labels.  It all
sits neatly inside a postgis geometry table, and the LAYER is broken
down into a bunch of CLASSes to give the line segments specific RGB
values.

So this image is a collection of segments w/ specific pixel-based
(x,y)'s.

I do this because our color ramp is still in flux, and I don't want to
have to create a static .png every time our image changes.  And it is
quite possible that once we're further along, the ramp, itself, will be
flexible in an ad-hoc basis.  So it would be important that I keep the
image dynamic.

That being said, is there any way to use something like TRANSFORM NO and
something like OFFSET X Y at the LAYER level to tell MapServer where the
origin of that image coordinate's (0,0) should be?

Why?  So I can keep the legend a true geometric LAYER as well as let my
WMS customers position it wherever they'd like in their image.  (Perhaps
that 2nd statement is another thread.)

Thanks,

Charlton

=20
=20
=20
Charlton Purvis
(803) 777-8858 : voice
(803) 777-3935 : fax
cpurvis at sc.edu
=20
Baruch Institute
University of South Carolina
Columbia, SC 29208


------_=_NextPart_001_01C3D6C3.2A462EEA
Content-Type: image/png;
	name="sst_legend.png"
Content-Transfer-Encoding: base64
Content-Description: sst_legend.png
Content-Disposition: attachment;
	filename="sst_legend.png"

iVBORw0KGgoAAAANSUhEUgAAACoAAADECAMAAAGpVHMNAAACUlBMVEX///8AAAABAQEEAwMHBQUL
BwcOCQkRCwsVDg0YEA8bEhEfFBMiFhUlGBcpGxksHRsvHx4zISA2IyI5JSQ9KCZAKihDLCpHLixK
MC5NMzBRNTJUNzRXOTZbOzlePTthQD1lQj9oREFrRkNvSEVySkd1TUl5T0t8UU2AU0+DVVGGWFSK
WlaNXFiQXlqUYFyXYl6aZWCeZ2KhaWSka2aobWirb2qucmyydG61d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