[GRASS5] Re: c++ question
Markus Neteler
neteler at itc.it
Thu Aug 8 02:51:26 EDT 2002
Helena, Laura
(cc grass5)
[Laura, the MailMan was catching your mail, only subscribers
can post... sorry. This avoids spamming.]
On Wed, Aug 07, 2002 at 07:36:47PM -0400, Helena wrote:
> Markus,
>
> you might have noticed Laura's question about the c++ code - originally
> she wanted to implement her old c-code, but that one did not have lot
> of capabilities that we needed so she is trying to do it with the newer
> c++ version of terraflow. I told her to look at gdal code which is c++,
> but I am not sure whether that would work for her. It would be good to
> do this with the future structure of grass code in mind - do you have any
> advice for this, or who would be a good person to contact?
from the previous discussions about C++ there was some consensus not
to introduce C++ intro GRASS directly. But: GDAL contains a C wrapper
around the C++ functions which are needed for the interface (called
"GDAL bridge").
Laura, maybe you can wrap the interfacing functions of your code to C?
The same we expect for OGR (the vector counterpart for GDAL raster),
a C wrapper ("OGR bride" or so). Frank Warmerdam has developed the
GDAL bridge. It's part of GDAL (subdirectory bridge):
http://remotesensing.org/gdal/
I am rather sure that core GRASS remains C, but such wrappers may
establish the connection to C++.
There is also the "libgrass" containing I/O routines of GRASS (the related
C functions extracted for that package). I am using that for
GRASS/MapServer.
Maybe the other developers have a different opinion?!
Markus
More information about the grass-dev
mailing list