errors with r.out.kml Re: [GRASS-user] Raster kml export script?
Vishal Mehta
vishalm1975 at gmail.com
Sun Jan 6 20:14:00 EST 2008
Hello,
I've fixed the problem - it was that the version of r.info that grass
6.0.1uses does not have the m flag option used in David Finlayson's
r.out.kml script. Since that was only being used for the Title field in the
output kml file, I just commented it out and then it worked file.
Incidentally, the r.info -m flag only seems to be in the GRASS 6.3 version,
therefore anyone running r.out.kml in a version less than 6.3 may have the
same problem I did.
Now that r.out.kml file works on a single raster map, I am thinking of how I
can automate its use for several raster maps - any ideas?
thanks,
Vishal
On Jan 6, 2008 8:06 PM, John C. Tull <john.tull at wildnevada.org> wrote:
> Just a guess, but that's a really old GRASS so the problem may stem from
> GRASS being outdated.
> John
>
>
> On Jan 6, 2008, at 11:21 AM, Vishal Mehta wrote:
>
> Hello all,
>
> I just tried using r.out.kml with
>
> *r.outkml input=Tdr1980.12 output=Tdr.kml -l *
>
> and got the following errors:
>
> r.out.kml: line 96: [: -eq: unary operator expected
> > Sorry, <m> is not a valid flag
> >
> > ERROR: Required parameter <map> not set:
> > (Name of existing raster map).
> >
> > Description:
> > Outputs basic information about a user-specified raster map layer.
> >
> > Usage:
> > r.info [-rst] map=name
> >
> > Flags:
> > -r Print range only
> > -s Print resolution (NS-res, EW-res) only
> > -t Print raster map type only
> >
> > Parameters:
> > map Name of existing raster map
> > r.out.kml: line 134: [: -eq: unary operator expected
> > mogrify: unable to open file `.png': No such file or directory.
> > mogrify: unable to open image `_legend.png': No such file or directory.
>
>
> Could anyone tell me how to fix it? I did look at David's code but
> could'nt troubleshoot the problem..
>
> I am using Grass 6.0.1 on Ubuntu 6.06 LTS..
>
> Thanks very much!
>
> Vishal
> www.people.cornell.edu/pages/vkm2
>
>
> On Jan 4, 2008 8:23 PM, David Finlayson <david.p.finlayson at gmail.com>
> wrote:
> > Here is a link to my web site with the latest version:
> >
> > http://david.p.finlayson.googlepages.com/grasstogoogleearth
> >
> > I have something that works for me, but I was forced to use image
> > magick to clip the nodata collar off of the exported png file. If I
> > can figure out how to get a one-to-one correspondence between raster
> > cells and image pixels, I fix it again.
> >
> > David
> >
> > _______________________________________________
> > grass-user mailing list
> > grass-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> >
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080106/a7f57b67/attachment.html
More information about the grass-user
mailing list