Opened 10 years ago

Last modified 4 years ago

#981 new defect

v.external db connection key missing for some GDAL drivers

Reported by: rblazek Owned by: grass-dev@…
Priority: normal Milestone: 6.4.6
Component: Vector Version: unspecified
Keywords: v.external Cc:
CPU: Unspecified Platform: Unspecified

Description

If OGR_L_GetFIDColumn does not return a column (OGR SHP driver for example) it is then missing in db connection info and consequently db operations do not work on vector created using v.external. The problem is here http://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/field.c#L8

and there is already TODO here http://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/field.c#L582

The problem can be tested either by v.db.connect -p, no key printed or d.what.vect for example (key field missing in query).

I dont think it can be easily fixed. It would be possible to add OGR FID to attributes, but OGR SQL engine most probably does not know about FID, it only works on true attributes (to be verified, maybe FID is available with some special name).

Radim

Change History (3)

comment:1 Changed 10 years ago by martinl

Keywords: v.external added

comment:2 Changed 7 years ago by neteler

Milestone: 6.4.06.4.4

comment:3 Changed 4 years ago by neteler

Milestone: 6.4.46.4.6
Note: See TracTickets for help on using tickets.