Menu

#3 exception when creating index using SHP provider

open
5
2007-04-12
2006-08-28
Anonymous
No

I am getting an exception when I try to load a specific
shapefile using the managed SHP provider. The data can
be downloaded here:

ftp://ftp.dep.state.fl.us/pub/gis/data/countyshore_areas.zip

I will attach a sample app. Here is the exception:

scottell@arroyo ~/devel/monoGIS $ mono SHPTest.exe
~/gis/data/florida/counties/COUNTYSHORE_AREAS.shp

Unhandled Exception: System.OutOfMemoryException: Out
of memory
at <0x00000> <unknown method>
at (wrapper managed-to-native)
System.Object:__icall_wrapper_mono_array_new_specific
(intptr,int)
at MonoGIS.NetTopologySuite.IO.PolygonHandler.Read
(MonoGIS.NetTopologySuite.IO.BigEndianBinaryReader
file,
MonoGIS.NetTopologySuite.Geometries.GeometryFactory
geometryFactory) [0x00000]
at
MonoGIS.NetTopologySuite.IO.ShapefileReader+ShapefileEnumerator.MoveNext
() [0x00000]
at MonoGIS.Data.SHP.SHPDataTable.GetFeatureEnvelopes
() [0x00000]
at MonoGIS.Data.Memory.IndexedDataTable.InitRTree ()
[0x00000]
at MonoGIS.Data.Memory.IndexedDataTable..ctor
(IDataTable set, Boolean useMemoryCache, IDataSource
src) [0x00000]
at MonoGIS.Data.Memory.IndexedDataSource.get_Item
(System.String layerName) [0x00000]
at Test.Main (System.String[] argv) [0x00000]

Discussion

  • Nobody/Anonymous

    sample app

     
  • Michael Paul

    Michael Paul - 2007-04-12
    • assigned_to: nobody --> mpaul42
     

Log in to post a comment.

MongoDB Logo MongoDB