AddOns: Difference between revisions

From GRASS-Wiki
Jump to navigation Jump to search
No edit summary
m (Reverted edits by Ipodsoft (talk) to last revision by Neteler)
Line 1: Line 1:
This page contains references to user contributions and add-ons (the original GRASS GIS software can be downloaded [http://grass.osgeo.org/download/ here]).
This page contains references to user contributions and add-ons (the original GRASS GIS software can be downloaded [http://grass.osgeo.org/download/ here]).
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


__TOC__
__TOC__
Line 22: Line 18:


  g.extension extension=r.fuzzy.system operation=remove
  g.extension extension=r.fuzzy.system operation=remove
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


=== Power users (not recommended for Windows users) ===
=== Power users (not recommended for Windows users) ===


For manual compiling see the [[Compile and Install#Addons|compile and install]] wiki page.
For manual compiling see the [[Compile and Install#Addons|compile and install]] wiki page.
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


== AddOns source code repository ==
== AddOns source code repository ==


The AddOns source code is hosted in [http://svn.osgeo.org/grass/grass-addons/ GRASS-AddOns SVN repository].
The AddOns source code is hosted in [http://svn.osgeo.org/grass/grass-addons/ GRASS-AddOns SVN repository].
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


== Adding something new ==
== Adding something new ==
Line 50: Line 34:


Please announce your add-on to the GRASS users' mailing list so that others may be aware of your work. Also please consider adding your module to one of the [[Applications]] pages.
Please announce your add-on to the GRASS users' mailing list so that others may be aware of your work. Also please consider adding your module to one of the [[Applications]] pages.
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


=== Copyright and licensing information ===
=== Copyright and licensing information ===


''Please be sure to include copyright and licensing information in the header comments of your code so that others may know how they can use, extend, modify, and redistribute your work.''
''Please be sure to include copyright and licensing information in the header comments of your code so that others may know how they can use, extend, modify, and redistribute your work.''
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


e.g. at the top of a shell script:
e.g. at the top of a shell script:
Line 88: Line 64:
[script follows]
[script follows]
</source>
</source>
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


=== Coding standards ===
=== Coding standards ===


Please have a look at our {{src|SUBMITTING}} for C-programs, {{src|SUBMITTING_PYTHON}} for Python scripts or {{src|SUBMITTING_SCRIPTS|branch=branches/develbranch_6}} for Bash scripts coding standards before submitting here.
Please have a look at our {{src|SUBMITTING}} for C-programs, {{src|SUBMITTING_PYTHON}} for Python scripts or {{src|SUBMITTING_SCRIPTS|branch=branches/develbranch_6}} for Bash scripts coding standards before submitting here.
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


=== Documenting your code ===
=== Documenting your code ===


You can have an help page template auto-generated by using the GRASS [[module command line parser | command line parser]] with the <tt>--html-description</tt> command line option. Please, see also the {{cmd|g.parser}} help page.
You can have an help page template auto-generated by using the GRASS [[module command line parser | command line parser]] with the <tt>--html-description</tt> command line option. Please, see also the {{cmd|g.parser}} help page.
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


== Miscellaneous Add-ons ==
== Miscellaneous Add-ons ==
Line 127: Line 91:


* [http://trac.osgeo.org/grass/browser/grass-addons/tools/csv_dequote.pl csv_dequote.pl] is a Perl script to convert comma separated .csv files (including "quoted" text strings containing commas) into a form ready for {{Cmd|v.in.ascii}}. Comma separators are converted to pipes (|), commas in quoted strings are preserved, and "quotes" are removed where it is appropriate to do so. It doesn't need GRASS to run, but it does need the Text::CSV Perl Module (<tt>apt-get install libtext-csv-perl</tt>).<BR>'''Author''': Hamish Bowman
* [http://trac.osgeo.org/grass/browser/grass-addons/tools/csv_dequote.pl csv_dequote.pl] is a Perl script to convert comma separated .csv files (including "quoted" text strings containing commas) into a form ready for {{Cmd|v.in.ascii}}. Comma separators are converted to pipes (|), commas in quoted strings are preserved, and "quotes" are removed where it is appropriate to do so. It doesn't need GRASS to run, but it does need the Text::CSV Perl Module (<tt>apt-get install libtext-csv-perl</tt>).<BR>'''Author''': Hamish Bowman
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


== GRASS 6.x (current) ==
== GRASS 6.x (current) ==


* See [[AddOns/GRASS 6]]
* See [[AddOns/GRASS 6]]
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


==GRASS 7.x (in development)==
==GRASS 7.x (in development)==


* See [[AddOns/GRASS 7]]
* See [[AddOns/GRASS 7]]
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


==GRASS 5.x (old)==
==GRASS 5.x (old)==


* See [[AddOns/GRASS 5]]
* See [[AddOns/GRASS 5]]
'''Source(s):'''  [http://www.downloadranking.com  AddOns]


==GRASS 4.x (very old)==
==GRASS 4.x (very old)==
Line 161: Line 109:


{{AddOns}}
{{AddOns}}
'''Source(s):'''  [http://www.downloadranking.com  AddOns]

Revision as of 16:56, 8 July 2013

This page contains references to user contributions and add-ons (the original GRASS GIS software can be downloaded here).

Building and installing AddOns

Common users

Graphical user interface:
We recommend to use the wxGUI Extension Manager (Settings -> Addon extensions -> Install extensions from addons) to install Addons.

Command line:
You can also use the g.extension module, e.g. to install r.fuzzy.system run:

g.extension extension=r.fuzzy.system

To remove installed AddOns run

g.extension extension=r.fuzzy.system operation=remove

Power users (not recommended for Windows users)

For manual compiling see the compile and install wiki page.

AddOns source code repository

The AddOns source code is hosted in GRASS-AddOns SVN repository.

Adding something new

How to obtain write-access

Please read how to get write access to the GRASS-Addons-SVN repository and contact the grass-dev mailing list if you would like to host your module there.

Please announce your add-on to the GRASS users' mailing list so that others may be aware of your work. Also please consider adding your module to one of the Applications pages.

Copyright and licensing information

Please be sure to include copyright and licensing information in the header comments of your code so that others may know how they can use, extend, modify, and redistribute your work.

e.g. at the top of a shell script:

#!/bin/sh
############################################################################
#
# MODULE:       v.in.e00
#
# AUTHOR(S):    Markus Neteler, Otto Dassau
#
# PURPOSE:      Import E00 data into a GRASS vector map
#               Imports single and split E00 files (.e00, .e01, .e02 ...)
#
# COPYRIGHT:    (c) 2004, 2005 GDF Hannover bR, http://www.gdf-hannover.de
#
#               This program is free software under the GNU General Public
#               License (>=v2). Read the file COPYING that comes with GRASS
#               for details.
#
#############################################################################
#
# REQUIREMENTS:
#      -  avcimport: http://avce00.maptools.org

[script follows]

Coding standards

Please have a look at our SUBMITTING for C-programs, SUBMITTING_PYTHON for Python scripts or SUBMITTING_SCRIPTS for Bash scripts coding standards before submitting here.

Documenting your code

You can have an help page template auto-generated by using the GRASS command line parser with the --html-description command line option. Please, see also the g.parser help page.

Miscellaneous Add-ons

  • utm_which_zone.sh is a shell script to determine UTM zone from Lat/Lon input. Requires Octave or Matlab to be installed. A shell-only version is available which only requires awk.
    Authors: Hamish Bowman (Octave part), Markus Neteler (shell script wrapper), Daniel Calvelo (sh+awk version)


  • Perl scripts for converting data forth and back between Excel files and PostgreSQL: pg2xls.pl reads data from PostgreSQL and produces an excel workbook; xls2sql.pl reads excel files and outputs SQL statements to be fed into an RDBMS. Both scripts need modules from CPAN, especially Spreadsheet::ParseExcel for xls2sql.pl and Spreadsheet::WriteExcel::FromDB and its dependencies for pg2sql.pl. Check the source headers for more info.
    Authors: Daniel Calvelo (xls2sql.pl), Markus Neteler (pg2xls.pl)


  • dbf2sql is a Perl script for translating dbf-tables into a sql-command. dbf-tables are read using dbfdump-command from dbd-xbase-perl module (dbd::xbase and getopt::long have to be installed from CPAN first). There are problems, if the last column of the table contains characters. Suggestions for improvements welcome!
    Author:Wolfgang Qual


  • azimuth2.c is a small C program to calculate the azimuth and length of vector lines exported by GRASS-GIS as ASCII files (like this: v.out.ascii input=vector output=ascii format=standard). It is useful for create rose diagrams of lineament maps. Improvements on the original code after suggestions by Örs Téglásy, Hungary.
    Author: Carlos Henrique Grohmann


  • ann.* is the set of GRASS modules (in python) which implements artificial neural network using FANN library. The package requires Fast Artificial Neural Network Library (FANN) v2.x.
    Author: Pawel Netzel


  • csv_dequote.pl is a Perl script to convert comma separated .csv files (including "quoted" text strings containing commas) into a form ready for v.in.ascii. Comma separators are converted to pipes (|), commas in quoted strings are preserved, and "quotes" are removed where it is appropriate to do so. It doesn't need GRASS to run, but it does need the Text::CSV Perl Module (apt-get install libtext-csv-perl).
    Author: Hamish Bowman

GRASS 6.x (current)

GRASS 7.x (in development)

GRASS 5.x (old)

GRASS 4.x (very old)