[GRASS-user] Memory problems with v.in.ogr

Achim Kisseler ak7 at jupiter.uni-freiburg.de
Fri Nov 26 07:11:17 EST 2010


Hi,

My guess:
7GB is a lot.
334611 primitives are many, but not that much,
but:
you got 18 millions vertices! (18459167)
That seems a lot.
Depending on how tangled your lines are, a potential mass of features 
can be generated.

Just a guess,
best,
Achim

Am 26.11.2010 03:14, schrieb Pierre Roudier:
> Dear list,
>
> I am trying to load a pretty big shapefile on GRASS (6Mb +, 211621
> features)  using v.in.ogr, but each attempt fails at the 'break
> boundaries'' stage (at 98%!):
>
> GRASS 7.0.svn (NZTM2000):~>  v.in.ogr
> dsn=~/Documents/DATA/LCDB2/ni_nzmg.shp out=ni_lcdb2 --o
> Projection of input dataset and current location appear to match
> Layer: ni_nzmg
> Counting polygons for 211621 features...
> Importing map 211621 features...
>   100%
> -----------------------------------------------------
> Building topology for vector map<ni_lcdb2_tmp at ni>...
> Registering primitives...
> 334611 primitives registered
> 18459167 vertices registered
> Number of nodes: 211681
> Number of primitives: 334611
> Number of points: 0
> Number of lines: 0
> Number of boundaries: 334611
> Number of centroids: 0
> Number of areas: -
> Number of isles: -
> -----------------------------------------------------
> WARNING: Cleaning polygons, result is not guaranteed!
> -----------------------------------------------------
> Break polygons:
>   100%
>   100%
> -----------------------------------------------------
> Remove duplicates:
>   100%
> -----------------------------------------------------
> Break boundaries:
> ERROR: G_calloc: unable to allocate 50 * 8 bytes of memory at
>         allocation.c:82
>
> The shp loads without any problems on QGIS.
>
> Here is my config:
>
> GRASS 7.0.svn (NZTM2000):~>  g.region -p
> projection: 99 (New Zealand Map Grid)
> zone:       0
> datum:      nzgd49
> ellipsoid:  international
> north:      6115136.31665518
> south:      6114206.6264583
> west:       2703766.53250003
> east:       2705045.64941879
> nsres:      1.99933376
> ewres:      1.99862019
> rows:       465
> cols:       640
> cells:      297600
>
> GRASS 7.0.svn (NZTM2000):~>  g.version
> GRASS 7.0.svn44411 (2010)
>
> OS: Opensuse 11.3, with 7Gb RAM.
>
> Any pointers appreciated,
>
> Pierre
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list