[postgis-devel] simplify()

strk at refractions.net strk at refractions.net
Mon Nov 22 10:27:17 PST 2004


On Mon, Nov 22, 2004 at 10:07:07AM -0800, Kevin Neufeld wrote:
> Sandro, am I reading this right? simplify() is trying to allocate only 
> 5.4 MB of space? It does seem strange that it's trying to allocate less 
> than the entire size of this geometry (9MB), but this particular 
> geometry only has 42000 vertices. Is simplify() trying to allocate a 
> special portion of memory?

I've added line number in the OutOfMemory message.
Please install current 0.9 CVS branch and run the query again.

--strk;
> 
> strk at refractions.net wrote:
> 
> >On Mon, Nov 22, 2004 at 09:23:01AM -0800, Kevin Neufeld wrote:
> >(html body dropped)
> >
> >Kevin, it seems like you're really out of memory.
> >
> >  cwb_prod_11_10=# select mem_size(the_geom) from valid_group_codes
> >  where group_code = 'LARL';
> >   mem_size
> >  ----------
> >    8956628
> >
> >The simplify function was allocating even less space then the input...
> >I don't think it's a bug.
> >--strk;
> >_______________________________________________
> >postgis-devel mailing list
> >postgis-devel at postgis.refractions.net
> >http://postgis.refractions.net/mailman/listinfo/postgis-devel
> > 
> >
> 
> -- 
> Kevin Neufeld,
> Refractions Research Inc.,
> kneufeld at refractions.net
> Phone: (250) 383-3022 
> Fax:   (250) 383-2140 
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list