Menu

Tree [r7059] / trunk / toolkits / basemap / geos-2.2.3 / swig / python /
 History

HTTPS access


File Date Author Commit
 tests 2007-11-14 jswhit [r4291] include GEOS library source code
 Makefile.am 2007-11-14 jswhit [r4291] include GEOS library source code
 Makefile.in 2007-11-14 jswhit [r4291] include GEOS library source code
 README.txt 2007-11-14 jswhit [r4291] include GEOS library source code
 setup.py 2007-11-14 jswhit [r4291] include GEOS library source code

Read Me

.. $Id: README.txt,v 1.1 2004/07/25 23:45:47 sgillies Exp $
   
SWIG generated GEOS module for Python
=====================================

:Author: Sean Gillies
:Contact: sgillies@frii.com


Installation
------------

Although the pre-release GEOS in CVS is not quite ready to be installed, one
can build and install a Python geos module from CVS.

Starting in the top-level geos directory:

$ ./autogen.sh
$ ./configure
$ make

Do *not* install the pre-release GEOS

$ cd swig/python
$ swig -c++ -python -modern -o geos_wrap.cxx ../geos.i
$ python setup.py build
$ python tests/runtests.py -v
$ sudo python setup.py install


Testing
-------

The beginning of a unit testing framework is found under swig/python/tests.
For now there is one (1) test, just enough to make sure that the library can
be imported and demonstrate some usage.  Whether or not more tests will be
written depends on whether the GEOS developers pick up on using Python for
unit testing and whether or not I (Sean) get more involved with GEOS 
development.


Usage
-----

The module generated by SWIG will have an API very much like the C++ API,
but with a flattened namespace.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.