[udig-devel] Working with IndexedFeatureResults

Jesse Eichar jeichar at refractions.net
Fri Mar 9 08:44:15 PST 2007


IndexedFeatureResults loads all features into memory that is the  
reason that it is both fast and uses lots of memory.  I'm surprised  
at the amount of memory it takes though...  500 features doesn't seem  
like that much... Perhaps they have many attributes.  A few things  
that can help are good use of Query so that you only load the  
attribute you care about into memory.  Do you really need  
IndexedFeatureResults for the operation?  If not then don't load the  
geometry and that will lower the memory requirement.

Hope this helps:

Jesse

On 9-Mar-07, at 3:49 AM, Antonio Redondo Lora wrote:

> Hi udiggers ....
>
> Anyone working with IndexedFeatureResults?
>
> We are working with polygonal layers containing near 500 features. We
> try to minimize the access time to calculate several visitors, for
> example AverageVisitor, SumVisitor or MaxVisitor. The lowest time  
> is got
> applying IndexedFeatureResults to localize the features of this  
> layers.
> Even so, we have noticed that Eclipse executing in computer with near
> 1Gb of memory has no problems but executing fails at the time of
> aplication installing in some computers with the same amount of memory
> (Its throws Java Heap Exception!!).
>
> Obviously, the time we can use habitual FeatureResults or
> FeatureCollection but the time is longer, near double. Is there an
> alternative in Geotools to index or improve the acces to this kind of
> Feature Results?
>
> For example, running
>
> PD: Its seems that setting others values of memory at udig.ini doesn't
> works too.
>
>
>
>
>
>
>  -----------------------------------------------------
>   Este correo electrónico y, en su caso, cualquier fichero anexo
>   al mismo, contiene información de carácter confidencial
>   exclusivamente dirigida a su destinatario o destinatarios. Queda
>   prohibida su divulgación, copia o distribución a terceros sin la
>   previa autorización escrita de Dap. En el caso de haber
>   recibido este correo electrónico por error, se ruega notifíquese
>   inmediatamente esta circunstancia mediante reenvío a la dirección
>   electrónica del remitente.
>   ----------------------------------------------------------
>   The information in this e-mail and in any attachments is  
> confidential
>   and solely for the attention and use of the named addressee(s).
>   You are hereby notified that any dissemination, distribution or copy
>   of this communication is prohibited without the prior written  
> consent
>   of Dap. If you have received this communication in error,
>   please, notify the sender by reply e-mail.
>   -------------------------------------------------------------
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

Jesse Eichar
jeichar at refractions.net



-------------- next part --------------
Skipped content of type multipart/mixed


More information about the udig-devel mailing list