Select to view content in your preferred language

Bug in C# MultipartShapeBuffer.CalculateExtent() ?

2423
2
08-23-2011 11:02 AM
DanielWalton
Frequent Contributor
I am seeing some strange behavior in MultipartShapeBuffer.Extent. It seems to be mixing up xMax with yMin. The attached screen capture demonstrates this:

0 Kudos
2 Replies
LanceShipman
Esri Regular Contributor
I was able to reproduce your issue. It works correctly with the C++ API, but not with the .NET wrapper. The C++ API returns the extent in xMin, yMin, xMax, yMax order. For some reason the .NET wrapper is returning the extent in xMin, xMax, yMin, yMax order. I've entered a bug.
0 Kudos
DanielWalton
Frequent Contributor
If it helps, the same issue happens in the Envelope constructor.
0 Kudos