[GRASS-user] v.rast.stats error: "Unable to seek"
Luís Moreira de Sousa
luis.de.sousa at protonmail.ch
Wed Feb 3 08:51:02 PST 2021
Hi Stefan, thank you for the reply.
The outputs you request are below. v.rast.stats takes about 8 GB of RAM before failing, only 1/4 of what is available in the workstation. I also tried increasing the memory parameter but it never goes above 8 GB and fails all the same.
Let me know if there is something else I can check. Thank you.
> v.info PSU -c
Displaying column types/names for database connection of layer <1>:
INTEGER|cat
INTEGER|value
CHARACTER|label
> v.to.rast input=PSU output=test use=cat memory=10000
ERROR: Unable to seek: Invalid argument
> v.to.rast input=PSU output=test use=val value=1
ERROR: Unable to seek: Invalid argument
--
Luís
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, February 2, 2021 11:24 PM, Stefan Blumentrath <Stefan.Blumentrath at nina.no> wrote:
> Hi again Luis,
>
> The error comes from v.to.rast (which is used inside v.rast.stats).
>
> From the error message (which suggests that the G_fseek() function gets an invalid argument), it occurs most likely here: https://github.com/OSGeo/grass/blob/master/lib/gis/seek.c
> However, the root cause may be at a different place...
>
> Could you try:
>
> a) if assigning more memory to v.to.rast has any effect
> v.to.rast input=PSU output=test use=cat memory=10000
> b) if assigning category values to the raster causes problems
> v.to.rast input=PSU output=test use=val value=1
> in order to narrow down a bit?
>
> Please also report v.info PSU -c (to see data types of the columns)...
>
> Anyway, I guess here are people with C-knowledge required...
>
> Cheers
> Stefan
>
More information about the grass-user
mailing list