[mapserver-users] Not sure how to debug or fix -image not being produced due to msCalculateScale(): General error message

Mark Volz MarkVolz at co.lyon.mn.us
Mon Jun 4 09:14:43 PDT 2012


Hello,

I received a report that a GeoMOOSE / Mapserver web mapping application http://geomoose.lyonco.org/MurrayMoose/ is creating pink tiles when zoomed out.  I found out that the user has a very large monitor, so I thought that I may have forgot to set the MAP MAXSIZE parameter.  That was not the issue.

Next,  The user then reported that the pink screen only was present when boundary>municipal layer was turned on.  This particular layer is part of a mapfile that contains several layers.  All of the other layers are working fine.  Also when he zooms into the map the layer appears on his application as expected.  So I thought that the issue has to be with the layers*  within the mapfile.

*The municipal boundary layer in GeoMOOSE is tied to the Townships and CityLimits layer in a single map file.

The layer file itself is a generic template that I have been using for several different applications without complaint.  I also tested the application on my computer using a variety of browsers including IE8, which is the browser the user reported that he was having trouble with the pink screens.  I also adjusted the browser size to make it the requested image larger, zoomed in and out, and I have not had any trouble.

I included a part of my map file as well as a log file from what I think is a unsuccessful request and a successful request from the same user.

MAP FILE SNIPPET:

        LAYER #townships
                NAME 'Townships'
                DATA 'Murray/MurrTwpMCC'
                STATUS ON
                TYPE POLYGON
                LABELMINSCALEDENOM 10000
                CLASS
                        NAME 'Townships'
                        TEXT ([TWPNAME] TWP)
                        STYLE
                                SYMBOL 'countydashed'
                                SIZE 3
                                OUTLINECOLOR 0 50 0
                                COLOR -1 -1 -1
                        END #style
                        LABEL
                                ANTIALIAS TRUE
                                TYPE TRUETYPE
                                FONT vera_sans
                                MAXSIZE 9
                                SIZE 8
                                MINSIZE 6
                                ANTIALIAS TRUE
                                COLOR 10 10 10
                                OUTLINECOLOR 220 220 220
                                OUTLINEWIDTH 3
                                BUFFER 2
                        END #label
                END #class
        END #layer
        LAYER
                NAME 'CityLimits'
                TYPE POLYGON
                DATA 'Murray/MurrMuniMCC'
                STATUS ON
                LABELITEM 'NAME_'
                CLASS
                        NAME 'City Limits'
                        STYLE
                                SYMBOL 'dashed2'
                                SIZE 3
                                OUTLINECOLOR 226 208 84
                                COLOR -1 -1 -1
                        END #STYLE
                        LABEL
                                ANTIALIAS TRUE
                                TYPE TRUETYPE
                                PRIORITY 5
                                FONT vera_sans
                                SIZE 8
                                ANTIALIAS TRUE
                                COLOR 113 53 57
                                OUTLINECOLOR 255 232 100
                                BUFFER 2
                                MINFEATURESIZE auto
                                PARTIALS FALSE
                        END #Label
                END #class
        END #layer

LOG FILE:

[Mon Jun 04 10:43:59 2012].247000 CGI Request 1 on process 780
[Mon Jun 04 10:43:59 2012].263000 msDrawMap(): Layer 0 (lakes), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 1 (Parks), 0.031s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 2 (Ditches), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 3 (Townships), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 4 (CityLimits), 0.000s
[Mon Jun 04 10:43:59 2012].294000 msDrawMap(): Layer 5 (sections), 0.000s
[Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 6 (parcels), 0.016s
[Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 7 (roads), 0.000s
[Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Layer 8 (roadsanno), 0.000s
[Mon Jun 04 10:43:59 2012].310000 msDrawMap(): Drawing Label Cache, 0.000s
[Mon Jun 04 10:43:59 2012].310000 msDrawMap() total time: 0.063s
[Mon Jun 04 10:43:59 2012].669000 msSaveImage() total time: 0.359s
[Mon Jun 04 10:43:59 2012].669000 mapserv request processing time (loadmap not incl.): 0.422s
[Mon Jun 04 10:43:59 2012].669000 msFreeMap(): freeing map at 01516108.
[Mon Jun 04 10:44:01 2012].138000 msCalculateScale(): General error message. Invalid image width or height.
[Mon Jun 04 10:44:01 2012].138000 msPrepareImage(): General error message. Image dimensions not specified.
[Mon Jun 04 10:44:01 2012].138000 msDrawMap(): Image handling error. Unable to initialize image.
[Mon Jun 04 10:44:01 2012].185000 msFreeMap(): freeing map at 01D4BBF8.
[Mon Jun 04 10:44:01 2012].325000 CGI Request 1 on process 7556
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 0 (lakes), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 1 (Parks), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 2 (Ditches), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 3 (Townships), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 4 (CityLimits), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 5 (sections), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 6 (parcels), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 7 (roads), 0.000s
[Mon Jun 04 10:44:01 2012].325000 msDrawMap(): Layer 8 (roadsanno), 0.000s
[Mon Jun 04 10:44:01 2012].341000 msDrawMap(): Drawing Label Cache, 0.016s
[Mon Jun 04 10:44:01 2012].341000 msDrawMap() total time: 0.016s
[Mon Jun 04 10:44:01 2012].341000 msSaveImage() total time: 0.000s
[Mon Jun 04 10:44:01 2012].341000 mapserv request processing time (loadmap not incl.): 0.016s
[Mon Jun 04 10:44:01 2012].341000 msFreeMap(): freeing map at 01516240.


Thanks for all the help

Mark Volz
GIS Specialist



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120604/47e6b1f3/attachment-0001.html>


More information about the mapserver-users mailing list