ShapeKit 0.9.6

ShapeKit 0.9.6

LangLanguage Objective C++Objective C++
License Custom
ReleasedLast Release Dec 2014

Maintained by Andrea Cremaschi.

Depends on:
geos>= 0
proj4>= 0

ShapeKit 0.9.6

  • By
  • Michael Weismann and Andrea Cremaschi

ShapeKit is a iOS/OSX library that offers an Objective-C interface to the powerful GEOS library. Through GEOS, ShapeKit includes all the OpenGIS Simple Features for SQL spatial predicate functions and spatial operators, as well as specific JTS enhanced topology functions. This fork is based on the original repository by Michael Weisman, with major customizations.

  • ShapeKit has been refactored to build in a static library (libShapeKit.a)
  • Apple's MapKit specific methods have been refactored in a dedicated category to generalize the code and remove Apple's MapKit dependency. ShapeKit just takes care of the model, so that you can choose the map library you prefer (Apple's MapKit, route-me in the original flavour or in Alpstein or Mapbox forks ecc..)
  • GEOS linearref functions (project and interpolate on a line) support was added


  • ShapeKitGeometries are standard cocoa objects
ShapeKitPoint *myPoint = [[ShapeKitPoint alloc] initWithCoordinate:CLLocationCoordinate2DMake(0, 0)];
  • ShapeKit has spatial predicates and topology operations
ShapeKitPolygon *bufferedPoint = [myPoint bufferWithWidth:0.005]
[bufferedPoint containsGeometry:myPoint]; // Returns YES
  • ShapeKit has support for linear projection and interpolation
ShapeKitPoint *middlePoint = [myLine interpolatePointAtNormalizedDistance: 0.5];
double projectedPosition = [myLine distanceFromOriginToProjectionOfPoint: myPoint];

Project setup


This is free software; you can redistribute and/or modify it under the terms of the GNU Lesser General Public Licence as published by the Free Software Foundation. See the COPYING file for more information.

License note: Be aware that LGPL v2.1 (GEOS license) and Apple Store compatibility is at least controversial (search for "LGPL iOS" on Google to know why).