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

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


On Tue, May 1, 2012 at 5:50 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Tue, 1 May 2012, Tyler Smith wrote:
>
>> 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,
>
>   I saw 'basename ' in the original thread but have not before seen it.
> Thought it was a Windows reference. Now I know. I also need to strip off the
> .kml extension since A) it's not part of a legal SQL table name and 2) it's
> not needed.
>

output=$(basename $file .kml)

Ty


More information about the grass-user mailing list