[GRASSLIST:8400] v.in.ogr error: G_realloc

Craig Aumann caumann at ualberta.ca
Fri Sep 23 16:00:21 EDT 2005


I was reading a large shape file:

-rw-rw-r--    1 caumann  caumann  111771178 Apr 17 10:44 neforest.dbf
-rw-rw-r--    1 caumann  caumann   2355756 Apr  7  2003 neforest.sbn
-rw-rw-r--    1 caumann  caumann    119812 Apr  7  2003 neforest.sbx
-rw-rw-r--    1 caumann  caumann  746124196 Dec 10  2002 neforest.shp
-rw-rw-r--    1 caumann  caumann   1973924 Dec 10  2002 neforest.shx

and got the error:

ERROR: G_realloc: out of memory

Can v.in.ogr not handle this size of file?

Call and output are below

Cheers!
Craig
-------------------------------------------------------

v.in.ogr -o dsn="$SHPDIR" \
        output="$SHPFILE" layer="$SHPFILE" snap=1
Over-riding projection check.
Proceeding with import...
Layer: neforest
WARNING: 'user' in database definition is not supported, use db.login
-----------------------------------------------------
Building topology ...
259136 primitives registered
Building areas:  100%
204742 areas built
194638 isles built
Attaching islands:  100%
Attaching centroids:  100%
Topology was built.
Number of nodes     :   226019
Number of primitives:   259136
Number of points    :   0
Number of lines     :   0
Number of boundaries:   259136
Number of centroids :   0
Number of areas     :   204742
Number of isles     :   194638
Number of incorrect boundaries   :   63856
Number of areas without centroid :   204742
-----------------------------------------------------
WARNING: Cleaning polygons, result is not guaranteed!
Building topology ...
Topology was built.
Number of nodes     :   226019
Number of primitives:   259136
Number of points    :   0
Number of lines     :   0
Number of boundaries:   259136
Number of centroids :   0
Number of areas     :   -
Number of isles     :   -
-----------------------------------------------------
Snap boundaries (threshold = 1.000e+00):
Registering points ... 20377235ERROR: G_realloc: out of memory




More information about the grass-user mailing list