On 26 March 2018 at 14:50, Roberto Marzocchi <[email protected]> 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 [email protected] https://lists.osgeo.org/mailman/listinfo/grass-dev
