[mapserver-users] msWMSLoadGetMapParams(): Image handling error. Unsupported output format (image/png; bits=8)
Hello all, I've been using the following OUTPUTFORMAT with mapserver 6: IMAGETYPE png OUTPUTFORMAT NAME "png8" DRIVER AGG/PNG8 MIMETYPE "image/png; mode=8bit" EXTENSION "png" TRANSPARENT ON IMAGEMODE RGBA FORMATOPTION "QUANTIZE_FORCE=off" FORMATOPTION "QUANTIZE_COLORS=256" FORMATOPTION "INTERLACE=ON" END It works with vector data but it does a really bad job in rendering PIXMAP SYMBOLS, png files. No matter what other settings I tried in the OUTPUTFORMAT, I get the same error as stated in the subject field. I tried every example from the documentation but anything else than what I have above, gives me that error. Back in Mapserver5 I was using: IMAGETYPE png24 OUTPUTFORMAT NAME 'AGGA' DRIVER 'AGG/PNG' IMAGEMODE RGBA MIMETYPE "image/png" EXTENSION "png" END It rendered everything ok but this does not work anymore as well. Can you help me out in trying to fix this as to display everything smooth? Thank you, -- *Raiz Roland Robert* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] msWMSLoadGetMapParams(): Image handling error. Unsupported output format (image/png; bits=8)
Donald, Thanks for the examples. The first one returns the same error, the second one returns: loadOutputFormat(): General error message. OUTPUTFORMAT clause references driver CAIRO/PNG, but this driver isn't configured; It is odd, I thought that you don t even need to declare an outputformat. I must say that I am using GeoMoose top view the map file, an I have and extra section (compared to the ms5.0.0 version) which did not exist before (do I even need it?): WEB METADATA 'ows_title' 'Parcel Maps' 'ows_srs' 'EPSG:26915 EPSG:4326 EPSG:900913 EPSG:4269 EPSG:2277' 'ows_enable_request' '*' 'ows_onlineresource' 'http://www.geomoose.org' END END I was thinking that maybe it has something to do with the OWS but if I remove that part, again, it does not work. On Fri, Jul 26, 2013 at 3:04 PM, Donald Kerr wrote: > Robert, > > ** ** > > I am using the following: > > ** ** > > *OUTPUTFORMAT* > > * NAME "png"* > > * DRIVER "AGG/PNG"* > > * MIMETYPE "image/png"* > > * IMAGEMODE "RGBA"* > > * EXTENSION "png"* > > * FORMATOPTION "GAMMA=0.75"* > > * TRANSPARENT ON # Requires RGBA, not RGB otherwise errors. Also > requires OFFSITE 255 255 255 in LAYER* > > *END* > > ** ** > > Or, Using Cairo (though I still have some issues with labelling using this > - https://github.com/mapserver/mapserver/issues/4581): > > ** ** > > *OUTPUTFORMAT* > > * NAME "png"* > > * DRIVER "CAIRO/PNG"* > > * MIMETYPE "image/png"* > > * IMAGEMODE "RGBA"* > > * EXTENSION "png"* > > * FORMATOPTION "GAMMA=0.75"* > > * TRANSPARENT ON # Requires RGBA, not RGB otherwise errors. Also > requires OFFSITE 255 255 255 in LAYER* > > *END* > > ** ** > > Regards, > > ** ** > > Donald > > ** ** > > ** ** > > ** ** > > *From:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Robert R. Raiz > *Sent:* 26 July 2013 13:00 > *To:* mapserver-users@lists.osgeo.org > *Subject:* [mapserver-users] msWMSLoadGetMapParams(): Image handling > error. Unsupported output format (image/png; bits=8) > > ** ** > > Hello all, > > I've been using the following OUTPUTFORMAT with mapserver 6: > > IMAGETYPE png > > ** ** > > OUTPUTFORMAT > > NAME "png8" > > DRIVER AGG/PNG8 > > MIMETYPE "image/png; mode=8bit" > > EXTENSION "png" > > TRANSPARENT ON > > IMAGEMODE RGBA > > FORMATOPTION "QUANTIZE_FORCE=off" > > FORMATOPTION "QUANTIZE_COLORS=256" > > FORMATOPTION "INTERLACE=ON" > > END > > > It works with vector data but it does a really bad job in rendering PIXMAP > SYMBOLS, png files. > No matter what other settings I tried in the OUTPUTFORMAT, I get the same > error as stated in the subject field. > > I tried every example from the documentation but anything else than what I > have above, gives me that error. > > Back in Mapserver5 I was using: > >IMAGETYPE png24 > > OUTPUTFORMAT > > NAME 'AGGA' > > DRIVER 'AGG/PNG' > > IMAGEMODE RGBA > > MIMETYPE "image/png" > > EXTENSION "png" > > END > > It rendered everything ok but this does not work anymore as well. > > Can you help me out in trying to fix this as to display everything smooth? > > Thank you, > > ** ** > > -- > *Raiz Roland Robert* > > > -- *Raiz Roland Robert* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] PIXMAP Symbols rendered badly in MapServer 6.2.1
Hello all, Recently I switched from Mapserver 5.0 & Chameleon to Mapserver 6.2.1 and GeoMoose. The problem is that I lost the quality of my png icons (symbols). They do not render well in the new setup - GeoMoose nor with legend or shp2img commands (fuzzy edges, no clear colors) like it would render 8bit instead of a higher quality. I wonder what could be the cause of it? maybe libpng 1.6.2? (I used 1.2.43 back in MapServer 5.0); I tried both the legend command and shp2img to see what happens there. I am pasting the result from shp2img --all_debug 5: msLoadMap(): 0.003s msDrawMap(): rendering using outputformat named png24 (AGG/PNG). msDrawMap(): WMS/WFS set-up and query, 0.000s msDrawMap(): Layer 0 (Land), 0.002s libpng warning: iCCP: known incorrect sRGB profile libpng warning: Interlace handling should be turned on when using png_read_image msDrawMap(): Layer 1 (Hospital), 0.008s msDrawMap(): Layer 2 (Clinic), 0.034s libpng warning: iCCP: known incorrect sRGB profile libpng warning: Interlace handling should be turned on when using png_read_image msDrawMap(): Layer 3 (Library), 0.019s libpng warning: iCCP: known incorrect sRGB profile libpng warning: Interlace handling should be turned on when using png_read_image msDrawMap(): Layer 4 (Museum), 0.007s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.074s msSaveImage(elpaso2.png) total time: 0.107s msFreeMap(): freeing map at 0x1a03480. freeLayer(): freeing layer at 0x1a0c3c0. freeLayer(): freeing layer at 0x1a0ddc0. freeLayer(): freeing layer at 0x1a11550. freeLayer(): freeing layer at 0x1a148f0. freeLayer(): freeing layer at 0x1a17bc0. freeLayer(): freeing layer at 0x1a1aed0. shp2img total time: 0.186s As you can see, except layer 0 where I do not have symbols, all of them return an error. Can anyone help me fix this issue? Thank you all, -- *Robert* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] shptree command does not change .qix 'date modified' when re-run?
Hello, A thing I noticed today is that when I run the shptree command on a shapefile that already has a .qix file, a simple ls -l command shows the old date of the file, it does not see it as being replaced. Is anyone familiar with this behavior? I am not sure if it replaces the file or not. -- *Raiz Roland Robert* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How to change output from selectOutputFormat('PNG32')?
Hello, Basically I would want to get a resulting png8 files because png32 produces a larger file (in KiB). Can someone clear this out for me? If I change PNG32 to PNG8 is returns the same thing (a png32). If I comment this line in the script I still get PNG32. Where does it get the image format from? I thought it is from the mapfile but I cannot seem to change this output. I would need some help in where to look first in order to find the issue. Running shp2img on the mapfile returns the desired outcome, a png8 Thank you all, -- *Raiz Roland Robert* ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] About FILTER and FILTERITEM
Hello Jukka The post from stackexchange was mine. It was at the time when I migrated everything from 5.0 to 6.2 and the docs for 6.2 were not too clear. I too use FILTEITEM when I want to single out something (like the roads from Tiger edges); I am using Mapserver for 4 years now and I still do not have a clear patter to when and why I use Expressions and/or FILTERITEM. The more it resembles SQL, the better But your topic here helps a lot. :) p.s.: sorry if I messed up the mailing-list posting rules. I am very bad in replying to mailing lists. They always seemed hard to follow for me :-) >Hi, > >I started to play with filter and filteritem because I happened to see this >question >>http://gis.stackexchange.com/questions/65724/mapserver-6-2-concatenate-attributes-in-filter. > I >thought that the idea was odd and unpractical but interesting and I >thought it would be fast to test. >It was not but at least it was educational. > >I can do such concatenation simply with Spatialite data by using the layer >DATA as >CONNECTION "\ms4w\apps\states_spl_3. >sqlite" >DATA "select * from states_view where STATE_NAME||STATE_FIPS='Illinois17'" > >I am ready to believe that such concatenation with FILTER is not possible with >the 6.x series. >Other opinions? > >-Jukka Rahkonen- -- Raiz Roland Robert ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users