[GRASS-user] Import .kml with v.in.ogr; GRASS-6.5.svn

Tyler Smith tyler.smith at mail.mcgill.ca
Tue May 1 17:46:40 EDT 2012


On Tue, May 1, 2012 at 5:38 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Tue, 1 May 2012, Tyler Smith wrote:
>
>> Yes, you've wrapped the output file name in single quotes. That prevents
>> all expansions, wildcards and variables. I don't think you need quotes at
>> all.
>
> Tyler,
>
>   Actually, the error references the DSN; that's the only string with a '/'
> in it: Illegal filename. Character </> not allowed.

Ah, I get it now. It's not really an illegal 'filename', in terms of
the operating system, it's an illegal mapname in terms of Grass. So
your Bash is now correct, it's your Grass that is broken. For the
output=$file part, try something like this: output=$(basename $file)

Tyler


More information about the grass-user mailing list