Giter VIP home page Giter VIP logo

shape2earth's People

Contributors

tbeermann avatar

Stargazers

fikrihakim avatar

Watchers

James Cloos avatar  avatar

shape2earth's Issues

Large SHP file throws System.OutOfMemoryException

Thank you for making this utility. I'm wondering if you might be able to help with an issue converting large SHP files, such as AKStategeol_poly.shp (~500mb) that's located in https://pubs.usgs.gov/sim/3340/sim3340_shp.zip. The exception output is below. The Int32 limit appears to have been reached. Thanks

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.BinaryReader.ReadBytes(Int32 count)
at Shape2Earth.Shape2EarthEngine.Data.AttributeTable.Open(String filename) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\DBase.cs:line 139
at Shape2Earth.Shape2EarthEngine.Data.AttributeTable.OpenAttributeTable(String filename) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\DBase.cs:line 82
at Shape2Earth.Shape2EarthEngine.ShapefileReader.ReadAttributes(String dbaseFile) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\ShapefileReader.cs:line 789
at Shape2Earth.Shape2EarthEngine.ShapefileReader.Read(String fileName) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\ShapefileReader.cs:line 576
at Shape2Earth.Shape2EarthEngine.Shapefile.LoadReader(String path) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\Shapefile.cs:line 63
at Shape2Earth.Shape2EarthEngine.Shapefile.Open(String param) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthEngine\Shapefile\Shapefile.cs:line 325
at Shape2Earth.Shape2EarthUI.Shape2EarthForm.LoadShapefile(String path) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthUI\Forms\Shape2Earth.cs:line 1162
at Shape2Earth.Shape2EarthUI.Shape2EarthForm.LoadShapefileLayer() in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthUI\Forms\Shape2Earth.cs:line 962
at Shape2Earth.Shape2EarthUI.Shape2EarthForm.btnAddShapefile_Click_1(Object sender, EventArgs e) in \Mac\Home\dev\shape2earth2020\Shape2Earth.Shape2EarthUI\Forms\Shape2Earth.cs:line 944
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9151 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

Shape2Earth.Shape2EarthUI
Assembly Version: 1.1.0.2
Win32 Version: 1.1.0.2
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shape2Earth.Shape2EarthUI.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9147 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Shape2Earth.Shape2EarthEngine
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shape2Earth.Shape2EarthEngine.DLL

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9153 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9136 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

9rrqcbdp
Assembly Version: 1.0.0.1
Win32 Version: 2.0.50727.9147 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

hrurkwik
Assembly Version: 1.0.0.1
Win32 Version: 2.0.50727.9147 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll

Shp2EIconManager
Assembly Version: 1.1.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shp2EIconManager.EXE

ogr_csharp
Assembly Version: 1.0.3495.24159
Win32 Version: 1.0.3495.24159
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/ogr_csharp.DLL

osr_csharp
Assembly Version: 1.0.3495.24158
Win32 Version: 1.0.3495.24158
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/osr_csharp.DLL

WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.9143 built by: WinRelRS6
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9156 (WinRelRS6.050727-9100)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.