[mapserver-users] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Adrian Popa

Hello all,

My goal is to setup tilecache (which is proving to be a real pain), and 
so far I've noticed that even if I configured my map to generate 
noninterlaced PNGs (instructions here: 
http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs), 
it still generates interlaced PNGs.


Here is my outputformat (the only one defined) in my map:
OUTPUTFORMAT
   NAME 'AGG'
   DRIVER AGG/PNG
   IMAGEMODE RGBA
   TRANSPARENT ON
   FORMATOPTION INTERLACE=OFF
END

The parameters that get sent to my mapserver instance are:
BBOX|2896046.12635,5831228.011975,2935181.884825,5870363.77045|
EXCEPTIONS  |application/vnd.ogc.se_inimage|
FORMAT  |png|
HEIGHT  |256|
LAYERS 
|Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete|

MAP |/var/www/html/map/rtc_base.map|
MAP_IMAGETYPE   |agg|
MAXEXTENT   |left-bottom=(20.26,43.16) right-top=(29.7,48.46)|
MAXRESOLUTION   |156543|
REQUEST |GetMap|
SERVICE |WMS|
SRS |EPSG:900913|
STYLES  
TRANSITIONEFFECT|resize|
TRANSPARENT |false|
UNITS   |m|
VERSION |1.1.1|
WIDTH   |256|


I'm not sure if MAP_IMAGETYPE=agg is the one which selects the 
outputformat or not, but the map seems to be rendered with AGG (I could 
be wrong, of course).


So, what am I missing here? Is there another parameter that should be 
sent to mapserver to select the outputformat?


By the way, the image file generated has these properties: img.png: PNG 
image, 256 x 256, 8-bit colormap, interlaced


Thanks,
Adrian

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


Re: [mapserver-users] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Guillaume Sueur
hi,

rename your OUTPUTFORMAT to 'PNG' for it to be used when asking for png
format. 

Guillaume

Le mercredi 14 octobre 2009 à 16:36 +0300, Adrian Popa a écrit :
 Hello all, 
 
 My goal is to setup tilecache (which is proving to be a real pain),
 and so far I've noticed that even if I configured my map to generate
 noninterlaced PNGs (instructions here:
 http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
  it still generates interlaced PNGs.
 
 Here is my outputformat (the only one defined) in my map:
 OUTPUTFORMAT
 NAME 'AGG'
 DRIVER AGG/PNG
 IMAGEMODE RGBA
 TRANSPARENT ON
 FORMATOPTION INTERLACE=OFF
 END
 
 The parameters that get sent to my mapserver instance are:
 BBOX
 2896046.12635,5831228.011975,2935181.884825,5870363.77045
 EXCEPTIONS
 application/vnd.ogc.se_inimage
 FORMAT
 png
 HEIGHT
 256
 LAYERS
 Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete
 MAP
 /var/www/html/map/rtc_base.map
 MAP_IMAGETYPE
 agg
 MAXEXTENT
 left-bottom=(20.26,43.16)
 right-top=(29.7,48.46)
 MAXRESOLUTION
 156543
 REQUEST
 GetMap
 SERVICE
 WMS
 SRS
 EPSG:900913
 STYLES
 
 
 TRANSITIONEFFECT
 resize
 TRANSPARENT
 false
 UNITS
 m
 VERSION
 1.1.1
 WIDTH
 256
 
 I'm not sure if MAP_IMAGETYPE=agg is the one which selects the
 outputformat or not, but the map seems to be rendered with AGG (I
 could be wrong, of course).
 
 So, what am I missing here? Is there another parameter that should be
 sent to mapserver to select the outputformat?
 
 By the way, the image file generated has these properties: img.png:
 PNG image, 256 x 256, 8-bit colormap, interlaced
 
 Thanks,
 Adrian
 
 ___
 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] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Michael Shishcu
hi, Adrian
try to add ... MIMETYPE image/png...
regards, michael

2009/10/14 Adrian Popa adrian_gh.p...@romtelecom.ro

  Hello all,

 My goal is to setup tilecache (which is proving to be a real pain), and so
 far I've noticed that even if I configured my map to generate noninterlaced
 PNGs (instructions here:
 http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
 it still generates interlaced PNGs.

 Here is my outputformat (the only one defined) in my map:
 OUTPUTFORMAT
 NAME 'AGG'
 DRIVER AGG/PNG
 IMAGEMODE RGBA
 TRANSPARENT ON
 FORMATOPTION INTERLACE=OFF
 END

 The parameters that get sent to my mapserver instance are:
  BBOX2896046.12635,5831228.011975,2935181.884825,5870363.77045EXCEPTIONS
 application/vnd.ogc.se_inimageFORMATpng HEIGHT256LAYERS
 Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudeteMAP
 /var/www/html/map/rtc_base.map 
 MAP_IMAGETYPEaggMAXEXTENTleft-bottom=(20.26,43.16)
 right-top=(29.7,48.46)MAXRESOLUTION156543REQUESTGetMapSERVICEWMSSRS
 EPSG:900913STYLES
 TRANSITIONEFFECTresizeTRANSPARENTfalseUNITSmVERSION1.1.1 WIDTH256
 I'm not sure if MAP_IMAGETYPE=agg is the one which selects the outputformat
 or not, but the map seems to be rendered with AGG (I could be wrong, of
 course).

 So, what am I missing here? Is there another parameter that should be sent
 to mapserver to select the outputformat?

 By the way, the image file generated has these properties: img.png: PNG
 image, 256 x 256, 8-bit colormap, interlaced

 Thanks,
 Adrian


 ___
 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] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Rahkonen Jukka
Hi,
 
It is possible that rendering does not go through agg.  I am not sure, but 
perhaps by adding
MIMETYPE image/png2
to outputformat and calling either FORMAT=image/png2 or FORMAT=image/png
you could do some comparisons.
 
-Jukka Rahkonen-




Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Adrian Popa
Lähetetty: 14. lokakuuta 2009 16:36
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] mapserver produces interlaced PNGs even if I 
configured the map to output noninterlaced PNGs


Hello all, 

My goal is to setup tilecache (which is proving to be a real pain), and 
so far I've noticed that even if I configured my map to generate noninterlaced 
PNGs (instructions here: 
http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
 it still generates interlaced PNGs.

Here is my outputformat (the only one defined) in my map:
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION INTERLACE=OFF
END

The parameters that get sent to my mapserver instance are:

BBOX 2896046.12635,5831228.011975,2935181.884825,5870363.77045  
EXCEPTIONS   application/vnd.ogc.se_inimage 
FORMAT   png
HEIGHT   256
LAYERS   Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete   
MAP  /var/www/html/map/rtc_base.map 
MAP_IMAGETYPEagg
MAXEXTENTleft-bottom=(20.26,43.16) right-top=(29.7,48.46)   
MAXRESOLUTION156543 
REQUEST  GetMap 
SERVICE  WMS
SRS  EPSG:900913
STYLES   

TRANSITIONEFFECT resize 
TRANSPARENT  false  
UNITSm  
VERSION  1.1.1  
WIDTH256

I'm not sure if MAP_IMAGETYPE=agg is the one which selects the 
outputformat or not, but the map seems to be rendered with AGG (I could be 
wrong, of course).

So, what am I missing here? Is there another parameter that should be 
sent to mapserver to select the outputformat?

By the way, the image file generated has these properties: img.png: PNG 
image, 256 x 256, 8-bit colormap, interlaced

Thanks,
Adrian



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


Re: [mapserver-users] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Adrian Popa

Hmm,
I did that, and kept the same query parameters and I get this error:

msPostMapParseOutputFormatSetup(): General error message. Unable to 
select IMAGETYPE `agg'.


So, it seems that imagetype is useful after all.


Guillaume Sueur wrote:

hi,

rename your OUTPUTFORMAT to 'PNG' for it to be used when asking for png
format. 


Guillaume

Le mercredi 14 octobre 2009 à 16:36 +0300, Adrian Popa a écrit :
  
Hello all, 


My goal is to setup tilecache (which is proving to be a real pain),
and so far I've noticed that even if I configured my map to generate
noninterlaced PNGs (instructions here:
http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
 it still generates interlaced PNGs.

Here is my outputformat (the only one defined) in my map:
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION INTERLACE=OFF
END

The parameters that get sent to my mapserver instance are:
BBOX
2896046.12635,5831228.011975,2935181.884825,5870363.77045
EXCEPTIONS
application/vnd.ogc.se_inimage
FORMAT
png
HEIGHT
256
LAYERS
Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete
MAP
/var/www/html/map/rtc_base.map
MAP_IMAGETYPE
agg
MAXEXTENT
left-bottom=(20.26,43.16)
right-top=(29.7,48.46)
MAXRESOLUTION
156543
REQUEST
GetMap
SERVICE
WMS
SRS
EPSG:900913
STYLES


TRANSITIONEFFECT
resize
TRANSPARENT
false
UNITS
m
VERSION
1.1.1
WIDTH
256

I'm not sure if MAP_IMAGETYPE=agg is the one which selects the
outputformat or not, but the map seems to be rendered with AGG (I
could be wrong, of course).

So, what am I missing here? Is there another parameter that should be
sent to mapserver to select the outputformat?

By the way, the image file generated has these properties: img.png:
PNG image, 256 x 256, 8-bit colormap, interlaced

Thanks,
Adrian

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




  



--
--- 
Adrian Popa

NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP  Metro
Compartiment IP Core  Backbone
Phone: +40 21 400 3099

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


Re: [mapserver-users] mapserver produces interlaced PNGs even if I configured the map to output noninterlaced PNGs

2009-10-14 Thread Adrian Popa

Thanks Jukka,

I added MIMETYPE image/png2 to my OUTPUTFORMAT and I called with 
FORMAT=image/png2, and now, the PNGs are non-interlaced!


I don't really understand what the difference is, but  I'm glad it works.

Thanks again... now I only have to figure out why tilecache isn't 
working yet...


Rahkonen Jukka wrote:

Hi,
 
It is possible that rendering does not go through agg.  I am not sure, 
but perhaps by adding

MIMETYPE image/png2
to outputformat and calling either FORMAT=image/png2 or FORMAT=image/png
you could do some comparisons.
 
-Jukka Rahkonen-



*L�hett�j�:* mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] *Puolesta *Adrian
Popa
*L�hetetty:* 14. lokakuuta 2009 16:36
*Vastaanottaja:* mapserver-users@lists.osgeo.org
*Aihe:* [mapserver-users] mapserver produces interlaced PNGs even
if I configured the map to output noninterlaced PNGs

Hello all,

My goal is to setup tilecache (which is proving to be a real
pain), and so far I've noticed that even if I configured my map to
generate noninterlaced PNGs (instructions here:

http://www.mapserver.org/faq.html#why-doesn-t-pil-python-imaging-library-open-my-pngs),
it still generates interlaced PNGs.

Here is my outputformat (the only one defined) in my map:
OUTPUTFORMAT
NAME 'AGG'
DRIVER AGG/PNG
IMAGEMODE RGBA
TRANSPARENT ON
FORMATOPTION INTERLACE=OFF
END

The parameters that get sent to my mapserver instance are:
BBOX|2896046.12635,5831228.011975,2935181.884825,5870363.77045|
EXCEPTIONS  |application/vnd.ogc.se_inimage|
FORMAT  |png|
HEIGHT  |256|
LAYERS
|Judete,RuralSate,Rural,Urban,roads,roads-buc,buildings,GranitaJudete|

MAP |/var/www/html/map/rtc_base.map|
MAP_IMAGETYPE   |agg|
MAXEXTENT   |left-bottom=(20.26,43.16) right-top=(29.7,48.46)|
MAXRESOLUTION   |156543|
REQUEST |GetMap|
SERVICE |WMS|
SRS |EPSG:900913|
STYLES  
TRANSITIONEFFECT|resize|
TRANSPARENT |false|
UNITS   |m|
VERSION |1.1.1|
WIDTH   |256|


I'm not sure if MAP_IMAGETYPE=agg is the one which selects the
outputformat or not, but the map seems to be rendered with AGG (I
could be wrong, of course).

So, what am I missing here? Is there another parameter that should
be sent to mapserver to select the outputformat?

By the way, the image file generated has these properties:
img.png: PNG image, 256 x 256, 8-bit colormap, interlaced

Thanks,
Adrian




--
--- 
Adrian Popa

NOC Division
Network Engineer
Divizia Centrul National de Operare Retea
Departament Transport IP  Metro
Compartiment IP Core  Backbone
Phone: +40 21 400 3099

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