[GRASS-user] Re: Import vector: illegal filename

Glynn Clements glynn at gclements.plus.com
Mon Aug 1 17:41:53 EDT 2011


deagon wrote:

> v.in.ogr -o dsn=C:/GIS/NL/NL1980s.shp output=NL1980s snap=-1 min_area=0.0001
> Illegal filename. Character  not allowed.
> 
> Over-riding projection check
> Illegal filename. Character  not allowed.
> Illegal filename. Character  not allowed.
> Illegal filename. Character  not allowed.

This error comes from G_legal_filename():

	if (*s == '/' || *s == '"' || *s == '\'' || *s <= ' ' ||
	    *s == '@' || *s == ',' || *s == '=' || *s == '*' || *s > 0176) {
	    G_warning(_("Illegal filename <%s>. Character <%c> not allowed.\n"), name, *s);
	    return -1;
	}

It appears that an invalid (and non-printable) character has crept in
to the value of the output= option.

Unfortunately, I don't have any ideas as to how to track this down.

How is the command being entered? In QGIS? the wxGUI? bash? cmd.exe? 
If it's QGIS, I can only suggest taking it up with the QGIS
developers. If you can reproduce the error within GRASS itself, please
provide details.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list