[Qgis-developer] unknown geometry type of GEOMETRY in postgis layer

Gary Sherman sherman at mrcc.com
Thu Jun 22 11:31:04 EDT 2006


nitin quick wrote:
> hello everybody,
> 
> I am currently using qgis0.7.9, Postgis1.1.2, GDAL1.3.1.
> i have a small problem. I have a dgn file which i wanted to add to postgis.
> i used the command
> ogr2ogr -f "PostgreSQL" PG:dbname=mydb a.dgn to add it to database. No
> error were reported.
> When i tried to view this as  ADD a POSTGIS LAYER from menu , a
> messagebox appears saying " Unknown Geometry Type. Column WKB_geometryin
> "public"."elements" has a geometry type of GEOMETRY which qgis doesn't
> support currently. Invalid Layer can't be loaded.
> i will really appreaciate if someone could guide me out of this issue.
> 
>
Try forcing the geometry to the appropriate type using the -nlt switch.
QGIS doesn't support the generic GEOMETRY feature type.

-- 
-gary

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Micro Resources: http://mrcc.com
  *Geospatial Hosting
  *Web Site Hosting
"We work virtually everywhere"
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-



More information about the Qgis-developer mailing list