tbeermann / shape2earth Goto Github PK
View Code? Open in Web Editor NEWShape2Earth shapefile to kml converter
License: MIT License
Shape2Earth shapefile to kml converter
License: MIT License
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.dllShape2Earth.Shape2EarthUI
Assembly Version: 1.1.0.2
Win32 Version: 1.1.0.2
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shape2Earth.Shape2EarthUI.exeSystem.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.dllSystem
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.dllSystem.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.dllShape2Earth.Shape2EarthEngine
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shape2Earth.Shape2EarthEngine.DLLSystem.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.dllSystem.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.dll9rrqcbdp
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.dllhrurkwik
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.dllMicrosoft.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.dllShp2EIconManager
Assembly Version: 1.1.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/Shp2EIconManager.EXEogr_csharp
Assembly Version: 1.0.3495.24159
Win32 Version: 1.0.3495.24159
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/ogr_csharp.DLLosr_csharp
Assembly Version: 1.0.3495.24158
Win32 Version: 1.0.3495.24158
CodeBase: file:///C:/Program%20Files%20(x86)/shape2earth/osr_csharp.DLLWindowsBase
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.dllSystem.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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.