HELP, mode=map returns text string not image (KNOW BUG??).
Reuven Levitt
reuven at LEVITT.NET
Mon Sep 13 11:19:01 PDT 2004
I actually did mean "mode=map".
That is what i used, "mode=img" was a typo
> >I am running MS4.2 on WinXP over Tomcat.
> >
> >I am using a very simple Map file that creates a
> >single layer (see below).
> >
> >When mode=browse it works fine, but when I use
> >mode=img it either returns a long string of unicode
> >characters, or it returns the following exception:
> >
> >java.lang.StringIndexOutOfBoundsException: String
> >index out of range: 0
> > at
> java.lang.String.charAt(String.java:444)
> > at
>
>org.apache.coyote.Response.addHeader(Response.java:374)
> > at
>
>org.apache.coyote.tomcat4.CoyoteResponse.addHeader(CoyoteResponse.java:897)
> > at
>
>org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseFacade.java:383)
> > at
>
>org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1844)
> > at
>
>org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:640)
> >
> >
> >Is there a know problem, or am I doing something
> >terribly wrong?
> >
> >Thanks,
> >Reuven.
> >
> >
> > LAYER
> > NAME "credits"
> > STATUS default
> > TRANSFORM FALSE
> > TYPE ANNOTATION
> > FEATURE
> > POINTS
> > 200 150
> > END
> > TEXT 'This is a
> test of the ability to
> >display
> >text.'
> > END
> > CLASS
> > LABEL
> > TYPE
> BITMAP
> > COLOR 255
> 0 0
> > END
> > END
> > END
>
>
_________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months
> FREE*.
> http://join.msn.com/?page=features/virus
>
>
More information about the MapServer-users
mailing list