[GRASS-user] v.clean process killed itselt!?

Markus Neteler neteler at osgeo.org
Fri Jan 9 03:36:32 EST 2009


On Fri, Jan 9, 2009 at 6:27 AM, Nikos Alexandris
<nikos.alexandris at felis.uni-freiburg.de> wrote:
> Attempting to clean a very big vector map (after patching and before
> dissolving) ended without success. It's about all CORINE tiles to form
> the European-wide land cover map.
>
> The process was running for 2 days now and killed itself for reasons I
> don't understand. The machine I currently work with has 4GB of RAM and
> 8GB of swap memory, not to mention the free hard disk space.
>
> # the map is big!

I see two potential reasons:
- large file support needed (--enable-largefile, did you use it?)
- looking at the number of vertices, perhaps the process runs
  out of memory (check 'dmesg' if you are on Linux). In this case
  adding more swap space may suffice.

> GRASS 6.4.svn (corine):/geo/grassdb/europe/corine/PERMANENT/vector > ls
> -lah corine
>
> total 2.7G
> drwxr-xr-x   2 nik nik   72 2009-01-06 09:59 .
> drwxr-xr-x 715 nik nik  24K 2009-01-06 08:56 ..
> -rw-r--r--   1 nik nik 109M 2009-01-06 10:01 cidx
> -rw-r--r--   1 nik nik 1.9G 2009-01-06 10:01 coor
> -rw-r--r--   1 nik nik   58 2009-01-06 10:01 dbln
> -rw-r--r--   1 nik nik  191 2009-01-06 10:01 head
> -rw-r--r--   1 nik nik  12K 2009-01-06 08:56 hist
> -rw-r--r--   1 nik nik 647M 2009-01-06 09:59 topo
>
> # cleaning...
> GRASS 6.4.svn (corine):~ >  v.clean corine out=corine_clean
> tool=snap,break,rmdupl thresh=.01
>
> WARNING: 'vector/corine' was found in more mapsets (also found in
>         <PERMANENT>)
> WARNING: Using <corine at nik>
> --------------------------------------------------
> Tool: Threshold
> Snap vertices: 1.000000e-02
> Break: 0.000000e+00
> Remove duplicates: 0.000000e+00
> --------------------------------------------------
> WARNING: 'vector/corine' was found in more mapsets (also found in
>         <PERMANENT>)
> WARNING: Using <corine at nik>
> Copying vector lines...
> WARNING: Table <corine_clean> already exists in database
>         </geo/grassdb/europe/corine/nik/sqlite.db>
> WARNING: Unable to copy table <corine_clean>
> WARNING: Failed to copy attribute table to output map
> Rebuilding parts of topology...
> Building topology for vector map <corine_clean>...
> Registering primitives...
> 7491252 primitives registered
> 122361691 vertices registered
> Number of nodes: 5740813
> Number of primitives: 7491252
> Number of points: 0
> Number of lines: 0
> Number of boundaries: 5526642
> Number of centroids: 1964610
> Number of areas: -
> Number of isles: -
> --------------------------------------------------
> Tool: Snap line to vertex in threshold
> w
> Killed

...
> -Additionally, I was watching from time to time the process's status via
> "top".

how much RAM/SWAP was used?

Markus


More information about the grass-user mailing list