| 1 | GRASS GIS Development Subversion repository
|
|---|
| 2 |
|
|---|
| 3 | ##########################################################
|
|---|
| 4 | How to get write access here?
|
|---|
| 5 |
|
|---|
| 6 | Write access is only granted to developers who agree to abide by
|
|---|
| 7 | RFC2 - Legal aspects of code contributions
|
|---|
| 8 | http://trac.osgeo.org/grass/wiki/RFC/2_LegalAspectsOfCodeContributions
|
|---|
| 9 | and the code submission guidelines
|
|---|
| 10 | http://trac.osgeo.org/grass/wiki/Submitting
|
|---|
| 11 |
|
|---|
| 12 | This needs to be communicated to a GRASS developer. S/he will
|
|---|
| 13 | then possibly propose you to the GRASS Project Steering committee
|
|---|
| 14 | after a period of evaluation. For details, see
|
|---|
| 15 | http://trac.osgeo.org/grass/wiki/RFC
|
|---|
| 16 |
|
|---|
| 17 | Once write access is granted, you, the new developer need to
|
|---|
| 18 | obtain an "osgeo_id" at http://www.osgeo.org/osgeo_userid
|
|---|
| 19 | If you already have an "osgeo_id" but forgot it, search for it at
|
|---|
| 20 | Search at http://www.osgeo.org/cgi-bin/ldap_web_search.py
|
|---|
| 21 |
|
|---|
| 22 | ##########################################################
|
|---|
| 23 | How to compile GRASS:
|
|---|
| 24 | See INSTALL file.
|
|---|
| 25 |
|
|---|
| 26 | Yes, you should really read INSTALL.
|
|---|
| 27 |
|
|---|
| 28 | ##########################################################################
|
|---|
| 29 | How to generate the 'Programmer's Manual':
|
|---|
| 30 |
|
|---|
| 31 | This needs doxygen (http://www.doxygen.org) and optionally
|
|---|
| 32 | Graphviz dot (http://www.research.att.com/sw/tools/graphviz/).
|
|---|
| 33 |
|
|---|
| 34 | To build the GRASS programmer's documentation, run
|
|---|
| 35 | make htmldocs
|
|---|
| 36 | or to generate documentation as single html file (recommended for simple reading)
|
|---|
| 37 | make htmldocs-single
|
|---|
| 38 | here. This takes quite some time. The result is in lib/html/index.html
|
|---|
| 39 | which refers to further document repositories in
|
|---|
| 40 | lib/vector/html/index.html
|
|---|
| 41 | lib/db/html/index.html
|
|---|
| 42 | lib/gis/html/index.html
|
|---|
| 43 |
|
|---|
| 44 | The master file is: ./grasslib.dox where all sub-documents have to
|
|---|
| 45 | be linked into.
|
|---|
| 46 |
|
|---|
| 47 | To generate the documents in PDF format, run
|
|---|
| 48 | make pdfdocs
|
|---|
| 49 |
|
|---|
| 50 | An online version is available at:
|
|---|
| 51 | https://grass.osgeo.org/programming7/
|
|---|
| 52 |
|
|---|
| 53 | ## Docker
|
|---|
| 54 |
|
|---|
| 55 | Build using the downloaded source code (in the directory with the
|
|---|
| 56 | source code):
|
|---|
| 57 |
|
|---|
| 58 | docker build -t grassgis77 .
|
|---|
| 59 |
|
|---|
| 60 | A test run (assuming you have existing GRASS GIS location; it can be downloaded from
|
|---|
| 61 | https://grass.osgeo.org/sampledata/north_carolina/nc_basic_spm_grass7.zip)
|
|---|
| 62 |
|
|---|
| 63 | # case 1: launching in the grassdata directory in which the location is stored:
|
|---|
| 64 | docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data --env HOME=/data/ grassgis77 \
|
|---|
| 65 | grass --text nc_spm_08_grass7/user1 --exec g.region -p
|
|---|
| 66 |
|
|---|
| 67 | # case 2: launching anywhere
|
|---|
| 68 | docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis77 \
|
|---|
| 69 | grass /data/nc_basic_spm/PERMANENT --exec g.region -p
|
|---|
| 70 |
|
|---|
| 71 | Note that the first `grassgis77` is the name of the image while the second
|
|---|
| 72 | `grass` is the name of the executable.
|
|---|
| 73 |
|
|---|
| 74 | To run the tests (again assuming local location):
|
|---|
| 75 |
|
|---|
| 76 | docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ -w /code/grass \
|
|---|
| 77 | grassgis77 grass /data/nc_basic_spm/PERMANENT --exec \
|
|---|
| 78 | python -m grass.gunittest.main \
|
|---|
| 79 | --location nc_basic_spm --location-type nc
|
|---|
| 80 |
|
|---|
| 81 | Note: If you compiled locally before building the Docker image, you may
|
|---|
| 82 | encounter problems as the local configuration and locally compiled file
|
|---|
| 83 | are copied to and used in the Docker image. To make sure you don't have
|
|---|
| 84 | this issue, clean all the compiled files from the source code:
|
|---|
| 85 |
|
|---|
| 86 | make distclean
|
|---|