[GRASS-dev] Shape import : out of memory

Otto Dassau otto.dassau at gmx.de
Sun Feb 3 05:46:07 EST 2008


On Sat, 2 Feb 2008 17:44:03 +0100
"Markus Neteler" <neteler at osgeo.org> wrote:

> 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

playing around with the snapping parameter was the solution to import the data.
I guess you were right about gaps and slivers.

thanks a lot
 Otto

> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list