"Memory allocation failed" when attempting to get FGF text from certain features
Trying to get the fgf text from certain geometries will result in a "Memory allocation failed" error being thrown.
Steps to reproduce:
- Connect to Parcels.shp in Providers/SHP/TestData/Sheboygan
- Get the fgf binary of FeatId = 97
- Create an IGeometry instance from this fgf
- Call the Text property, the error is thrown here
mloskot: I have added reference to the thread on the list: How does FDO handle invalid fgf geometries?
Change History
(7)
Cc: |
mloskot added
|
Description: |
modified (diff)
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Additional notes by Dan Stoica:
Did some investigations on this matter. Turns out that:
a) the polygon in question has a ring which is not closed. b) the geometry factory throws an appropriate exception "Open ring" c) the exception is not caught by GetText() d) for some odd reason the exception is turned into "memory allocation error"