[GRASS-user] Re: Using GRASS to solve the "Checking if a point (X, Y) is inside the, polygons of a shape file using command line."

Hamish hamish_b at yahoo.com
Thu Mar 6 04:43:31 EST 2008


Corrado wrote:
> Where do I find these files, like poly.c? I cannot find them on my 
> installation. I have 6.2.3 on Ubuntu 7.10, with the grass-dev package
> installed. 
> 
> Do I have to use python?
> 
> I thought I could use a bash script.


I was meaning fundamentally those functions are present in the C source
code if you want to have a peek under the bonnet:
  http://trac.osgeo.org/grass/browser/grass/trunk/lib/vector/Vlib/

If that's a bit dense you can check out what the Programmer's module:
  http://download.osgeo.org/grass/grass6_progman/


But typically you should be able to get at whatever functionality you
need from the modules (command line / GUI interfaces). There isn't much
you can't do with the modules, it may not be obvious which module
contains the functionality, but if you keep searching+asking eventually
a solution comes to light.

If you must have access to a function not covered by a module or e.g.
want to write a high performance custom model into a new module, you
can get access to those C library functions using the SWIG Python
interface without having to mess with knowing C.


Hamish



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 




More information about the grass-user mailing list