huhabla / grass

GRASS GIS - free and open source Geographic Information System (GIS)

Home Page:https://grass.osgeo.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

GRASS GIS Repository

GRASS GIS (https://grass.osgeo.org/) is a Geographic Information System used for geospatial data management and analysis, image processing, graphics/map production, spatial modeling, and visualization.

How to get write access here?

In general: you don't really need write access as you can simply open a pull request to contribute to GRASS GIS.

Want to become a core developer? See Procedure for gaining Git write access

How to compile GRASS?

See INSTALL file.

Yes, you should really read INSTALL.

How to generate the 'Programmer's Manual'?

This needs doxygen (http://www.doxygen.org) and optionally Graphviz dot (http://www.research.att.com/sw/tools/graphviz/).

To build the GRASS programmer's documentation, run

make htmldocs

or to generate documentation as single html file (recommended for simple reading)

make htmldocs-single

here. This takes quite some time. The result is in lib/html/index.html which refers to further document repositories in

   lib/vector/html/index.html
   lib/db/html/index.html
   lib/gis/html/index.html

The master file is: ./grasslib.dox where all sub-documents have to be linked into.

To generate the documents in PDF format, run

make pdfdocs

An online version is available here

Docker

Build using the downloaded source code (in the directory with the source code):

    docker build -t grassgis77 .

A test run (assuming you have existing GRASS GIS location; it can be downloaded from here)

# case 1: launching in the grassdata directory in which the location is stored:
docker run -it --rm --user=$(id -u):$(id -g) --volume $(pwd):/data --env HOME=/data/ grassgis77 \
    grass --text nc_spm_08_grass7/user1 --exec g.region -p

# case 2: launching anywhere
docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ grassgis77 \
    grass /data/nc_basic_spm/PERMANENT --exec g.region -p

Note that the first grassgis77 is the name of the image while the second grass is the name of the executable.

To run the tests (again assuming local location):

    docker run -it --rm --user=$(id -u):$(id -g) --volume /your/test/grassdata/:/data --env HOME=/data/ -w /code/grass \
        grassgis77 grass /data/nc_basic_spm/PERMANENT --exec \
            python -m grass.gunittest.main \
                --location nc_basic_spm --location-type nc

Note: If you compiled locally before building the Docker image, you may encounter problems as the local configuration and locally compiled file are copied to and used in the Docker image. To make sure you don't have this issue, clean all the compiled files from the source code:

make distclean

About

GRASS GIS - free and open source Geographic Information System (GIS)

https://grass.osgeo.org

License:Other


Languages

Language:C 51.4%Language:Python 31.4%Language:HTML 8.2%Language:C++ 5.6%Language:Shell 1.1%Language:Makefile 0.7%Language:Objective-C 0.4%Language:TeX 0.4%Language:Rich Text Format 0.2%Language:PostScript 0.1%Language:TSQL 0.1%Language:Batchfile 0.1%Language:Yacc 0.0%Language:Perl 0.0%Language:Lex 0.0%Language:Roff 0.0%Language:Dockerfile 0.0%Language:PLpgSQL 0.0%Language:AppleScript 0.0%Language:POV-Ray SDL 0.0%Language:PLSQL 0.0%Language:CSS 0.0%Language:sed 0.0%Language:AGS Script 0.0%