On Dec 21, 2007 7:05 AM, Frederik Ramm <[EMAIL PROTECTED]> wrote: > Hi, > > this is probably a question to Karl Newman: In Osmosis, when you > extract an area with complete-ways, it does this: > > // If complete ways are desired, stuff the node into a file > if (completeWays) { > allNodes.add(container); > } > // Only add the node if it lies within the box boundaries. > if (isNodeWithinArea(node)) { > ... > > I wonder if it would not be sufficient to store all nodes that are > *not* in the box bondaries in allNodes? After all, you need allNodes > to dump additional nodes later on; but the ones you have alrady added > will not get added again so you will not need them...? > > Bye > Frederik
Frederik, Yes, I considered that (just immediately passing the nodes that are inside the bounding box and saving the rest) but it would disrupt the order of the nodes (and since there's a sort task I figured the order is important to somebody), so I opted to just stream everything to a file and then retransmit the same stream (but filtered by area) later. Brett's proposal to use a data set class backed by SQLite or similar could really help this task. Karl _______________________________________________ dev mailing list dev@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev