Re: [mapserver-users] Shapezip 3D

2014-03-03 Thread Guillaume Sueur

Hi Even,

Thanks for your reply even if it is disappointing. So I guess all the
http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is 
just rubbish and the USE_POINT_Z_M compile option is useless.


Thanks for your investigations

Best regards

Guillaume


Le 01/03/2014 12:53, Even Rouault a écrit :

Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit :

Hi list,

I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm
using MapServer 6.5 compiled with USE_POINT_Z_M options.
mapserv -v gives :
MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

My data are stored in Postgis 2.1. They are 3D. I've added the
ows_geomtype  MultiPolygon25D metadata to my layer.

What I get is a 3D shapefile, but all the Z values are set to 0.

Lookking at the request made by MapServer to Postgis, I see the geom is
requested with Force2D function :
encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom

Is this a bug or is there some more settings I didn't set properly ?


Guillaume,

there's no support yet for parsing 3D geometries in mappostgis.c (mentionned
in comments of https://github.com/mapserver/mapserver/pull/4803 ). I wouldn't
expect adding support for it to be that difficult.

As a workaround, I would have suggested that you could use the OGR PostgreSQL
driver, but looking at mapogr.cpp, I also see that the Z support of OGR isn't
used. G

Even


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


Re: [mapserver-users] Shapezip 3D

2014-03-03 Thread Even Rouault
Selon Guillaume Sueur no-re...@neogeo-online.net:

 Hi Even,

 Thanks for your reply even if it is disappointing. So I guess all the
 http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is
 just rubbish and the USE_POINT_Z_M compile option is useless.

Actually no, it is correct. My previous comment was on the input interface
of MapServer with OGR, where Z support is not currently available. But for the
output part (mapogroutput.c), Z support should work. So you could likely use a
3D shapefile (with MapServer native shapefile connection) and output a 3D
shapezip.


 Thanks for your investigations

 Best regards

 Guillaume


 Le 01/03/2014 12:53, Even Rouault a écrit :
  Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit :
  Hi list,
 
  I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm
  using MapServer 6.5 compiled with USE_POINT_Z_M options.
  mapserv -v gives :
  MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
  SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
  SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
  SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
  SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR
  INPUT=GDAL INPUT=SHAPEFILE
 
  My data are stored in Postgis 2.1. They are 3D. I've added the
  ows_geomtype  MultiPolygon25D metadata to my layer.
 
  What I get is a 3D shapefile, but all the Z values are set to 0.
 
  Lookking at the request made by MapServer to Postgis, I see the geom is
  requested with Force2D function :
  encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom
 
  Is this a bug or is there some more settings I didn't set properly ?
 
  Guillaume,
 
  there's no support yet for parsing 3D geometries in mappostgis.c
 (mentionned
  in comments of https://github.com/mapserver/mapserver/pull/4803 ). I
 wouldn't
  expect adding support for it to be that difficult.
 
  As a workaround, I would have suggested that you could use the OGR
 PostgreSQL
  driver, but looking at mapogr.cpp, I also see that the Z support of OGR
 isn't
  used. G
 
  Even
 



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


Re: [mapserver-users] Shapezip 3D

2014-03-03 Thread Guillaume Sueur

OK, got it, but actually no need of MapServer to do that. zip is enough :-)



Le 03/03/2014 10:16, Even Rouault a écrit :

Selon Guillaume Sueur no-re...@neogeo-online.net:


Hi Even,

Thanks for your reply even if it is disappointing. So I guess all the
http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is
just rubbish and the USE_POINT_Z_M compile option is useless.


Actually no, it is correct. My previous comment was on the input interface
of MapServer with OGR, where Z support is not currently available. But for the
output part (mapogroutput.c), Z support should work. So you could likely use a
3D shapefile (with MapServer native shapefile connection) and output a 3D
shapezip.



Thanks for your investigations

Best regards

Guillaume


Le 01/03/2014 12:53, Even Rouault a écrit :

Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit :

Hi list,

I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm
using MapServer 6.5 compiled with USE_POINT_Z_M options.
mapserv -v gives :
MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE

My data are stored in Postgis 2.1. They are 3D. I've added the
ows_geomtype  MultiPolygon25D metadata to my layer.

What I get is a 3D shapefile, but all the Z values are set to 0.

Lookking at the request made by MapServer to Postgis, I see the geom is
requested with Force2D function :
encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom

Is this a bug or is there some more settings I didn't set properly ?


Guillaume,

there's no support yet for parsing 3D geometries in mappostgis.c

(mentionned

in comments of https://github.com/mapserver/mapserver/pull/4803 ). I

wouldn't

expect adding support for it to be that difficult.

As a workaround, I would have suggested that you could use the OGR

PostgreSQL

driver, but looking at mapogr.cpp, I also see that the Z support of OGR

isn't

used. G

Even









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


Re: [mapserver-users] [EXTERNAL] Re: Shapezip 3D

2014-03-03 Thread Smith, Michael ERDC-RDE-CRREL-NH
The 2.5D output does work correctly with Oracle Spatial (3D) input.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 3/3/14, 4:20 AM, Guillaume Sueur no-re...@neogeo-online.net wrote:

OK, got it, but actually no need of MapServer to do that. zip is enough
:-)



Le 03/03/2014 10:16, Even Rouault a écrit :
 Selon Guillaume Sueur no-re...@neogeo-online.net:

 Hi Even,

 Thanks for your reply even if it is disappointing. So I guess all the
 http://mapserver.org/fr/output/ogr_output.html stuff about 2.5D/3D is
 just rubbish and the USE_POINT_Z_M compile option is useless.

 Actually no, it is correct. My previous comment was on the input
interface
 of MapServer with OGR, where Z support is not currently available. But
for the
 output part (mapogroutput.c), Z support should work. So you could
likely use a
 3D shapefile (with MapServer native shapefile connection) and output a
3D
 shapezip.


 Thanks for your investigations

 Best regards

 Guillaume


 Le 01/03/2014 12:53, Even Rouault a écrit :
 Le vendredi 28 février 2014 17:29:15, Guillaume Sueur a écrit :
 Hi list,

 I'm trying to generate a 3D shapefile with OGR SHAPEZIP format. I'm
 using MapServer 6.5 compiled with USE_POINT_Z_M options.
 mapserv -v gives :
 MapServer version 6.5-dev OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
 SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
 SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
 SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER
 SUPPORTS=GEOS SUPPORTS=POINT_Z_M INPUT=JPEG INPUT=POSTGIS INPUT=OGR
 INPUT=GDAL INPUT=SHAPEFILE

 My data are stored in Postgis 2.1. They are 3D. I've added the
 ows_geomtype  MultiPolygon25D metadata to my layer.

 What I get is a 3D shapefile, but all the Z values are set to 0.

 Lookking at the request made by MapServer to Postgis, I see the geom
is
 requested with Force2D function :
 encode(ST_AsBinary(ST_Force2D(the_geom),'NDR'),'hex') as geom

 Is this a bug or is there some more settings I didn't set properly ?

 Guillaume,

 there's no support yet for parsing 3D geometries in mappostgis.c
 (mentionned
 in comments of https://github.com/mapserver/mapserver/pull/4803 ). I
 wouldn't
 expect adding support for it to be that difficult.

 As a workaround, I would have suggested that you could use the OGR
 PostgreSQL
 driver, but looking at mapogr.cpp, I also see that the Z support of
OGR
 isn't
 used. G

 Even






___
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


[mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
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.

Thanks

Bobb


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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Norman Vine
Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.us 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.
  
 Thanks
  
 Bobb
  
  
 ___
 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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Stephen Woodbridge

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


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Hi Stephen,

Yes, that looks like the correct route for this, time/location settings, at 
least to make something work globally.  The display is for a mapping interface 
that will most likely be location aware.  I've found a couple of references to 
some LIBs for finding terminator, and I think a temperature curve could be 
defined based on optimum settings from day/dusk/night views to make the map 
readable for all (natural) lighting conditions.  At least that's a place to 
start.

Bobb


-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


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Hi Norman,

I had another thought after I sent the first post.  Maybe something along the 
lines of an inside/outside view switcher.  The outside mode would self correct 
based on the location/time settings.  I'm really interested in this automated 
approach to making the settings change.  I have even worked out how I can make 
the changes to a mapfile could work from a config file.  I just need the actual 
RGB conversion routine to try out the idea.  Optimum settings for those three 
values you described would get things started, then I would need to figure out 
the best approach to apply by location/time, (heck, you could even factor in 
weather conditions down the line . . .)

bobb

From: Norman Vine [mailto:n...@cape.com]
Sent: Monday, March 03, 2014 10:40 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.usmailto:bob.basq...@ci.stpaul.mn.us 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.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Lime, Steve D (MNIT)
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


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Norman Vine
Bob

We started with the Standard NOAA chart palette foray then used a gamma
function to tone this down for Dawn/Dusk  but used a special night time palette
based on user feedback note that at sea there is usually a 'blackout 
environment'
which is much darker then most

Have you seen this project ?
http://jonls.dk/redshift/

Norman

On Mar 3, 2014, at 11:49 AM, Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.us wrote:

 Hi Norman,
  
 I had another thought after I sent the first post.  Maybe something along the 
 lines of an inside/outside view switcher.  The outside mode would self 
 correct based on the location/time settings.  I’m really interested in this 
 automated approach to making the settings change.  I have even worked out how 
 I can make the changes to a mapfile could work from a config file.  I just 
 need the actual RGB conversion routine to try out the idea.  Optimum settings 
 for those three values you described would get things started, then I would 
 need to figure out the best approach to apply by location/time, (heck, you 
 could even factor in weather conditions down the line . . .)
  
 bobb
  
 From: Norman Vine [mailto:n...@cape.com] 
 Sent: Monday, March 03, 2014 10:40 AM
 To: Basques, Bob (CI-StPaul)
 Cc: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] Color temperature control (night-time viewing 
 of maps)
  
 Bob
  
 Back in the day when I was working on marine navigation chart displays
 we used separate color tables for different light conditions
  
 we found that 3 tables sufficed, Day, Dusk/Dawn, Night
  
 we cheated a bit and used 64 bit palettes  this way with a little trickery
 we could pack everything into a normal 8 bit color table
  
 In practice this worked quite well
  
 HTH
  
 Norman
  
 On Mar 3, 2014, at 11:30 AM, Basques, Bob (CI-StPaul) 
 bob.basq...@ci.stpaul.mn.us 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.
  
 Thanks
  
 Bobb
  
  
 ___
 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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
All,

Just found this:  http://www.paulirish.com/demo/invert

Might be a good start. . .

Also, I thought the Command-Option-Ctrl-8 key combination on Mac's is a 
really cool option.!!

Bobb



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

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


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


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Norman,

I would imagine there is a similar blackout event for folks in airplanes 
(pilots) as well.

Bobb


From: Norman Vine [mailto:n...@cape.com]
Sent: Monday, March 03, 2014 11:10 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

We started with the Standard NOAA chart palette foray then used a gamma
function to tone this down for Dawn/Dusk  but used a special night time palette
based on user feedback note that at sea there is usually a 'blackout 
environment'
which is much darker then most

Have you seen this project ?
http://jonls.dk/redshift/

Norman

On Mar 3, 2014, at 11:49 AM, Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.usmailto:bob.basq...@ci.stpaul.mn.us wrote:


Hi Norman,

I had another thought after I sent the first post.  Maybe something along the 
lines of an inside/outside view switcher.  The outside mode would self correct 
based on the location/time settings.  I'm really interested in this automated 
approach to making the settings change.  I have even worked out how I can make 
the changes to a mapfile could work from a config file.  I just need the actual 
RGB conversion routine to try out the idea.  Optimum settings for those three 
values you described would get things started, then I would need to figure out 
the best approach to apply by location/time, (heck, you could even factor in 
weather conditions down the line . . .)

bobb

From: Norman Vine [mailto:n...@cape.comhttp://cape.com]
Sent: Monday, March 03, 2014 10:40 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, Basques, Bob (CI-StPaul) 
bob.basq...@ci.stpaul.mn.usmailto:bob.basq...@ci.stpaul.mn.us 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.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Stephen Woodbridge

Bob,

Checkout this page:
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm

-Steve

On 3/3/2014 11:55 AM, Basques, Bob (CI-StPaul) wrote:

Hi Stephen,

Yes, that looks like the correct route for this, time/location settings, at 
least to make something work globally.  The display is for a mapping interface 
that will most likely be location aware.  I've found a couple of references to 
some LIBs for finding terminator, and I think a temperature curve could be 
defined based on optimum settings from day/dusk/night views to make the map 
readable for all (natural) lighting conditions.  At least that's a place to 
start.

Bobb


-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


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Fawcett, David (MNIT)
Bob,

Are you thinking of preserving night vision or pumping up the blue to keep 
people more awake?

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, March 03, 2014 10:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Color temperature control (night-time viewing of 
maps)

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.

Thanks

Bobb


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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
David,

Night vision is the bigger problem.  Many users will be driving on dispatch 
tickets, etc.  Don't want to introduce a fatiguing function to the night 
drivers.

This is purely a demo mode of display for now.  The idea being to put something 
out for feedback from the end users.

Bobb



From: Fawcett, David (MNIT)
Sent: Monday, March 03, 2014 11:52 AM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob,

Are you thinking of preserving night vision or pumping up the blue to keep 
people more awake?

David.

From: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, March 03, 2014 10:31 AM
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Color temperature control (night-time viewing of 
maps)

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.

Thanks

Bobb


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

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Better to just point folks here I think:

http://stackoverflow.com/questions/6182451/how-to-calculate-the-sunrise-and-sunset-in-javascript

All sorts of links to different things related to sun and location.

Bobb



-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Sent: Monday, March 03, 2014 11:45 AM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob,

Checkout this page:
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm

-Steve

On 3/3/2014 11:55 AM, Basques, Bob (CI-StPaul) wrote:
 Hi Stephen,

 Yes, that looks like the correct route for this, time/location settings, at 
 least to make something work globally.  The display is for a mapping 
 interface that will most likely be location aware.  I've found a couple of 
 references to some LIBs for finding terminator, and I think a temperature 
 curve could be defined based on optimum settings from day/dusk/night views to 
 make the map readable for all (natural) lighting conditions.  At least that's 
 a place to start.

 Bobb


 -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


[mapserver-users] Use the Filter in a WFS 2.0 server

2014-03-03 Thread Andrea Peri
Hi,
I'm try to invoke a mapserver set as a WFS 2.0, putting a filter in the
querystring.
But the response is always empty.
I use a spatialite db ad repository.
Is it the filter working on wfs 2.0.0 ?

This is the request I try:

http://www502.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmsgeologiaservice=WFSversion=2.0.0request=GetFeatureOUTPUTFORMAT=application%2Fgml%2Bxml%3B%20version%3D3.2typenames=rt_geologia.bdig.pointmaxFeatures=100propertyName=id_reg_ubi,id_reg,loc,all_ind,tipo_ind,nome_prog,fontesortBy=id_reg_ubi+A,tipo_ind+AFilter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eid_reg%3C/PropertyName%3E%3CLiteral%3E28005001%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E

Thx.


-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users