GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Hierarchycal data  XML
Forum Index -> FAQ - frequently asked questions
Author Message
Razorblade



Joined: 29/11/2011 14:43:32
Messages: 3
Offline

Hi everyone,
I wrote some functionality that returns parent or parents, children and descendants using the hierarchy table.

I notice that getting the full tree starting from a node ( eg. a country ) will cause memory error, this because I actually do lots of queries calling recursively my fetchChildren method.

Is there a smart way to return all descendants from a node?

Thanks
Razorblade



Joined: 29/11/2011 14:43:32
Messages: 3
Offline

Actually the memory error was caused by a script error, so I can fetch descendants from at least from a country node.
Maybe a good solution could be to apply the preordered tree traversal algorithm to the hierarchy table..

Anyway, problem solved.
 
Forum Index -> FAQ - frequently asked questions
Go to:   
Powered by JForum 2.1.5 © JForum Team