thanks for their collaboration solve the problem:<br>
here mapfile: <br>
MAP<br>
IMAGETYPE PNG<br>
EXTENT -81.328391 -18.351232 -68.653396 -0.038607<br>
SIZE 400 300<br>
IMAGECOLOR 255 255 255<br>
<br>
LAYER<br>
NAME Peru_dep<br>
CONNECTIONTYPE postgis<br>
CONNECTION "user=postgres dbname=sighco host=localhost password=***** port=5432"<br>
DATA 'the_geom FROM departamentos_tp_perud2002'<br>
STATUS ON<br>
TYPE POLYGON<br>
CLASS<br>
COLOR 232 232 232<br>
END<br>
<br>
#CLASS<br>
#NAME "Departamentos del Perú"<br>
#STYLE<br>
# COLOR 232 232 232<br>
#OUTLINECOLOR 32 32 32<br>
END<br>
END<br>
END<br>
END<br>
<br><br><div><span class="gmail_quote">2006/5/12, Dirk Jesko <<a href="mailto:ml.dje@geocontent.de">ml.dje@geocontent.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Eduardo,<br><br>it seems that there is no spatial extent specified in the mapfile and<br>mapserver can not guess it. I guess, that you need to add an EXTEND in<br>the MAP part, like<br><br>MAP<br> IMAGETYPE PNG<br> SIZE 400 300
<br> IMAGECOLOR 255 255 255<br> EXTENT 3100000 5200000 4100000 6200000<br><br>See the mapserver docs, which says<br><br>"EXTENT [minx] [miny] [maxx] [maxy]<br> The spatial extent of the map to be created. In most cases you will
<br> need to specify this, although mapserver can sometimes (expensively)<br> calculate one if it is not specified."<br><br>If your layer is not to large (not to many features), try the bounding<br>box of the data. You can get it with the following query:
<br><br>SELECT box2d("the_geom")<br>FROM "departamentos_tp_perud2002";<br><br><br>Regards,<br>Dirk<br><br><br>Eduardo Arévalo wrote:<br><br>> Hi list<br>> I must mapserver v 4.8.3 and one bases postgres v 8 with postgis
1.0.6<br>> on Centos 4.3<br>> mapfile of connection is:<br>><br>> MAP<br>> IMAGETYPE PNG<br>> SIZE 400 300<br>> IMAGECOLOR 255 255 255<br>><br>> LAYER<br>> NAME Peru_dep
<br>> CONNECTIONTYPE postgis<br>> CONNECTION "user=postgres dbname=sighco host=localhost<br>> password=123456 port=5432"<br>> DATA "the_geom from departamentos_tp_perud2002"
<br>> STATUS ON<br>> TYPE POLYGON<br>> END<br>><br>> #CLASS<br>> NAME "Departamentos del Perú"<br>> #STYLE<br>> # COLOR 232 232 232
<br>> #OUTLINECOLOR 32 32 32<br>> END<br>> END<br>> END<br>> END<br>> in order to invoke it:<br>> <a href="http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map">
http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map</a><br>> <<a href="http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map">
http://10.1.6.46/cgi-bin/mapserv?map=/home/earevalo/mapserver-4.8.3/tests/conect.map&layer=Peru_dep&mode=map</a>><br>><br>> the errors are:<br>> msDrawMap(): Image handling error. Unable to initialize image.
<br>> msCalculateScale(): General error message. Invalid image extent,<br>> minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<br>> msCalculateScale(): General error message. Invalid image extent,<br>
> minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000.<br>> mapserv(): Web application error. No way to generate map extent.<br>> aid please<br><br></blockquote></div><br>