<P>
Because in ur table the constraint is 2 dimension.&nbsp; U cant store point into ur table. To store point delete the constraint for two dim.<BR>
<BR>
<BR>
On Thu, 01 Nov 2007 mcompte@sigte.udg.es wrote :<BR>
&gt;Hi,<BR>
&gt;<BR>
&gt;I might have missed something, but I keep looking at it and can't<BR>
&gt;understand why the following keeps throwing an 'invalid geometry' error :(<BR>
&gt;<BR>
&gt;Here's the table:<BR>
&gt;<BR>
&gt;------------------------<BR>
&gt;CREATE TABLE asistentes<BR>
&gt;(<BR>
&gt;&nbsp;  gid int8 NOT NULL,<BR>
&gt;&nbsp;  nombre varchar(150),<BR>
&gt;&nbsp;  longitud float8,<BR>
&gt;&nbsp;  latitud float8,<BR>
&gt;&nbsp;  the_geom geometry,<BR>
&gt;&nbsp;  geometria geometry,<BR>
&gt;&nbsp;  CONSTRAINT asistentes_pkey PRIMARY KEY (gid),<BR>
&gt;&nbsp;  CONSTRAINT enforce_dims_geometria CHECK (ndims(geometria) = 2),<BR>
&gt;&nbsp;  CONSTRAINT enforce_geotype_geometria CHECK (geometrytype(geometria) =<BR>
&gt;'POINT'::text OR geometria IS NULL),<BR>
&gt;&nbsp;  CONSTRAINT enforce_srid_geometria CHECK (srid(geometria) = 4326)<BR>
&gt;)<BR>
&gt;WITHOUT OIDS;<BR>
&gt;ALTER TABLE asistentes OWNER TO postgres;<BR>
&gt;------------------------<BR>
&gt;<BR>
&gt;The table is already populated and then I try updating one of the<BR>
&gt;geometries with:<BR>
&gt;<BR>
&gt;------------------------<BR>
&gt;UPDATE asistentes SET geometria=GeometryFromText('POINT(1,1)', 4326) WHERE<BR>
&gt;gid=3;<BR>
&gt;------------------------<BR>
&gt;<BR>
&gt;And I get the following Explain comment?<BR>
&gt;<BR>
&gt;------------------------<BR>
&gt;La consulta insertó una fila con OID 0.<BR>
&gt;<BR>
&gt;ERROR:&nbsp; parse error - invalid geometry<BR>
&gt;------------------------<BR>
&gt;<BR>
&gt;The spanish line says something like 'the query added one row with OID 0'.<BR>
&gt;If anyone could shed some light on this I'd very much appreciate it :)<BR>
&gt;<BR>
&gt;Marc<BR>
&gt;<BR>
&gt;_______________________________________________<BR>
&gt;postgis-users mailing list<BR>
&gt;postgis-users@postgis.refractions.net<BR>
&gt;http://postgis.refractions.net/mailman/listinfo/postgis-users<BR>

</P>
<br><br>