Bonjour,

J'utilise une module nommé "mapserver" qui me permet de créer des cartes sous forme d'image que j'affiche dans une page html. J'arrive à faire fonctionner mapserver et créer mon image, or lorsque je veux l'afficher j'ai un problème. Je pense que le problème viens du header html.
Voic mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!c:/python24/python.exe -u

import mapscript
mf_path = "C:\\ms4w\\Apache\\htdocs\\test.map"
mf = mapscript.mapObj(mf_path)
map_image = mf.draw()
map_image.save("../htdocs/tmp/world.png")
print "Content-Type: text/html \n"
print """
<HTML>
<HEAD>
      <TITLE>affichage de la carte</TITLE>
</HEAD>
<BODY>
<table border="1">
<tr>
<td>"""
print """<input type="image" name="img" src="../htdocs/tmp/world.png"/>"""

print """
</td>
</tr>
</table>
</BODY>
</HTML>"""
merci..