[GRASS-user] r.out.gdal problem of grass6.3 in windows xp
    Glynn Clements 
    glynn at gclements.plus.com
       
    Tue Jun 16 01:16:55 EDT 2009
    
    
  
maven apache wrote:
> I have consider the space problem,and I try to avoid it:
> 
>   String filePath=file.getAbsolutePath();  // F:\anzhuang\Tomcat 5.5\....tif
>   String creatLocation=System.currentTimeMillis()+"location";
>   filePath=filePath.replace("\\", "\\\\"); //no matter I add this line or not the filepath is splitted ever
>   String cmd="g.proj -c georef="+filePath+" location="+creatLocation+" datumtrans=0";
You aren't quoting the path. Try:
String cmd="g.proj -c \"georef="+filePath+"\" location="+creatLocation+" datumtrans=0";
-- 
Glynn Clements <glynn at gclements.plus.com>
    
    
More information about the grass-user
mailing list