Shapefile read support
|Reported by:||benwreilly@…||Owned by:||aric|
I've been using networkx to do some basic GIS topology work here and thought I would push back in something that might be useful to someone. I'm honestly pretty new to all this (this is my first open source contribution to anything) so I would greatly appreciate any suggestions.
I'd particularly like ideas on the tests. Previously I used extensive mocking, but I was worried it was becoming too self-referential and unpythonic.
I noticed other readwrite modules just creating tempfiles and destroying them when finished, so I went that route. Only I couldn't use the built-in Python tempfile module because I couldn't get it to play nice as an OGR datasource, so the test creates a real shapefile (which really consist of three files, .shp, .shx, .dbf) and destroys them when finished.
Change History (10)
Changed 5 years ago by aric
Changed 5 years ago by benwreilly
comment:4 Changed 5 years ago by aric
- Milestone changed from networkx-future to networkx-1.4
- Status changed from needinfo to assigned