Customizing the GRASS Toolbox
提供: OSGeo.JP Wiki
Customizing the GRASS Toolbox
Nearly all GRASS modules can be added to the GRASS toolbox. A XML interface is provided to parse the pretty simple XML files which configures the modules appearance and parameters inside the toolbox. <P> A sample XML file for generating the module v.buffer (v.buffer.qgm) looks like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE qgisgrassmodule SYSTEM "http://mrcc.com/qgisgrassmodule.dtd"> <qgisgrassmodule label="Vector buffer" module="v.buffer"> <option key="input" typeoption="type" layeroption="layer" /> <option key="buffer"/> <option key="output" /> </qgisgrassmodule>
<P>
The parser reads this definition and creates a new tab inside the toolbox
when you select the module. A more detailed description for adding new
modules, changing the modules group, etc. can be found on the QGIS wiki at
http://wiki.qgis.org/qgiswiki/Adding_New_Tools_to_the_GRASS_Toolbox.
<P>