Ticket #4457 (new defect)

Opened 3 years ago

Last modified 13 months ago

GetFieldAsBinary() not implemented in C#

Reported by: rhaden Owned by: tamas
Priority: high Milestone:
Component: default Version: 1.8.0
Severity: critical Keywords: GetFieldAsBinary CSharp
Cc:

Description

A binding for the GetFieldAsBinary?() method is not included in the C# bindings for GDAL.

I've attached test data to help resolve the issue. It's a Microsoft Access database with ESRI Personal Geodatabase formatting. There's an additional table called BinaryRecords? which contains two fields: an ID field and a field called BinaryData? which is of type "OLE Object" (Access' equivalent to a BLOB). The table contains three records, each of which has a 1024-byte-long value in the BinaryData? column.

Attachments

test.mdb Download (0.6 MB) - added by rhaden 3 years ago.

Change History

Changed 3 years ago by rhaden

  Changed 3 years ago by rhaden

  • owner changed from warmerdam to tamas

follow-up: ↓ 3   Changed 2 years ago by rburhum

I am interested in this. I notice that the GetFieldAsBinary? is not shown here  https://svn.osgeo.org/gdal/trunk/gdal/swig/include/ogr.i

I assume this method does not exist for any of the other SWIG related bindings?

in reply to: ↑ 2   Changed 2 years ago by tamas

Returning byte arrays require special handling for the various languages. In case of C# it doesn't seem to be complicated to implement this. I'll be trying to get it working asap.

Replying to rburhum:

I am interested in this. I notice that the GetFieldAsBinary? is not shown here  https://svn.osgeo.org/gdal/trunk/gdal/swig/include/ogr.i I assume this method does not exist for any of the other SWIG related bindings?

  Changed 2 years ago by rburhum

Thank you Tamas!

  Changed 13 months ago by rburhum

Hi Tamas,

Just curious if this was addressed. Thanks!

Note: See TracTickets for help on using tickets.