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

Pierre Roudier pierre.roudier at gmail.com
Thu Nov 25 21:14:03 EST 2010


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


More information about the grass-user mailing list