|
ShapeLib
Setting up pyShapeLib
AboutpyShapeLib is the name of the python bindings for ShapeLib. ShapeLib is a library for dealing with ESRI Shapefiles like the ones that the Census provides. polipoly depends on pyshapelib-0.3. Obtaining the SourcesUnfortunately, pyShapeLib must be built from source. This requires the source of both ShapeLib and pyShapeLib. The latest ShapeLib sources can be obtained from the package shapelib-1.2.10.tar.gz available at http://dl.maptools.org/dl/shapelib/ The latest pyShapeLib sources are available at http://ftp.intevation.de/users/bh/pyshapelib/pyshapelib-0.3.tar.gz Building the LibraryExtract ShapeLib to a directory and then extract pyShapeLib within it so that you have a shapelib-1.2.10/pyshapelib-0.3 directory. Enter the shapelib-1.2.10/pyshapelib-0.3 directory and run the python setup.py build command followed by python setup.py install which will install the library into your site-packages If running python setup.py build gives errors make sure that the appropriate python-dev packages are installed on your system. For example on a debian-based system one can typically run apt-get install python-dev |
Sign in to add a comment
An excellent and very helpful introduction. Please note that the C developers' libraries are also required for installation. Debian users can use apt-get install libc6-dev.