Catfood.Shapefile 1.60

Updated on Sunday, May 23, 2021

I just released Catfood.Shapefile 1.60. This contains a fix from Libor Weigl that factors out the enumerator so that you can still access the shapefile after enumeration.

Catfood.Shapefile is a .NET library for parsing ESRI Shapefiles.

(previously)

(Related: ESRI Shapefile Reader in .NET; Monitor page index status with Google Sheets, Apps Script and the Google Search Console API; Export Google Fit Daily Steps, Weight and Distance to a Google Sheet)

(You might also like: Tam Pan; You won't believe this one crazy trick that would fix the broken patent system; Photo Sorter 1.10)

(All Code Posts)

Shapefile Update

Updated on Sunday, May 23, 2021

A few people have asked for 3D shape support in my ESRI Shapefile library. I've never got around to it, but CodePlex user ekleiman has forked a version in his ESRI Shapefile to Image Convertor that supports PointZ, PolygonZ and PolyLineZ shapes. If that's what you need please check it out.

(Related: ESRI Shapefile Reader in .NET; Export Google Fit Daily Steps, Weight and Distance to a Google Sheet; Catfood Software Support)

(You might also like: Commute; ISS over San Francisco; Hill 88)

(All Code Posts)

Catfood.Shapefile 1.50

Updated on Sunday, May 23, 2021

I've just released a small update to my C# Shapefile library on Codeplex. Catfood.Shapefile 1.50 fixes a couple of bugs related to metadata and adds the ability to access metadata records directly via IDataRecord. 

(Related: ESRI Shapefile Reader in .NET; The curious case of the missing slugs (in BlogEngine.net 2.8); ZoneInfo Update (tzdata for .NET))

(You might also like: Photo Sorter 1.10; Commute failing to suck this morning...; Playmobil)

(All Code Posts)

Catfood.Shapefile 1.40

Updated on Wednesday, May 5, 2021

I’ve just released a small update to Catfood.Shapefile. Stephan Stapel, who implemented PolyLineM support, has contributed a patch that improves the class hierarchy. CodePlex user originSH suggested supporting the ACE driver for 64-bit systems. I’ve added a constructor overload that allows you to use predefined Jet and ACE connection strings or provide your own templates if necessary. Thanks to Stephan and originSH.

Catfood.Shapefile is a .NET library for enumerating ESRI shapefiles. I originally wrote the library to help me build some complex layers in Catfood Earth. Since then it’s picked up thousands of users and some really valuable suggestions and patches from the CodePlex community. I’m very glad a took a couple of hours to open source the library back in 2009.

(Related: ESRI Shapefile Reader in .NET; Upgrading to BlogEngine.NET 2.5; Is PAD dead?)

(You might also like: More Bangalore; End the Electoral College: Amendment, Compact, or Supreme Court?; Game of Death)

(All Code Posts)

PolyLineM support in Catfood.Shapefile

Updated on Sunday, May 23, 2021

I’ve just updated Catfood.Shapefile, my ESRI Shapefile parser for .NET, with PolyLineM support thanks to a contribution from Stephan Stapel. The solution for the new version has also been updated to Visual Studio 2010.

Download Catfood.Shapefile.dll 1.30 from CodePlex.

(Related: ESRI Shapefile Reader in .NET; Catfood.Shapefile 1.40; Merging Resource Dictionaries for fun and profit)

(You might also like: CAPTCHA advertising; Bay Snaps; Why Microsoft is Likely Doomed Based on one Email Folder)

(All Code Posts)

ESRI Shapefile Library Update

Updated on Sunday, May 23, 2021

I've just released a small update for my ESRI Shapefile Reader project on GitHub. The only change is a patch from SolutionMania that fixes a problem when the shapefile name is also a reserved name in the metadata database. The patch escapes the name preventing an exception from being thrown.

Catfood.Shapefile.dll is a .NET 2.0 forward only parser for reading an ESRI Shapefile. Download 1.20 from GitHub.

(Related: ESRI Shapefile Reader in .NET; Export Google Fit Daily Steps, Weight and Distance to a Google Sheet; Monitor page index status with Google Sheets, Apps Script and the Google Search Console API)

(You might also like: Social Undistancing; Tedious Feed Update; Spherical Sunset)

(All Code Posts)

Catfood.Shapefile.dll 1.10

Updated on Sunday, May 23, 2021

I've just released v1.10 of my ESRI Shapefile Reader (Catfood.Shapefile.dll). This is a .NET 2.0 forward only parser for reading shapefile content.

Sharon Tickell was kind enough to report two bugs with suggested updates. These have both been fixed in 1.10.

While working on these fixes I also discovered that there are no 64-bit Jet drivers (since releasing the first version I've upgraded to a 64-bit box for development). This is an easy fix, just target any application using Catfood.Shapefile.dll at x86. I've updated the demo application accordingly.

Download Catfood.Shapefile.dll from GitHub.

(Related: ESRI Shapefile Reader in .NET; The curious case of the missing slugs (in BlogEngine.net 2.8); Catfood.Shapefile 1.40)

(You might also like: Catfood: WebCamSaver and PdfScan; Reading and Writing Office 365 Excel from a Console app using the Microsoft.Graph C# Client API; You won't believe this one crazy trick that would fix the broken patent system)

(All Code Posts)

ESRI Shapefile Reader in .NET

Updated on Thursday, July 14, 2022

I've just released a .NET library for parsing ESRI shapefiles - see ESRI Shapefile Reader on GitHub. The library and source code are available under the Microsoft Public License.

A Shapefile is actually at least three files: a main file containing shape data (*.shp), an index file for locating shape records in the main file (*.shx) and a database of metadata for each shape (*.dbf) in dBASE format.

I ended up writing the library in order to convert Eric Muller's time zone shapefile into a format I could use with Catfood Earth. I found other libraries that could read shape data but not metadata, or provided a very thin .NET wrapper on top of unmanaged code and so I decided that a fully managed library could be useful.

The library - Catfood.Shapefile.dll - provides read-only, forward-only access to shapes and shape metadata. Currently all 2D shapes are supported: Null, Point, MultiPoint, PolyLine and Polygon. I might add additional types in the future, or if you have a pressing need it would be easy to extend the library by looking at an existing shape subclass and the shapefile specification (PDF).

See the GitHub project for sample code and documentation.

Updates

Catfood.Shapefile 1.60

I just released Catfood.Shapefile 1.60. This contains a fix from Libor Weigl that factors out the enumerator so that you can still access the shapefile after enumeration.

Catfood.Shapefile is a .NET library for parsing ESRI Shapefiles.

(previously)

Shapefile Update

A few people have asked for 3D shape support in my ESRI Shapefile library. I've never got around to it, but CodePlex user ekleiman has forked a version in his ESRI Shapefile to Image Convertor that supports PointZ, PolygonZ and PolyLineZ shapes. If that's what you need please check it out.

Catfood.Shapefile 1.50

I've just released a small update to my C# Shapefile library on Codeplex. Catfood.Shapefile 1.50 fixes a couple of bugs related to metadata and adds the ability to access metadata records directly via IDataRecord. 

PolyLineM support in Catfood.Shapefile

I’ve just updated Catfood.Shapefile, my ESRI Shapefile parser for .NET, with PolyLineM support thanks to a contribution from Stephan Stapel. The solution for the new version has also been updated to Visual Studio 2010.

Download Catfood.Shapefile.dll 1.30 from CodePlex.

ESRI Shapefile Library Update

I've just released a small update for my ESRI Shapefile Reader project on GitHub. The only change is a patch from SolutionMania that fixes a problem when the shapefile name is also a reserved name in the metadata database. The patch escapes the name preventing an exception from being thrown.

Catfood.Shapefile.dll is a .NET 2.0 forward only parser for reading an ESRI Shapefile. Download 1.20 from GitHub.

Catfood.Shapefile.dll 1.10

I've just released v1.10 of my ESRI Shapefile Reader (Catfood.Shapefile.dll). This is a .NET 2.0 forward only parser for reading shapefile content.

Sharon Tickell was kind enough to report two bugs with suggested updates. These have both been fixed in 1.10.

While working on these fixes I also discovered that there are no 64-bit Jet drivers (since releasing the first version I've upgraded to a 64-bit box for development). This is an easy fix, just target any application using Catfood.Shapefile.dll at x86. I've updated the demo application accordingly.

Download Catfood.Shapefile.dll from GitHub.

(Related: Export Google Fit Daily Steps, Weight and Distance to a Google Sheet; Monitor page index status with Google Sheets, Apps Script and the Google Search Console API; Capture DropCam (Nest Cam) frames to Google Drive)

(You might also like: Red-Tailed Hawk vs Gopher; Don't show this to me again; Point Reyes Deer)

(All Code Posts)