[GRASS-dev] ERROR grass addon v/r.surf.nnbathy using a lat/lon location

Roberto Marzocchi roberto.marzocchi at gmail.com
Tue Mar 27 05:48:50 PDT 2018


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 <lucadeluge a gmail.com>:

> On 26 March 2018 at 14:50, Roberto Marzocchi
> <roberto.marzocchi a 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
>
-------------- parte successiva --------------
Un allegato HTML รจ stato rimosso...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180327/e76a0149/attachment.html>


More information about the grass-dev mailing list