Opened 10 years ago

Last modified 5 years ago

#2418 new enhancement

t.unregister: circumvent OS limit for "maps"-parameter input

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone: 7.8.3
Component: Temporal Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Linux

Description

In t.unregister the "maps" parameter seems to be limited to ca. 5000 maps.

I have a strds with ca. 20k raster maps and tried to remove all by piping the output from t.rast.list to the "maps" parameter in t.unregister. After some testing I found out that the "maps" parameter works fine with 5000 maps, but with 6000 maps and more I got an "Argument list to long" error.

However, unregistering of all 20k maps worked fine when output from t.rast.list was stored in a file and then t.unregister`s "file" parameter used.

BTW, maybe a flag for unregistering all maps in a stds would be useful?

Change History (15)

in reply to:  description comment:1 by huhabla, 10 years ago

Replying to sbl:

In t.unregister the "maps" parameter seems to be limited to ca. 5000 maps.

I have a strds with ca. 20k raster maps and tried to remove all by piping the output from t.rast.list to the "maps" parameter in t.unregister. After some testing I found out that the "maps" parameter works fine with 5000 maps, but with 6000 maps and more I got an "Argument list to long" error.

This is not a defect, its the os specific limitation of argument lists[1].

However, unregistering of all 20k maps worked fine when output from t.rast.list was stored in a file and then t.unregister`s "file" parameter used.

The reason for the input file option is the os limit of command line arguments. So you did exactly the right thing by using it in case of 20k maps.

BTW, maybe a flag for unregistering all maps in a stds would be useful?

Sounds useful indeed, feel free to add it to t.unregister. :)

[1] https://wiki.debian.org/CommonErrorMessages/ArgumentListTooLong

comment:2 by neteler, 9 years ago

Milestone: 7.1.07.2.0

Milestone renamed

comment:3 by neteler, 8 years ago

See also #2957

comment:4 by neteler, 8 years ago

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:5 by martinl, 8 years ago

Milestone: 7.2.17.2.2

comment:6 by neteler, 7 years ago

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:7 by martinl, 7 years ago

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:8 by martinl, 7 years ago

Milestone: 7.2.4

comment:9 by martinl, 6 years ago

Still relevant?

comment:10 by veroandreo, 6 years ago

I would close this as wontfix, since the reported issue comes from a limitation of the OS as explained in comment:1. The request for a flag to unregister all maps (cool!) should be filed in a new ticket, IMO.

comment:11 by sbl, 6 years ago

Milestone: 7.2.47.8.0
Summary: t.unregister: "maps"-parameter limited to ca. 5000 mapst.unregister: circumvent OS limit for "maps"-parameter input
Type: defectenhancement

comment:12 by neteler, 5 years ago

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:13 by neteler, 5 years ago

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

comment:14 by neteler, 5 years ago

Milestone: 7.8.2

Ticket retargeted after milestone closed

comment:15 by neteler, 5 years ago

Milestone: 7.8.3
Note: See TracTickets for help on using tickets.