[GRASS-dev] New wiki page summarising GRASS APIs

Moritz Lennert mlennert at club.worldonline.be
Sat Jan 31 04:49:46 PST 2015


Hi Pietro,

Thanks for the feedback !

On 31/01/15 11:06, Pietro wrote:
> Hi Moritz,
>
> On Fri, Jan 30, 2015 at 5:02 PM, Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
>> In preparation of a talk at the geospatial devroom at the FOSSDEM this
>> weekend, I've elaborated a wiki page on the current GRASS GIS APIs:
>>
>> http://grasswiki.osgeo.org/wiki/GRASS_GIS_APIs
>
> Thank you for the work that you have done! Some brief notes:
>
> Why os.system?
[...]
> and not subprocess:

I thought that os.system was easier to understand, but you're right, 
let's immediately promote the use of subprocess.

>
> Concerning the pygrass Module API, may be we can use the shortcut version:

I've added this as an additional example.

> In the Census example, we should add census.close() to close the

Ah, yes, thank you. I've actually now replaced this example with one 
using schools and adding a new school to the map.

Moritz


More information about the grass-dev mailing list