<br>Hi,<br><br>I guess the problem is that your geometry after row 4599 is MULTILINESTRING (as can be seen from the error message) and thus fails the check "geometrytype(wkb_geometry) = 'LINESTRING'::text OR wkb_geometry IS NULL".
<br><br>I guess you could alter your table and change the check to something like this:<br>CONSTRAINT enforce_geotype_wkb_geometry CHECK<br>(geometrytype(wkb_geometry) = 'LINESTRING'::text OR geometrytype(wkb_geometry) = 'MULTILINESTRING'::text OR wkb_geometry IS NULL),
<br><br><br>-- <br>Otto<br><br><br><div><span class="gmail_quote">On 2/20/07, <b class="gmail_sendername">Maciej Skorczewski</b> <<a href="mailto:maciej.skorczewski@procad.pl">maciej.skorczewski@procad.pl</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>hello again!<br><br>so i start new database with latin2 encoding.<br>ogr2ogr start generate table
<br><br>CREATE TABLE osienazwy<br>(<br>   ogc_fid serial NOT NULL,<br>   wkb_geometry geometry,<br>   id double precision,<br>   idulicy double precision,<br>   ulica character(30),<br>   "pełna" character(100),
<br>   id1 double precision,<br>   id2 double precision,<br>   kier2 character(1),<br>   length numeric(31,15),<br>   idodcinka double precision,<br>   CONSTRAINT osienazwy_pk PRIMARY KEY (ogc_fid),<br>   CONSTRAINT enforce_dims_wkb_geometry CHECK (ndims(wkb_geometry) = 2),
<br>   CONSTRAINT enforce_geotype_wkb_geometry CHECK<br>(geometrytype(wkb_geometry) = 'LINESTRING'::text OR wkb_geometry IS NULL),<br>   CONSTRAINT enforce_srid_wkb_geometry CHECK (srid(wkb_geometry) = -1)<br>)<br>
WITHOUT OIDS;<br>ALTER TABLE osienazwy OWNER TO postgres;<br><br><br>but after 4599 added row (shp file have about 15.000 row of street) i<br>get error massage (look on url)<br><a href="http://img87.imageshack.us/img87/7464/mapabc9.jpg">
http://img87.imageshack.us/img87/7464/mapabc9.jpg</a><br><br><br>guestion: what can i do whit this?<br><br>maciek<br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net">
postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></blockquote></div><br>