grasspython.dox 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*! \page GRASS_SWIG_PYTHON GRASS SWIG/PYTHON interface
  2. <h2>GRASS SWIG/PYTHON interface</h2>
  3. At the moment a prototype is implemented. It permits to use
  4. some GRASS library functions directly from the PYTHON programming language.
  5. <h3>Status of GRASS SWIG/PYTHON implementation</h3>
  6. At the moment a prototype is implemented. There is a
  7. "swig" module with a series of separate sub-modules available:
  8. <ul>
  9. <li> arraystats.i
  10. <li> cluster.i
  11. <li> common.i
  12. <li> date.i
  13. <li> dbmi.i
  14. <li> display.i
  15. <li> g3d.i
  16. <li> grass.i
  17. <li> imagery.i
  18. <li> math.i
  19. <li> my_typemaps.i
  20. <li> proj.i
  21. <li> raster.i
  22. <li> stats.i
  23. <li> trans.i
  24. <li> utils.i
  25. <li> vector.i
  26. <li> vedit.i
  27. </ul>
  28. <h3>Usage</h3>
  29. These can be imported individually with e.g. "import swig.grass", or the
  30. user can import all of them with "import swig" (then use e.g.
  31. swig.grass.G_gisinit etc), or it can be used e.g. "from swig.grass import *"
  32. to import all names from a module. The latter can be done for multiple
  33. modules, but currently, there's no way to import names from all sub-modules
  34. of a module with a single command.
  35. <h3>Examples</h3>
  36. <ul>
  37. <li> examples/m.distance.py
  38. <li> examples/rasteraccess.py
  39. <li> examples/vectoraccess.py
  40. <li> test.py
  41. </ul>
  42. */