Maybe you don't set the EXTENT or the SIZE in the .map file.<br />Take a
look here: http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj<br
/>bye<br /><br /><br />-- <br />Pietro Giannini<br />Bytewise srl - Area
GIS<br />41&deg;50'38.58&quot;N 12&deg;29'13.39&quot;E<br /><br /><br />On
Ven, 16 Febbraio 2007 2:18 pm, Agustina Buccella wrote:<br />&gt; Thanks
for the answers.... I thought that the problem was the TYPE in the<br
/>&gt; mapfile but the problem was another one... when I try to see data
using<br />&gt; the URL:<br />&gt; <br />&gt; 
http://localhost/cgi-bin/mapserv?map=/usr/local/apache2/htdocs/mapserver/ejemplo_postgis3.map&amp;mode=map<br
/>&gt; <br />&gt;  I receive the following errors:<br />&gt; <br />&gt;  
msDrawMap(): Image handling error. Unable to initialize image.<br />&gt;  
msPrepareImage(): General error message. Image dimensions not
specified.<br />&gt;   msCalculateScale(): General error message. Invalid
image extent,<br />&gt; minx=-1.000000, miny=-1.000000, maxx=-1.000000,
maxy=-1.000000.<br />&gt;   mapserv(): Web application error. No way to
generate map extent.<br />&gt; <br />&gt;  My .map file contains the
following:<br />&gt; <br />&gt;  LAYER<br />&gt;    NAME pg_test<br />&gt;
   TYPE POINT<br />&gt;    STATUS DEFAULT<br />&gt;    CONNECTIONTYPE
POSTGIS<br />&gt;     CONNECTION &quot;host=localhost port=5432
dbname=miprimergis password=****<br />&gt; user=*****&quot;<br />&gt;   
DATA &quot;the_geom FROM cities&quot;<br />&gt;  END<br />&gt;  END<br
/>&gt; <br />&gt;  and my .sql to load data in the postgis database is:<br
/>&gt; <br />&gt;  BEGIN;<br />&gt;  CREATE TABLE &quot;cities&quot; (gid
serial PRIMARY KEY,<br />&gt;  &quot;city_name&quot; varchar(40),<br
/>&gt;  &quot;gmi_admin&quot; varchar(7),<br />&gt; 
&quot;admin_name&quot; varchar(42),<br />&gt;  &quot;fips_cntry&quot;
varchar(2),<br />&gt;  &quot;cntry_name&quot; varchar(40),<br />&gt; 
&quot;status&quot; varchar(50),<br />&gt;  &quot;pop_rank&quot; int2,<br
/>&gt;  &quot;pop_class&quot; varchar(22),<br />&gt;  &quot;port_id&quot;
int2);<br />&gt;  SELECT
AddGeometryColumn('','cities','the_geom','-1','POINT',2);<br />&gt; 
INSERT INTO &quot;cities&quot;<br />&gt;
(&quot;city_name&quot;,&quot;gmi_admin&quot;,&quot;admin_name&quot;,&quot;fips_cntry&quot;,&quot;cntry_n<br
/>&gt; 
ame&quot;,&quot;status&quot;,&quot;pop_rank&quot;,&quot;pop_class&quot;,&quot;port_id&quot;,the_geom)
VALUES<br />&gt; ('Drammen','NOR-<br />&gt; 
BSK','Buskerud','NO','Norway','Provincial capital','6','50,000 to<br
/>&gt; 100,000','2378<br />&gt; 
0','01010000000000006066662440000000A099D94D40');<br />&gt;  INSERT INTO
&quot;cities&quot;<br />&gt;
(&quot;city_name&quot;,&quot;gmi_admin&quot;,&quot;admin_name&quot;,&quot;fips_cntry&quot;,&quot;cntry_n<br
/>&gt; 
ame&quot;,&quot;status&quot;,&quot;pop_rank&quot;,&quot;pop_class&quot;,&quot;port_id&quot;,the_geom)
VALUES<br />&gt; ('Trinidad','BOL<br />&gt;  -EBE','El
Beni','BL','Bolivia','Provincial capital','6','50,000 to<br />&gt;
100,000','0',<br />&gt;  '0101000000000000C0CA3950C00000008097AE2DC0');<br
/>&gt;  END;<br />&gt; <br />&gt;  I read the same error in the list but
it was not the answer....<br />&gt; <br />&gt;  Thanks!<br />&gt; 
Agustina<br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt; <br />&gt;
<br />&gt; <br />&gt; <br />&gt; <br />&gt;
---------------------------------<br />&gt;  Pregunt&aacute;.
Respond&eacute;. Descubr&iacute;.<br />&gt;  Todo lo que quer&iacute;as
saber, y lo que ni imaginabas,<br />&gt;  est&aacute; en Yahoo! Respuestas
(Beta).<br />&gt;  Probalo ya!<br /><br />