[Mapserver-users] image output problem with mode=map / mapserver 4.0 - NT4 - Tomcat 4.1

François-Xavier Prunayre fx.prunayre at oieau.fr
Mon Jan 12 09:37:19 EST 2004


C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_0ACD_01C3D921.F6A0FE40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,=20

I've a strange image output with mapserver 4.0 / NT4 / Tomcat 4.1 when usin=
g mode=3Dmap in the URL.

My URL with a basic HTML template <img SRC=3D"[img]" width=3D540 height=3D3=
40 border=3D1> works.
http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe?
map=3DD:/Tomcat4.1/webapps/agentstruts/mapservice/test/demo.map&=20
Mapserver writes an image to the tmp directory ...

But when I use mode=3Dmap http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe?
map=3DD:/Tomcat4.1/webapps/agentstruts/mapservice/test/demo.map&mode=3Dmap
I get on mozilla "The=20
image "http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe?
map=3DD:/Tomcat4.1/webapps/agentstruts/mapservice/test/demo.map&mode=3Dmap =
cannot=20
be displayed, because it contains errors". IE display the image but it's no=
t=20
correct (stretch & mix of color).=20

This error seems to cause WMS GetMap not to work. WFS GetFeature, DescribeF=
eatureType is ok.=20

It seems to be nearly the same type of problem as=20
http://lists.maptools.org/pipermail/chameleon/2003-August/000045.html
on which Daniel Morissette participate. But no answer to this problem.

The same project on apache / NT4 works !=20

Any ideas ?

Thanks for your help.

Fran=E7ois-Xavier Prunayre
IOW - GIS Engineer
fx.prunayre at oieau.fr

--=20
Ce message a ete verifie par MailScanner pour des virus ou des polluriels e=
t rien de suspect n'a ete trouve.

Les donnees et renseignements contenus dans ce message sont personnels, con=
fidentiels et secrets.Toute publication, utilisation ou diffusion, meme par=
tielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, con=
fidential and secret. Any total or partial publication, use or distribution=
 must be authorized.


------=_NextPart_000_0ACD_01C3D921.F6A0FE40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all, <BR><BR>I've a strange image outpu=
t with=20
mapserver 4.0 / NT4 / Tomcat 4.1 when using mode=3Dmap in the URL.<BR><BR>M=
y URL=20
with a basic HTML template &lt;img SRC=3D"[img]" width=3D540=20
height=3D340&nbsp;border=3D1&gt; works.<BR><A=20
href=3D"http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe">http://127.0.0.1=
:8080/agentstruts/cgi/mapserv.exe</A>?<BR>map=3DD:/Tomcat4.1/webapps/agents=
truts/mapservice/test/demo.map&amp;=20
<BR>Mapserver writes an image to the tmp directory ...<BR><BR>But when I us=
e=20
mode=3Dmap <A=20
href=3D"http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe">http://127.0.0.1=
:8080/agentstruts/cgi/mapserv.exe</A>?<BR>map=3DD:/Tomcat4.1/webapps/agents=
truts/mapservice/test/demo.map&amp;mode=3Dmap<BR>I=20
get on mozilla "The <BR>image "<A=20
href=3D"http://127.0.0.1:8080/agentstruts/cgi/mapserv.exe">http://127.0.0.1=
:8080/agentstruts/cgi/mapserv.exe</A>?<BR>map=3DD:/Tomcat4.1/webapps/agents=
truts/mapservice/test/demo.map&amp;mode=3Dmap=20
cannot <BR>be displayed, because it contains errors". IE display the image =
but=20
it's not <BR>correct (stretch &amp; mix of color). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This error seems to cause WMS GetMap not t=
o work.=20
WFS GetFeature, DescribeFeatureType is ok. <BR><BR>It seems to be nearly th=
e=20
same type of problem as <BR><A=20
href=3D"http://lists.maptools.org/pipermail/chameleon/2003-August/000045.ht=
ml">http://lists.maptools.org/pipermail/chameleon/2003-August/000045.html</=
A><BR>on=20
which Daniel Morissette participate. But no answer to this problem.<BR><BR>=
The=20
same project on apache / NT4 works ! <BR><BR>Any ideas ?<BR><BR>Thanks for =
your=20
help.<BR><BR>Fran=E7ois-Xavier Prunayre<BR>IOW - GIS Engineer<BR><A=20
href=3D"mailto:fx.prunayre at oieau.fr">fx.prunayre at oieau.fr</A></FONT></DIV><=
/BODY><br />--=20
<br />Ce message a ete verifie par <a href=3D"http://www.mailscanner.info/"=
><b>MailScanner</b></a>
pour des virus ou des polluriels et rien de suspect n'a ete trouve.
<DIV><FONT face=3D3DArial size=3D3D2></FONT>&nbsp;</DIV>
Les donnees et renseignements contenus dans ce message sont personnels, con=
fidentiels et secrets.Toute publication, utilisation ou diffusion, meme par=
tielle, doit etre autorisee.
<DIV><FONT face=3D3DArial size=3D3D2></FONT>&nbsp;</DIV>
Any data and information contained in this electronic mail is personal, con=
fidential and secret. Any total or partial publication, use or distribution=
 must be authorized.
</HTML>

------=_NextPart_000_0ACD_01C3D921.F6A0FE40--




More information about the mapserver-users mailing list