Hi Luca, fout.write(parts[0]+' '+parts[1]+' '+parts[3]) --> is part of the actual command.
I can do debug, but I would like to be cautious in completly rewriting the module without the endorsement of the authors. R 2018-03-27 12:06 GMT+02:00 Luca Delucchi <lucadel...@gmail.com>: > On 26 March 2018 at 14:50, Roberto Marzocchi > <roberto.marzoc...@gmail.com> wrote: > > from grass.pygrass.vector import VectorTopo > > pnt = VectorTopo(options['input']) > > pnt.open(mode='r') > > test=pnt.read(1) > > if test.is2D==True: > > fout.write(parts[0]+' '+parts[1]+' '+parts[3]) > > else: > > fout.write(parts[0]+' '+parts[1]+' '+parts[4]) > > > > it is better not use this way to concatenate string, but it is better > to use .format function > > > Maybe not the best code.. but it seem to works.. > > > > -- > ciao > Luca > > www.lucadelu.org >
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev