i tried this also but not of use. <br>here is some of the commands which i tried and corresponding output which i got.<br><br>ogr2ogr -nlt POINT&nbsp; -f PostgreSQL PG:dbname=mydb /home/prince/mainfo_dgn/44g1.dgn<br>ERROR 1: INSERT command for new feature failed.
<br>ERROR:&nbsp; new row for relation &quot;elements&quot; violates check constraint &quot;enforce_geotype_wkb_geometry&quot;<br><br>Command: INSERT INTO &quot;elements&quot; (wkb_geometry , &quot;type&quot;, &quot;level&quot;, &quot;graphicgroup&quot;, &quot;colorindex&quot;, &quot;weight&quot;, &quot;style&quot;) VALUES (GeomFromEWKT('SRID=-1;LINESTRING (-
0.055 -0.025,0.055 -0.025)'::TEXT) , 3, 27, 0, 3, 2, 0)<br>ERROR 1: Terminating translation prematurely after failed<br>translation of layer elements<br>----------------------------------------------------------------------------------------
<br>ogr2ogr -nlt MULTIPOLYGON&nbsp; -f PostgreSQL PG:dbname=mydb /home/prince/mainfo_dgn/44g1.dgn<br>ERROR 1: INSERT command for new feature failed.<br>ERROR:&nbsp; new row for relation &quot;elements&quot; violates check constraint &quot;enforce_geotype_wkb_geometry&quot;
<br><br>Command: INSERT INTO &quot;elements&quot; (wkb_geometry , &quot;type&quot;, &quot;level&quot;, &quot;graphicgroup&quot;, &quot;colorindex&quot;, &quot;weight&quot;, &quot;style&quot;) VALUES (GeomFromEWKT('SRID=-1;LINESTRING (-
0.055 -0.025,0.055 -0.025)'::TEXT) , 3, 27, 0, 3, 2, 0)<br>ERROR 1: Terminating translation prematurely after failed<br>translation of layer elements<br><br>----------------------------------------------------------------------------------------
<br>ogr2ogr -nlt POLYGON&nbsp; -f PostgreSQL PG:dbname=mydb /home/prince/mainfo_dgn/44g1.dgn<br>ERROR 1: INSERT command for new feature failed.<br>ERROR:&nbsp; new row for relation &quot;elements&quot; violates check constraint &quot;enforce_geotype_wkb_geometry&quot;
<br><br>Command: INSERT INTO &quot;elements&quot; (wkb_geometry , &quot;type&quot;, &quot;level&quot;, &quot;graphicgroup&quot;, &quot;colorindex&quot;, &quot;weight&quot;, &quot;style&quot;) VALUES (GeomFromEWKT('SRID=-1;LINESTRING (-
0.055 -0.025,0.055 -0.025)'::TEXT) , 3, 27, 0, 3, 2, 0)<br>ERROR 1: Terminating translation prematurely after failed<br>translation of layer elements<br><br>----------------------------------------------------------------------------------------
<br>ogr2ogr -f &quot;ESRI Shapefile&quot; /home/prince/44g1.shp /home/prince/mainfo_dgn/44g1.dgn<br>ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile.<br>ERROR 1: Terminating translation prematurely after failed
<br>translation of layer elements<br><br><br>----------------------------------------------------------------------------------------<br>ogr2ogr -f &quot;ESRI Shapefile&quot; /home/prince /home/prince/mainfo_dgn/44g1.dgn -nlt LINESTRING
<br>ERROR 1: Attempt to write non-linestring (POINT) geometry to ARC type shapefile.<br>ERROR 1: Terminating translation prematurely after failed<br>translation of layer elements<br><br>thanks for help<br>quick nitin<br><br>
<br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">Gary Sherman</b> &lt;<a href="mailto:sherman@mrcc.com">sherman@mrcc.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
nitin quick wrote:<br>&gt; hello everybody,<br>&gt;<br>&gt; I am currently using qgis0.7.9, Postgis1.1.2, GDAL1.3.1.<br>&gt; i have a small problem. I have a dgn file which i wanted to add to postgis.<br>&gt; i used the command
<br>&gt; ogr2ogr -f &quot;PostgreSQL&quot; PG:dbname=mydb a.dgn to add it to database. No<br>&gt; error were reported.<br>&gt; When i tried to view this as&nbsp;&nbsp;ADD a POSTGIS LAYER from menu , a<br>&gt; messagebox appears saying &quot; Unknown Geometry Type. Column WKB_geometryin
<br>&gt; &quot;public&quot;.&quot;elements&quot; has a geometry type of GEOMETRY which qgis doesn't<br>&gt; support currently. Invalid Layer can't be loaded.<br>&gt; i will really appreaciate if someone could guide me out of this issue.
<br>&gt;<br>&gt;<br>Try forcing the geometry to the appropriate type using the -nlt switch.<br>QGIS doesn't support the generic GEOMETRY feature type.<br><br>--<br>-gary<br><br>-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-<br>Gary Sherman
<br>Micro Resources: <a href="http://mrcc.com">http://mrcc.com</a><br>&nbsp;&nbsp;*Geospatial Hosting<br>&nbsp;&nbsp;*Web Site Hosting<br>&quot;We work virtually everywhere&quot;<br>-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-<br></blockquote></div><br>