ESRI Geometry to OGC Geometry - IGeometryFactory3 createWKBVariantFromGeometry

903
1
10-16-2011 11:06 PM
SanjayRana
New Contributor III
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:

http://forums.esri.com/thread.asp?c=159&f=1707&t=236848

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..

Thanks,
Sanjay.
0 Kudos
1 Reply
SanjayRana
New Contributor III
0 Kudos