Reading/parsing a GIS shapefile in iOS (iPhone or iPad), and displaying geometry shapes with MapKit on iOS
…lso simplified the code related to transformed map projects, shape file names, etc. Added Nevada counties as another available example
|Classes||Updated the project to latest Xcode. Cleaned out compiler warnings. A…|
|Data||Updated the project to latest Xcode. Cleaned out compiler warnings. A…|
|Frameworks||Updated the project to latest Xcode. Cleaned out compiler warnings. A…|
|TestObjCShapefile.xcodeproj||Updated the project to latest Xcode. Cleaned out compiler warnings. A…|
|README||Edited README via GitHub|
* iOS-Shapefile is a proof of concept for reading/parsing an ESRI shapefile (.shp) on an iPhone or iPad and displaying the resulting shapes in MapKit. * It's built on Pascal Brandt's intial Cocoa work at http://3dgeo.net/CocoaShapefile/CocoaShapefile.htm * My changes consist of removing dependency on garbage collection, and a rudimentary sample app showing district polygons for the Texas Senate. * This proof of concept doesn't take "holes" in polygons into consideration. * This doesn't cover how to write or edit shapefiles, since I didn't see much utility for that in my iOS projects. * I've included an iOS targeted PROJ.4 framework (http://trac.osgeo.org/proj/). To be honest, I don't know where I initially found this iOS specific build. However, I'm sure you can find another suitable one for iOS floating out there somewhere if you need to. I haven't made any changes to it. * Also, it should go without saying that if the shapefiles are already in EPSG-4326 projection, then you shouldn't need Proj.4.