Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating an application (C#) and I want to connect it to GRASS, mainly run grass scripts from my application.

This might seem to be a repeated question however I am thinking of the possibility that I will no longer open GRASS explicitly (double click the application and the GUI will pop-out). Also I know that GRASS can create PNG images but can grass do this too without being ran? I really need GRASS to be hidden from the view so that it would be neat. BTW I know that ofcourse GRASS would still be needed to be installed in the PC and not completely remove it.

Are there any available tutorials other than the one on the wiki page? Or a sample code?

share|improve this question

You could use MapServer to generate map images from GRASS layers - and

MapServer also has C# bindings which may be of interest to you for manipulating a dataset further see -

Precompiled versions of MapServer and C# bindings are available at

If taking this approach you may find you can use GDAL to do many of the functions in GRASS, so you may not need GRASS at all.

I am not sure how this approach would work for complex dynamically generated images. You could look at the GRASS web services which would give you independence from the desktop package -

share|improve this answer
I'm not doing an online application. I am intending to use this offline without the need of a webserver. :) – teamAngat Feb 20 '11 at 13:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.