ESRI Geometry to OGC Geometry - IGeometryFactory3 createWKBVariantFromGeometry

Discussion created by sanjayrana on Oct 16, 2011
Latest reply on Oct 17, 2011 by sanjayrana
Hi Everyone,

I am using ArcEditor 10 Eval license and VSE2008. I would like to convert an ESRI IGeometry to an OGC Geometry. I found the following post that shows how it could be done:

But, I am getting an "Array out of bounds" error at the following line:
byte[] b = factory.CreateWkbVariantFromGeometry(geometry) as byte[];

What might I be doing incorrect? Any other ways of doing this..