[GRASS5] Column-names of FeatureID in OGR

Dear list,

I can remember a former discussion about the column-nameings for the
different OGR-drivers. Currently GRASS cycles through 3 different
FID-namings (FID, ogc_fid, ogr_fid) and trys to link the attributes (see
$GRASSBASE/lib/vector/Vlib/fields.c:395)

I need to connect to a oracle-database with v.external where the
Feature-IDs are named different than the 3 tried columns. Consequently
v.extrenal fails.

Is there a chance that a user can specify the FID-column-name on
the command-line? This would be very handy, otherwise I need to add
another column to the oracle-tables which is named ether FID, ogc_fid or
ogr_fid.

What would be the best solution for this?
What do you think?

TIA

  Stephan

--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl@gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508

On 12/14/05, Stephan Holl <holl@gdf-hannover.de> wrote:

Dear list,

I can remember a former discussion about the column-nameings for the
different OGR-drivers. Currently GRASS cycles through 3 different
FID-namings (FID, ogc_fid, ogr_fid) and trys to link the attributes (see
$GRASSBASE/lib/vector/Vlib/fields.c:395)

I need to connect to a oracle-database with v.external where the
Feature-IDs are named different than the 3 tried columns. Consequently
v.extrenal fails.

Is there a chance that a user can specify the FID-column-name on
the command-line? This would be very handy, otherwise I need to add
another column to the oracle-tables which is named ether FID, ogc_fid or
ogr_fid.

What would be the best solution for this?
What do you think?

The best solution is a new method in OGR which gives FID column name.
Frank already promissed to add it . Please fill OGR bug and try to
increase priority.

Radim

Hello Radim,

On Wed, 14 Dec 2005 15:09:54 +0100 Radim Blazek
<radim.blazek@gmail.com> wrote:

On 12/14/05, Stephan Holl <holl@gdf-hannover.de> wrote:
> Dear list,
>
> I can remember a former discussion about the column-nameings for the
> different OGR-drivers. Currently GRASS cycles through 3 different
> FID-namings (FID, ogc_fid, ogr_fid) and trys to link the attributes
> (see $GRASSBASE/lib/vector/Vlib/fields.c:395)
>
> I need to connect to a oracle-database with v.external where the
> Feature-IDs are named different than the 3 tried columns.
> Consequently v.extrenal fails.
>
> Is there a chance that a user can specify the FID-column-name on
> the command-line? This would be very handy, otherwise I need to add
> another column to the oracle-tables which is named ether FID,
> ogc_fid or ogr_fid.
>
> What would be the best solution for this?
> What do you think?

The best solution is a new method in OGR which gives FID column name.
Frank already promissed to add it . Please fill OGR bug and try to
increase priority.

Thats what I was thinking about. Do you have the thread at hand? I
could not find it anywhere...

I will fill a bug in OGRs bugzilla then.

Best
  Stephan

--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl@gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508

Hello Radim,

On Wed, 14 Dec 2005 15:09:54 +0100 Radim Blazek
<radim.blazek@gmail.com> wrote:

On 12/14/05, Stephan Holl <holl@gdf-hannover.de> wrote:
> Dear list,
>
> I can remember a former discussion about the column-nameings for the
> different OGR-drivers. Currently GRASS cycles through 3 different
> FID-namings (FID, ogc_fid, ogr_fid) and trys to link the attributes
> (see $GRASSBASE/lib/vector/Vlib/fields.c:395)
>
> I need to connect to a oracle-database with v.external where the
> Feature-IDs are named different than the 3 tried columns.
> Consequently v.extrenal fails.
>
> Is there a chance that a user can specify the FID-column-name on
> the command-line? This would be very handy, otherwise I need to add
> another column to the oracle-tables which is named ether FID,
> ogc_fid or ogr_fid.
>
> What would be the best solution for this?
> What do you think?

The best solution is a new method in OGR which gives FID column name.
Frank already promissed to add it . Please fill OGR bug and try to
increase priority.

According to the former discussion with Frank W. I have added a
bug-report on the OGR-bugzilla[1].

Best regards

  Stephan

[1] http://bugzilla.remotesensing.org/show_bug.cgi?id=1019

--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl@gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508