Using Oledb and casting geometry field to IGeometry object.

405
0
01-06-2014 11:56 AM
HarryHagman
New Contributor
Having a little problem casting a byte array field ( as defined in shapefile database ) to and igeometry object.
Code example  ->
      Dim iGeo As IGeometry
      iPoly = TryCast(ds.Tables(0).Rows(x).Item("shape"), IGeometry)
But it fails with  -> 
      Unable to cast object of type 'System.Byte[]' to type 'ESRI.ArcGIS.Geometry.IGeometry'.
using vb.net ... Any Ideas

    Thanks
0 Kudos
0 Replies