[GRASS-user] How work the "-c" option of grass text
Andrea Peri
aperi2007 at gmail.com
Mon Jun 22 00:16:15 PDT 2015
Hi Vaclas,
I resolved.
The issue was in the previos creation of the location folder.
Removing it all go correctly.
Many thx for help.
A.
2015-06-22 9:13 GMT+02:00 Andrea Peri <aperi2007 at gmail.com>:
> Hi Vaclav,
> thx for your response.
>
> I tested your solution but the grass still give me an error:
>
> I try this:
>
> ...
> mkdir /home/archivio/dati/raster/landsat/applicazione/temp/grassdata
> mkdir /home/archivio/dati/raster/landsat/applicazione/temp/grassdata/toscana_location
> grass70 -text -c
> /home/archivio/dati/raster/landsat/applicazione/temp/LC81930292015164LGN00/LC81930292015164LGN00_B1.TIF
> -e /home/archivio/dati/raster/landsat/applicazione/temp/grassdata/toscana_location
> ...
>
> and the grass return this error:
>
> Creating new GRASS GIS location/mapset...
> access: No such file or directory
> ERROR: LOCATION
> </home/archivio/dati/raster/landsat/applicazione/temp/grassdata/<UNKNOWN>>
> not available
> ERROR: Path '/home/archivio/dati/raster/landsat/applicazione/temp/grassdata/toscana_location/PERMANENT'
> doesn't exist
> Exiting...
>
> Many thx,
>
> A.
>
>
> 2015-06-22 1:32 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
>> Hi Andrea,
>>
>> quick but untested answer:
>>
>> On Sun, Jun 21, 2015 at 6:44 PM, Andrea Peri <aperi2007 at gmail.com> wrote:
>>>
>>> grass70 -text -c /path-raster/immagine.tif /path-grassdata/test_location
>>> -e
>>
>>
>> grass70 -e -c /path-raster/immagine.tif /path-grassdata/test_location
>>
>> According to --help, the Location path must be the last parameter.
>>
>> Although now I see that --help might not be precise about path to Location
>> versus path to Mapset in case of -c. Some bash scripts to test this stuff
>> would be needed as well.
>>
>> Since you are using this API, keep an eye on what is happening in trunk now:
>>
>> http://grass.osgeo.org/grass71/manuals/grass7.html#exec-interface-example
>> https://lists.osgeo.org/pipermail/grass-user/2015-June/072511.html
>> https://trac.osgeo.org/grass/ticket/2579
>
>
>
> --
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the grass-user
mailing list