[Chameleon] Error Rendering Map Image
Jennifer Zeisloft
jzeisloft at gmail.com
Fri Aug 19 00:57:58 EDT 2005
Hi Jay,
Firstly, thanks for replying!
Secondly...
- What version of MapServer and Chameleon did you upgrade from?
ms4w 1.0.3 and chameleon 2.0 to ms4w 1.2.1 and chameleon 2.2
- Do your two working applications use a different output format from
those that have stopped working?
They do not contain an explicit output format. (But neither did the
non-working apps.)
- Can you post the first 20-25 lines of your MapFile?
Please see below.
I think we have actually resolved the problem, but I am really not sure how.
We did some copying and pasting from other map files and that seemed to do
it, but I get the feeling that not all of the new code was necessary to fix
the problem. The two versions of the new/old portions code are pasted below.
While it is no longer critical, my colleagues and I could really benefit
from an explanation of why the new code works, while the other code doesn't.
Perhaps this is more of a MapServer list question, after all, but I thought
I would continue the thread here since it was started in this list.
I really appreciate your help!
Thanks,
Jennifer Zeisloft
UW-Sea Grant
Mapfile Code OLD (worked in old install, not working in new
install))-------------------------------------------------
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
EXTENT -93.04 39.66 -75.14 50.50
UNITS DD
SHAPEPATH "../data/great_lakes"
IMAGECOLOR 255 255 255
IMAGETYPE PNG24
FONTSET ../etc/fonts.txt
#
# Start of web interface definition
#
WEB
MINSCALE 20000
MAXSCALE 100000000
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
# LOG "/tmp/gmap.log"
METADATA
END
END #Web
#
# Start of reference map
#
REFERENCE
IMAGE images/gl_keymap.gif
EXTENT -93.04 39.66 -75.14 50.50
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
SIZE 120 75
END #Reference
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END #Legend
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS miles
INTERVALS 5
STATUS ON
END #Scalebar
QUERYMAP
STYLE HILITE
COLOR 255 0 0
END #Querymap
PROJECTION
"init=epsg:4326"
END # Projection
Mapfile Code: NEW (works in new
install)------------------------------------------------------------------------------------------
MAP
EXTENT -93.04 39.66 -75.14 50.50
FONTSET "../etc/fonts.txt"
IMAGECOLOR 255 255 255
IMAGETYPE PNG
SYMBOLSET "../etc/symbols.sym"
SHAPEPATH "../data/great_lakes"
SIZE 400 300
STATUS ON
UNITS DD
NAME "Great Lakes Demo"
OUTPUTFORMAT
NAME png
MIMETYPE image/png
DRIVER GD/PNG
EXTENSION png
IMAGEMODE PC256
TRANSPARENT FALSE
END
PROJECTION
"init=epsg:4326"
END #Projection
#
# Start of legend
#
LEGEND
IMAGECOLOR 255 255 255
KEYSIZE 18 12
KEYSPACING 5 5
LABEL
SIZE MEDIUM
TYPE BITMAP
BUFFER 0
COLOR 0 0 89
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
END
POSITION LL
STATUS ON
END #Legend
QUERYMAP
COLOR 255 0 0
SIZE -1 -1
STATUS OFF
STYLE HILITE
END #Querymap
#
# Start of reference map
#
REFERENCE
COLOR -1 -1 -1
EXTENT -93.04 39.66 -75.14 50.50
IMAGE "images/gl_keymap.gif"
OUTLINECOLOR 255 0 0
SIZE 120 75
STATUS ON
END #Reference
#
# Start of scalebar
#
SCALEBAR
BACKGROUNDCOLOR 0 0 0
COLOR 255 255 255
IMAGECOLOR 255 255 255
LABEL
SIZE SMALL
TYPE BITMAP
BUFFER 0
COLOR 0 0 0
FORCE FALSE
MINDISTANCE -1
MINFEATURESIZE -1
OFFSET 0 0
PARTIALS TRUE
POSITION CR
END
OUTLINECOLOR 0 0 0
POSITION LL
SIZE 150 5
STATUS ON
STYLE 0
TRANSPARENT TRUE
UNITS miles
INTERVALS 5
END #Scalebar
#
# Start of web interface definition
#
WEB
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH "/ms4w/tmp/ms_tmp/"
IMAGEURL "/ms_tmp/"
# LOG "/tmp/gmap.log"
# MINSCALE 20000
# MAXSCALE 100000000
METADATA
"original_projection" "init=epsg:4326"
"original_extents" "-93.04 39.66 -75.14 50.50"
END
QUERYFORMAT text/html
END #Web
On 8/18/05, Jason Fournier <jfournier at dmsolutions.ca> wrote:
>
> Jennifer,
>
> While I'm not a MapServer guy by any stretch I can at least get the ball
> rolling ...
>
> - What version of MapServer and Chameleon did you upgrade from?
> - Can you post the first 20-25 lines of your MapFile?
> - Do your two working applications use a different output format from
> those that have stopped working?
>
> Jay
>
>
>
> Jennifer Zeisloft wrote:
> > Greetings All-
> >
> > We recently upgraded our Chameleon and ms4w installations to the most
> > current versions. This is usually no trouble, but not this time. All
> > but two of the mapping applications (and I can't really say what is
> > different about those two applications) give the following error in the
> > map window (and no pop-up error):
> >
> > Error rendering map image:
> > A fatal error has occurred restoring your session.
> > Please restart the application.
> >
> > If you click the "update map" button, the entire interface disappears
> > and the following errors appear:
> >
> > *Warning*: [MapServer Error]: loadOutputFormat(): Parsing error near
> > (;):(line 15) in
> > *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line
> *215*
> >
> > *Warning*: Failed to open map file
> > /ms4w/tmp/sess_43052b1d38e51/1124412195-2907.map in
> > *C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php* on line
> *215*
> >
> > *Fatal error*: Call to a member function on a non-object in
> >
> *C:\ms4w\apps\chameleon\htdocs\widgets\KeyMapDHTML\KeyMapDHTML.widget.php*
> > on line *150*
> >
> >
> > Any ideas or solutions would be greatly appreciated. Thanks in advance
> > for your help!
> >
> > Jennifer Zeisloft
> > UW-Sea Grant
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
>
> --
> ________________________
> Jason Fournier
>
> DM Solutions Group Inc.
> jfournier at dmsolutions.ca
> www.dmsolutions.ca <http://www.dmsolutions.ca>
> 613.565.5056 x18
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20050818/602b9b0a/attachment-0001.html
More information about the Chameleon
mailing list