Could also use class groups and send the appropriate group value with your 
request.

Steve

-----Original Message-----
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 03, 2014 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> So, I've been reading up on nighttime colors for electronic display(s).
> I was wondering if anyone has any pointers on information about 
> applying color temperature corrections to displays for nighttime 
> viewing.  I'm in need of providing this functionality to some night crew 
> workers.
>
> My first thought was to apply some sort of RGB algorithm to the 
> mapfile color settings.  Then I thought maybe a middleware  processor 
> routine (between MapServer and the browser) might be a better 
> approach, or possibly using something in the browser . . .
>
> I'm only looking at setting up distinct color settings at the moment.
> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
> some display monitoring for color temperature.  I would prefer to do 
> something that could apply globally however.
>
> Maybe there are Browser functions that can be applied to the problem 
> (I haven't found anything specific there yet though.

Bob,

One simple way to deal with this is to have two mapfiles with different colors 
setup on them and then you a substitution to switch between the day and night 
mapfile.

I wrote some code years ago that detects the day-night night terminator line in 
javascript to you can make the change. you need to know the browser location to 
compute this accurately. but a simple [day/night] toggle button would allow the 
user to switch manually.

-Steve W

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to