hhagman

Using Oledb and casting geometry field to IGeometry object.

Discussion created by hhagman on Jan 6, 2014
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

Outcomes