[GRASS-stats] Some refactoring and fixing
Rainer M Krug
Rainer at krugs.de
Tue Jan 27 03:55:49 PST 2015
Hi
I just committed a few of commits which refactor the code of readRAST,
writeRAST, readVECT & writeVECT by creating internal fi=unctions for
reading / writing for plugin / non-plugin and moving the default values
(get...Options()) into the function definitions.
Also, I added tryCatch blocks to close open connections and to reset
echoCmdOption. I ran the examples before each commit and I did not see
any errors or changed behavior.
Apologies for the typos in the commit messages - I only saw them later.
To stick with consistency, I would recommend to rename the package to
spgrass7 and to look into the possibility to create a meta-package which
uses spgrass6 or spgrass7 (I don't know about the GRASS 5 interface -
haven't used it) depending on the GRASS GIS version set / loaded.
Cheers,
Rainer
--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer at krugs.de
Skype: RMkrug
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-stats/attachments/20150127/5b11f130/attachment.pgp>
More information about the grass-stats
mailing list