[GRASS-dev] Shape import : out of memory

Markus Neteler neteler at osgeo.org
Sat Feb 2 11:44:03 EST 2008


On Feb 2, 2008 4:38 PM, Otto Dassau <otto.dassau at gmx.de> wrote:
> Hi,
>
> I try to import a 1GB Shapefile and the geometries seem to be in a really
> bad condition. Building topology GRASS exits after 30 hours with an OUT OF
> MEMORY! error (see below).
>
> Can someone give me hint, what I could do, to import this file? Using -c or
> -f flag is no option, because I would like to use GRASS to clean the data as far
> as possible automatically and I wouldn't like to split the file into subregion,
> if I don't have to.
>
> The PC I use is a dual core 1,8MHz with 4GB RAM and 1.6GB swap. Is this still
> not enough or can I change something in GRASS (extend or change memory
> parameter) to finish the import? I used a svn version from yesterday.
>
> below you see parts of the 230MB log file:
>
>  thanks
>   Otto
>
> ############# part of logfile
>
> Projection of input dataset and current location appear to match
> Layer: schutzgebiete
> Importiere 886619 Objekte der Karte...
> WARNUNG: Area size [1.1e-05], area not imported
> WARNUNG: Area size [5.0e-06], area not imported
> WARNUNG: Area size [1.1e-05], area not imported
> WARNUNG: Area size [8.6e-05], area not imported
> WARNUNG: Area size [7.1e-05], area not imported
> WARNUNG: Area size [2.5e-05], area not imported
> WARNUNG: Area size [3.9e-05], area not imported
> WARNUNG: Area size [6.6e-05], area not imported
> [...]

Did you enable snapping? Above micro areas may indicate
gaps and slivers. Perhaps snapping helps, e.g.
snap=0.0001

Markus


More information about the grass-dev mailing list