[mapserver-dev] 3.7 updates

Steve Lime steve.lime at dnr.state.mn.us
Wed Aug 14 11:06:15 EDT 2002


Frank: How do you see using offsite with 24-bit input? How 'bout classes? I will update
the class handler for rasters to use RGB colors in addition to indexes. So you'd do stuff
like:

  EXPRESSION "255 0 0"                              # matches just red
  EXPRESSION /^255/                                  # matches all colors with a maxed red component
  EXPRESSION ([red] = 255 or [blue] < 50)  # you get the idea, [pixel] goes away (maybe)

Then time to test, test, test...

Steve

Stephen Lime
Data & Applications Manager

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Frank Warmerdam <warmerdam at pobox.com> 08/14/02 09:09AM >>>
Folks,

I have made a pass on MapServer with Steve color overhaul, and made the
following changes:

  o map.h:L Added MS_INIT_COLOR() and RESOLVE_PEN_GD() macros.  The
    MS_INIT_COLOR() macro can be used to initialize a colorObj to a given
    color (including setting the pen to MS_PEN_UNSET).  The RESOLVE_PEN_GD()
    macro will ensure that the pen is set properly for GD usage.  Basically,
    it calls msImagesetPenGD() if the pen is currently unset.

  o mapresample.c: fixes for colorObj offsite (untested).

  o mapgd.c: fixed use of background color in GD 2.x case.

  o maplegend.c, mapscale.c: Removed extra argument to msAddLabel() call.

  o mapraster.c (drawGDAL()): fixes for colorObj in class styles and for
    offsite.  Changes have not been well tested.

I looked at updating mapogr.cpp but it seemed like a big job so I bailed.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com 
light and sound - activate the windows | http://pobox.com/~warmerdam 
and watch the world go round - Rush    | Geospatial Programmer for Rent






More information about the mapserver-dev mailing list