ThinkGeo.com    |     Documentation    |     Premium Support

6.0.45.0 version of WpfDesktop. Big bug

Hello, ThinkGeo!


I download the 6.0.45.0 dll version and see the next problem:


We have the next WKB:


0xE610000001040D00000000005E0A5CEF4B400000A15A1CC042400040C8AD60EF4B400080E48511C0424000C010DE5DEF4B400080CAB60DC042400040A63A59EF4B400000858B18C042400040902A5AEF4B40008073D119C042400000509F59EF4B4000803D171BC042400000CD8458EF4B40000031D71CC042400080AB1B59EF4B400000D0692AC0424000803CA15CEF4B40000044ED29C0424000005E0A5CEF4B400000A15A1CC042400000509F59EF4B4000803D171BC04240008014B159EF4B40000021AE1CC042400000CD8458EF4B40000031D71CC04240020000000100000000020600000003000000FFFFFFFF0000000007000000000000000002000000000100000003


WKT:


GEOMETRYCOLLECTION(LINESTRING(37.500865295995 55.8699963530526,37.5005347600672 55.8701379039558,37.5004185189027 55.8700521070277,37.5007490538992 55.8699105560081,37.5007879079785 55.8699391559931,37.5008267450612 55.8699225559831),POLYGON((37.5008801450022 55.8698888779618,37.5012943521142 55.8699068629649,37.5012795049697 55.8700143380556,37.500865295995 55.8699963530526,37.5008267450612 55.8699225559831,37.5008752499707 55.8699246740434,37.5008801450022 55.8698888779618)))


Generating based on the WKB Feature. Get the GeometryCollectionShape, which consists of lines and polygons (it is normal by OGC and function IsValid() return true).


Now we take GetBoundingBox() and we get an exception StackOverflowException.


What is it?



 Hello Alex,


 
Thanks for your post, when I test with the WKT you provide, I can get the right result, could you please provide a sample to me to recreate?

f.GetBoundingBox()
{37.5004185189027,55.8701379039558,37.5012943521142,55.8698888779618}
    base {ThinkGeo.MapSuite.Core.AreaBaseShape}: {37.5004185189027,55.8701379039558,37.5012943521142,55.8698888779618}
    Height: 0.0002490259940017836
    LowerLeftPoint: {37.5004185189027,55.8698888779618,0}
    LowerRightPoint: {37.5012943521142,55.8698888779618,0}
    lowerRightPoint: {37.5012943521142,55.8698888779618,0}
    UpperLeftPoint: {37.5004185189027,55.8701379039558,0}
    upperLeftPoint: {37.5004185189027,55.8701379039558,0}
    UpperRightPoint: {37.5012943521142,55.8701379039558,0}
    Width: 0.00087583321150219717

Regards,
 
Gary

Dll to insert themselves could not, because you have an attachment limit of 500kb.


ThinkGEO version 6.0.45.0

dlls from WpfDesktopEditionFull6.0.45.0DllPackage\Wpf Desktop Edition - Strong Named

SqlServerTypes_X86


 



ConsoleApplication1.zip (22.2 KB)