[fdo-trac] #381: "Memory allocation failed" error message when applying spatial filter to a sdf dataset

FDO trac_fdo at osgeo.org
Wed Aug 20 04:06:49 EDT 2008


#381: "Memory allocation failed" error message when applying spatial filter to a
sdf dataset
----------------------------+-----------------------------------------------
   Reporter:  jng           |       Owner:  gregboone
       Type:  defect        |      Status:  new      
   Priority:  blocker       |   Milestone:  3.4.0    
  Component:  SDF Provider  |     Version:  3.3.1    
   Severity:  1             |    Keywords:           
External_id:                |  
----------------------------+-----------------------------------------------
 Using the .net managed wrappers (FDO 3.3.1)

 If you apply a filter to an ISelect from an SDF connection, if that filter
 has a spatial condition. You will get "Memory allocation failed" message
 at IFeatureReader::ReadNext() even if you do not touch the actual geometry
 property of the returned feature reader (eg. Looping the feature reader
 and doing nothing).

 For small sdf datasets, this doesn't happen. But once you go to something
 like the Sheboygan sample dataset (~17000 features), then it starts to
 occur.

 The "Memory allocation failed" message is thrown from
 Fdo\Unmanaged\Src\Geometry\Fgf\GeometryFactory.cpp:779

 I have attached the following files:

 - Sheboygan_Parcels_MultiKey.zip: The sheboygan parcel dataset in sdf
 format.
 - Program.zip: Contains C# code to illustrate the problem.

 I'm guessing the SDF feature reader is creating geometries to compare
 against the filter, but the geometries aren't being released afterwards?

-- 
Ticket URL: <http://trac.osgeo.org/fdo/ticket/381>
FDO <http://fdo.osgeo.org/>
Feature Data Objects


More information about the fdo-trac mailing list