[GRASS-dev] wxvdigit

Benjamin Ducke benjamin.ducke at oxfordarch.co.uk
Wed Sep 29 08:33:28 EDT 2010


Why don't you just call the C API from C++?
The VEdit C library has some convenient functions for building
a digitizer application.

Ben

----- Original Message -----
> What I want is a vector digitizer using GRASS. I read programmers
> manual and saw the code to create vector files. I want to edit/add
> data(points/lines or atleast points) on the new created vector map
> like the wx digitizer. I am using C++ for developing my application
> not python or wx.python.
> 
> 
> I knew how to replace python code with my C++. But wx digitzer uses a
> swig interface and calls a .so file _grass6_wxvdigit.so located in
> /usr/local/grass-6.5.svn/etc/wxpython/vdigit.
> 
> 
> Can I use the .so file said above in my code. As I am developing with
> C++ I can directly link the
> _grass6_wxvdigit.so file. I am asking that Can I link the .so file
> with my C++ code . normally its possible and easy. But the .so files
> is swig generated(I maybe wrong)
> 
> 
> Is Information said above is enough or If you want more please tell me
> which part need more explanation. I am ready to provide you.
> 
> 
> On Wed, Sep 29, 2010 at 5:49 PM, Benjamin Ducke <
> benjamin.ducke at oxfordarch.co.uk > wrote:
> 
> 
> How about you explain to us what you want to achieve with your
> program? If people here understand what you are trying to do,
> they can give you more useful advise.
> 
> If all you want is to create some vector objects, you can use
> the GRASS C API from within your C++ code. There is a programmer's
> manual which you can consult:
> 
> http://grass.fbk.eu/devel/index.php#prog
> 
> and of course, you have the source code of all GRASS GIS modules,
> so you can try to find one that does something similar to what
> you want and learn from that.
> 
> Ben
> 
> 
> 
> 
> ----- Original Message -----
> > How can I communicate with wx digitizer ( i mean using the
> > wxdigit.so file) using a c++ program.
> > All I need is create an map with one point from a c++ program which
> > is linked to _grass6_wxvdigit.so located in
> > /usr/local/grass-6.5.svn/etc/wxpython/vdigit.
> >
> >
> > How to access the functions of the library using a C++ program run
> > from grass shell with all variables set. My program renders a map
> > when run from grass shell. Now I want to add
> > digitzer;
> >
> > -- Rashad
> >
> > _______________________________________________ grass-dev mailing
> > list grass-dev at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-dev
> 
> 
> ------ Files attached to this email may be in ISO 26300 format (OASIS
> Open Document Format). If you have difficulty opening them, please
> visit http://iso26300.info for more information.
> 
> 
> 
> 
> -- Rashad


------
Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.



More information about the grass-dev mailing list