• Stars
    star
    826
  • Rank 55,195 (Top 2 %)
  • Language
    C
  • License
    Other
  • Created over 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GRASS GIS - free and open-source geospatial processing engine

GRASS GIS Repository

Build Status GCC C/C++ standards check Python code quality check General linting Ubuntu OSGeo4W CentOS DOI Join the chat at https://gitter.im/grassgis/community

Description

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.

Launch this repository in Binder and experiment with GRASS's Python API in Jupyter Notebooks by clicking the button below:

Binder

Contributing

In general: you don't really need write access as you can simply open a pull request to contribute to GRASS GIS. See CONTRIBUTING file for more details.

How to get write access here

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

How to compile GRASS

See the INSTALL.md file.

Yes, you should really read INSTALL.md. In addition, there are detailed compile instructions in the Wiki.

Docker

Build a docker image using the downloaded source code (run this in the directory containing the source code):

A. Docker image without graphical user interface - wxGUI.

docker build -t grassgis .

A test run (assuming you have the existing GRASS GIS test 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/ grassgis grass --text nc_basic_spm_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/ grassgis \
        grass /data/nc_basic_spm_grass7/PERMANENT --exec g.region -p

Note that the first grassgis 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 \
        grassgis grass /data/nc_basic_spm_grass7/PERMANENT --exec \
            python -m grass.gunittest.main \
                --location nc_basic_spm_grass7 --location-type nc

B. Docker image with graphical user interface - wxGUI.

docker build -t grassgis -f docker/ubuntu_wxgui/Dockerfile .

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

xhost local:$(id -u)
docker run -it --privileged --user=$(id -u):$(id -g) --rm \
    --volume="$(pwd)/:/data" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
    --env HOME=/data/ --env DISPLAY=$DISPLAY \
    --device="/dev/dri/card0:/dev/dri/card0" \
    grassgis grass --gui

Note: If you compiled locally before building the Docker image, you may encounter problems as the local configuration and the locally compiled files 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

Thanks to all contributors ❀

GRASS contributors

More Repositories

1

gdal

GDAL is an open source MIT licensed translator library for raster and vector geospatial data formats.
C++
4,858
star
2

PROJ

PROJ - Cartographic Projections and Coordinate Transformations Library
C++
1,676
star
3

homebrew-osgeo4mac

Mac homebrew tap for maintaining a stable work environment for the OSGeo.org geospatial toolset
Ruby
364
star
4

osgeo

The Open Source Geospatial Foundation is not-for-profit organization to empower everyone with open source geospatial. Directly supports projects as an outreach and advocacy organization providing financial, organizational and legal support. Works with our sponsors and partners for open software, standards, data, research and education.
CSS
363
star
5

libgeotiff

Official repository of the libgeotiff project
HTML
171
star
6

OSGeoLive

OSGeo-Live is a self-contained bootable DVD, USB thumb drive or Virtual Machine based on LUbuntu, that allows you to try a wide variety of open source geospatial software without installing anything. It is composed entirely of FOSS, allowing it to be openly reproduced and distributed.
Shell
151
star
7

shapelib

Official repository of shapelib
C
130
star
8

grass-addons

GRASS GIS Addons Repository
Python
98
star
9

PROJ-data

Repository for proj datum grids (for use by PROJ 7 or later)
Python
69
star
10

proj-datumgrid

Historic repository for proj datum grids. New developments are at https://github.com/OSGeo/PROJ-data
Python
40
star
11

tilecache

Tilecache
Python
34
star
12

OSGeoLive-Notebooks

Repository for OSGeo-Live Jupyter Notebooks
Jupyter Notebook
33
star
13

OSGeoLive-doc

Documentation of OSGeoLive project.
Shell
33
star
14

ows.js

OGC Web Services Library for JavaScript
JavaScript
29
star
15

Cat-Interop

Better interoperability between open source metadata servers and clients.
Python
22
star
16

PROJ-JNI

Java Native Interface for PROJ
Java
22
star
17

PROJ-CRS-Explorer

Browse on PROJ coordinate reference systems
HTML
19
star
18

grass-website

Web site of GRASS GIS project (deployed from this repo twice a day)
CSS
17
star
19

gdal-docs

Static content for GDAL website, refreshed from OSGeo/gdal
HTML
16
star
20

MOSS

Heritage archives of the first-ever Open Source GIS: Map Overlay and Statistical System (MOSS), containing its original codebase and help documentation.
Fortran
15
star
21

spatialreference.org

spatialreference.org source code
Python
12
star
22

gdal-extra-drivers

Extra (legacy) GDAL drivers
C++
10
star
23

gdal-grass

GDAL-GRASS GIS driver (https://github.com/OSGeo/gdal-grass/blob/main/docs/grass_raster.md and https://github.com/OSGeo/gdal-grass/blob/main/docs/grass_vector.md)
Python
10
star
24

mdme

Model Driven Metadata Editor (MDME): web application for geospatial metadata editing
Vue
8
star
25

grass-promo

GRASS GIS promotional material repository
TeX
8
star
26

grass-legacy

Legacy code repository of GRASS GIS versions 3.2, 4.x, 5.x, 6.x (1987-2016)
C
7
star
27

gsoc

Repository for OSGeo collaboration with Google Summer of Code (GSOC) activities.
6
star
28

geoschemas

Python package of various geospatial schema bundles
4
star
29

gdal-test-datasets

3
star
30

OSGeoLive-doc-archive

HTML
3
star
31

projjson-submission

Repository for PROJJSON submission as OGC community standard
1
star
32

proj4-doc-forward

forward old proj4.org -> proj.org
HTML
1
star
33

osgeo4freebsd

OSGeo build recipes for FreeBSD packaging
1
star
34

ogc-cite-action

GitHub Action to test your implementation against OGC CITE
Shell
1
star
35

proj-coverage

PROJ.4 HTML coverage
HTML
1
star