Re: [mapserver-users] Black background with palette

2009-12-11 Thread Alexandre Dube

Solved.  For the record :

http://trac.osgeo.org/mapserver/ticket/3217#comment:5

Alexandre

Alexandre Dube wrote:

Steve Lime wrote:

Are you compiling with the experimental png support?
  


No, but I just tried with it and it didn't resolved the issue. I 
noticed a slight change of the image quality though.


Thanks,




--
Alexandre Dubé
Mapgears
www.mapgears.com

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


Re: [mapserver-users] Black background with palette

2009-12-01 Thread Alexandre Dube

Steve Lime wrote:

Are you compiling with the experimental png support?
  


No, but I just tried with it and it didn't resolved the issue. I noticed 
a slight change of the image quality though.


Thanks,

--
Alexandre Dubé
Mapgears
www.mapgears.com

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


[mapserver-users] Black background with palette

2009-11-30 Thread Alexandre Dube

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead. 


 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END


--
Alexandre Dubé
Mapgears
www.mapgears.com

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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would put 
the background color as the first color in the mypalette.txt file and 
see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge
Another thought on this is the because you are asking for a transparent 
image, the IMAGECOLOR tag is usually transparent and I have seen that 
come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would put 
the background color as the first color in the mypalette.txt file and 
see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of having 
the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 66K 
png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




___
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] Black background with palette

2009-11-30 Thread Alexandre Dube

Stephen,

 The MAP imagecolor isn't black and to put it at first position in my 
palette file but that didn't help.


Thanks for your help,

Alexandre


Stephen Woodbridge wrote:
Another thought on this is the because you are asking for a 
transparent image, the IMAGECOLOR tag is usually transparent and I 
have seen that come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
put the background color as the first color in the mypalette.txt file 
and see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of 
having the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 
66K png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




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





--
Alexandre Dubé
Mapgears
www.mapgears.com

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


Re: [mapserver-users] Black background with palette

2009-11-30 Thread Stephen Woodbridge

Alexandre,

Try this as a hack and see if it helps.
Create a dummy LAYER like:

LAYER
  NAME pixel
  STATUS DEFAULT
  TYPE POINT
  TRANSFORM OFF
  FEATURE
POINTS 0 0 END
  END
  CLASS
COLOR backgroundcolor
  END
END

and make it your first layer. This will draw a one pixel dot in the 
upper left corner of the image in background color, but it might fake 
out mapserver if you have it some funny corner case.


Also can you reproduce this with a mapfile with one layer like the 
above, but with POINTS -2 -2 END so that it is drawn off the image? THen 
post you that makefile and we can try it.


What version of mapserver?

Otherwise if that doesn't work, maybe someone has other ideas.

-Steve W

Alexandre Dube wrote:

Stephen,

 The MAP imagecolor isn't black and to put it at first position in my 
palette file but that didn't help.


Thanks for your help,

Alexandre


Stephen Woodbridge wrote:
Another thought on this is the because you are asking for a 
transparent image, the IMAGECOLOR tag is usually transparent and I 
have seen that come up as black in some cases.


-Steve W

Stephen Woodbridge wrote:

Alexandre,

Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
put the background color as the first color in the mypalette.txt file 
and see if that helps.


-Steve W

Alexandre Dube wrote:

Hi,

== problem ==

 I'm pretty sure I saw this problem on the list somewhere, but I 
couldn't find the actual thread so here it is : while using
agg  palette option, when there's no data to draw, instead of 
having the backgroundcolor drawn it's all black instead.

 How can I go around this problem ?


== my actual need ==

 I want to produce smaller images.  Currently, my getMap renders a 
66K png image.  With the palette, it's down to 17K but with a black 
background.



== ouputformat definition ==

   OUTPUTFORMAT
   NAME aggpng24
   DRIVER AGG/PNG
   MIMETYPE image/png
   IMAGEMODE RGB
   EXTENSION png
   FORMATOPTION INTERLACE=OFF
   FORMATOPTION PALETTE_FORCE=ON
   FORMATOPTION PALETTE=/my/path/mypalette.txt
   TRANSPARENT ON
   FORMATOPTION TRANSPARENT=ON
   END




___
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] Black background with palette

2009-11-30 Thread Steve Lime
Are you compiling with the experimental png support?

 On 11/30/2009 at 12:47 PM, in message 4b141344.3040...@mapgears.com,
Alexandre Dube ad...@mapgears.com wrote:
 Stephen,
 
   Everything is there : http://trac.osgeo.org/mapserver/ticket/3217 
 
 Kind regards,
 
 Alexandre
 
 Stephen Woodbridge wrote:
 Alexandre,

 Try this as a hack and see if it helps.
 Create a dummy LAYER like:

 LAYER
   NAME pixel
   STATUS DEFAULT
   TYPE POINT
   TRANSFORM OFF
   FEATURE
 POINTS 0 0 END
   END
   CLASS
 COLOR backgroundcolor
   END
 END

 and make it your first layer. This will draw a one pixel dot in the 
 upper left corner of the image in background color, but it might fake 
 out mapserver if you have it some funny corner case.

 Also can you reproduce this with a mapfile with one layer like the 
 above, but with POINTS -2 -2 END so that it is drawn off the image? 
 THen post you that makefile and we can try it.

 What version of mapserver?

 Otherwise if that doesn't work, maybe someone has other ideas.

 -Steve W

 Alexandre Dube wrote:
 Stephen,

  The MAP imagecolor isn't black and to put it at first position in my 
 palette file but that didn't help.

 Thanks for your help,

 Alexandre


 Stephen Woodbridge wrote:
 Another thought on this is the because you are asking for a 
 transparent image, the IMAGECOLOR tag is usually transparent and I 
 have seen that come up as black in some cases.

 -Steve W

 Stephen Woodbridge wrote:
 Alexandre,

 Do you have IMAGECOLOR #00 set at the MAP level? Also I would 
 put the background color as the first color in the mypalette.txt 
 file and see if that helps.

 -Steve W

 Alexandre Dube wrote:
 Hi,

 == problem ==

  I'm pretty sure I saw this problem on the list somewhere, but I 
 couldn't find the actual thread so here it is : while using
 agg  palette option, when there's no data to draw, instead of 
 having the backgroundcolor drawn it's all black instead.
  How can I go around this problem ?


 == my actual need ==

  I want to produce smaller images.  Currently, my getMap renders a 
 66K png image.  With the palette, it's down to 17K but with a 
 black background.


 == ouputformat definition ==

OUTPUTFORMAT
NAME aggpng24
DRIVER AGG/PNG
MIMETYPE image/png
IMAGEMODE RGB
EXTENSION png
FORMATOPTION INTERLACE=OFF
FORMATOPTION PALETTE_FORCE=ON
FORMATOPTION PALETTE=/my/path/mypalette.txt
TRANSPARENT ON
FORMATOPTION TRANSPARENT=ON
END



 ___
 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