[GRASS-dev] porting sites format to new vector

Hi,

I'd like to know if there is some kind of 'how-to' about porting a module that is using the obsolete vector sites format to the latest vector architecture? I've been searching the web but couldn't find anything like that.

Thanks,
Volker

Hi,

not sure if such kind of 'how-to' exists, anyway some time ago I
updated v.hull to get rid of sites.h [1]

Martin

[1] http://freegis.org/cgi-bin/viewcvs.cgi/grass6/vector/v.hull/main.c.diff?r1=1.10&r2=1.11

2007/10/1, Volker Wichmann <wichmann@laserdata.at>:

Hi,

I'd like to know if there is some kind of 'how-to' about porting a
module that is using the obsolete vector sites format to the latest
vector architecture? I've been searching the web but couldn't find
anything like that.

Thanks,
Volker

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *

On Mon, 2007-10-01 at 21:08 +0200, Volker Wichmann wrote:

Hi,

I'd like to know if there is some kind of 'how-to' about porting a
module that is using the obsolete vector sites format to the latest
vector architecture? I've been searching the web but couldn't find
anything like that.

Not AFAIK. lib/sites/README offers little info, but lib/sites/sites.c
is useful to see how wrapper functions work. It may be helpful to
compare a module that was once based on sites that has been converted to
the vector library (s.surf.idw from grass54 and v.surf.idw from
current).

If you do end up converting a module, adding tips to the wiki for others
would be great. :wink:

--
73, de Brad KB8UYR/6 <rez touchofmadness com>

Volker Wichmann wrote:

Hi,

I'd like to know if there is some kind of 'how-to' about porting a
module that is using the obsolete vector sites format to the latest
vector architecture? I've been searching the web but couldn't find
anything like that.

In addition to Martin's and Brad's advices, there is another
example of how to get rid of sites dependecy available. Bob
Covill has (mostly) done it for NVIZ. The fix is not
completely finished, so it was not submitted to CVS. But
it's available from patches tracker on [1]. You can fetch
the Gp3.c file attached there and compare it with the stock
Gp3.c from CVS. Hopefully it'll give you some inspiration.

[1]http://wald.intevation.org/tracker/index.php?func=detail&aid=371&group_id=21&atid=205

Maciek

Martin, Brad, Maciej,

thanks for your references! I will have a look ... maybe I'm able to bring together some useful hints for the wiki.

Volker