Opened 3 years ago

Last modified 20 months ago

#4457 new defect

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 (1)

test.mdb (576.0 KB) - added by rhaden 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by rhaden

comment:1 Changed 3 years ago by rhaden

  • Owner changed from warmerdam to tamas

comment:2 follow-up: Changed 3 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?

comment:3 in reply to: ↑ 2 Changed 3 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?

comment:4 Changed 3 years ago by rburhum

Thank you Tamas!

comment:5 Changed 20 months ago by rburhum

Hi Tamas,

Just curious if this was addressed. Thanks!

Note: See TracTickets for help on using tickets.