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.

(All Code Posts)

Reviews and Links for November 2011

Updated on Friday, February 24, 2017

Reamde by Neal Stephenson

5/5

Intelligent and humorous if highly contrived thriller set loosely around an MMORPG. Loved it.

 

Embassytown by China Miéville

4/5

Highly original tale of colonists cohabiting with some very unusual aliens with a very unusual language. It reads like J.G. Ballard and Nicholson Baker decided to collaborate on some SciFi.

 

The Affair (Jack Reacher, #16) by Lee Child

3/5

Not bad, returns to when Reacher was in uniform and tells the story of how he left the Army (the answer may surprise you). As with the last few in the series it all comes a little too easily and you wish there was at least one worthy opponent. I'm hooked though so as long as Child keeps writing them I'll keep reading.

 

Professional Android 2 Application Development by Reto Meier

3/5

Solid foundation and covers the platform you need to target to reach the majority of Android devices.

 

Links

RE: Feel free to use the code, no attribution required.  http://t.co/IJTcOz3p

BBC News - 7 questions on computer programmes http://t.co/XKylU7WT (more of a history / pop culture quiz)

Scooby-Doo and Secular Humanism: http://t.co/4h8M8kkK

4 of 5 stars to Embassytown by China Miéville http://t.co/kPwIrmDF

ITHCWY: Occupy Intellectual Ventures: Send them a troll. Now. http://t.co/VorWmZpz

Wow, My Flout score is -7 on @floutdotme! Get yours at http://t.co/1Sl8ei72

troll the troll! send a troll doll to intellectual ventures. http://t.co/S09ML14T via @nathtone

Walking through doorways causes forgetting, new research shows: http://t.co/JBbJXAaD

+1: Why Software Projects are Terrible and How Not To Fix Them: http://t.co/kE7WWix5

Hilarious, I had to Google how to power off Windows 8. Didn't figure it our until the third link: http://t.co/X1wrkh7R #fail

Building a Useful Task Board: http://t.co/icc8y4cU - only this should be a large monitor and an #API

#API Design Webinar http://t.co/rbDwus37 from @theamiableapi - some very valuable nuggets

Wow. Going to have to get this as a poster just to fully grok it: http://t.co/Z6iie3K5

ITHCWY: PolyLineM support in Catfood.Shapefile: I’ve just updated Catfood.Shapefile, my ESRI Shapefile parser for… http://t.co/ll50wcEi

Cal band at justanswer http://t.co/QOLcbe7e (missed this while at lunch)

Citogenesis: http://t.co/EH5K2xLg

Extensive document dump on Microsoft's shallow anti-Android bullying: http://t.co/tdEhMNLh #patents from @groklaw

Toast sandwich is UK's 'cheapest meal' http://t.co/0LG9zNOl (can't possibly be true - not factoring in cost of electricity!)

Analysis: The Darwin Economy: http://t.co/pSDkxupL

So True: What Your Favorite Map Projection Says About You: http://t.co/dW8pl2uK

Bootstrapped Company Behind iDrive, iBackup Is Fed Up With Patent Trolls: http://t.co/DP6KFLxH

The Real Cost of Patent Trolls: http://t.co/1Cu4C6cV via @bfeld

Flying rhinoceros: http://t.co/MIhWtT3L

Cool: 1% Of Nothing Launches To Get Startups Donating Equity: http://t.co/ZNy7HcZl

3 of 5 stars to Professional Android 2 Application De... by Reto Meier http://t.co/UqCtaJ3Z

'Have the people who designed this protocol really never made the twenty mile drive to San Francisco?' - http://t.co/wWk77ZpQ

Explaining 'Jobs' to Rudy Giuliani: http://t.co/ek78XEe9

ITHCWY: Catfood: Klout and Follower: Klout is building PageRank for people. You get a score between 0-100 based on… http://t.co/rGyYkY9q

Catfood Follower 1.40: http://t.co/79xDac4F via @CatfoodSoftware

Old friends... No CDTV though! At #CHM http://t.co/WGw6VOOL

How much did I used to want one of these! http://t.co/lHhnY0AG

At #CHM for Norvig v Horvitz. Will punch anyone who mentions Searle's Room. http://t.co/wPRO8tYa

Don't do it, like defining π as 4: BBC News - Changes to the world's time scale debated http://t.co/hFkrZi4g

RESTful API Design, Second Edition http://t.co/uZthmj9c #API from @landlessness

Rudy wishes I hadn't just shown him: "Saber-toothed squirrel" from the dinosaur days - Boing Boing http://t.co/Wf7Y0ttH

Marked as to-read: The Lean Startup by Eric Ries http://t.co/MC9M0Iti

Ex-Google Reader Product Manager Posts Scathing Review Of Reader Redesign | TechCrunch http://t.co/DscEAHTw

Google indexing via POST: http://t.co/oM2JmHqI (P.S. may not grok your robots.txt, suggests bending over)

Writing helpful API documentation « The Amiable API http://t.co/rx9QdKyk #API

Oakland PD confused: An Open Letter to the Citizens of Oakland From the Oakland Police Officers Association http://t.co/W5LIBY7D (me too)!

Study: why parents help their underage kids pretend to be 13 in order to use Internet sites - Boing Boing http://t.co/aoUSw5wu

(All Book Reviews)

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.

(All Code Posts)

ESRI Shapefile Reader in .NET

Updated on Sunday, May 23, 2021

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.

(All Code Posts)