Reverted some optimalizations (bad placed)

This commit is contained in:
Pavol Zibrita 2011-09-20 12:35:37 +02:00
parent 6ee18303a2
commit 5e5b41913b
2 changed files with 2 additions and 4 deletions

View file

@ -282,8 +282,7 @@ public class IndexVectorMapCreator extends AbstractIndexPartCreator {
List<Way> l = new ArrayList<Way>(); List<Way> l = new ArrayList<Way>();
l.add(w); l.add(w);
boolean add = true; boolean add = true;
int iRsize = incompletedRings.size(); for (int k = 0; k < incompletedRings.size();) {
for (int k = 0; k < iRsize;) {
boolean remove = false; boolean remove = false;
List<Way> i = incompletedRings.get(k); List<Way> i = incompletedRings.get(k);
Way last = i.get(i.size() - 1); Way last = i.get(i.size() - 1);

View file

@ -126,8 +126,7 @@ public class MinskTransReader {
Map<String, Node> correlated = new LinkedHashMap<String, Node>(); Map<String, Node> correlated = new LinkedHashMap<String, Node>();
Map<Node, String> reverse = new LinkedHashMap<Node, String>(); Map<Node, String> reverse = new LinkedHashMap<Node, String>();
List<TransportStop> stopsToCheck = new ArrayList<TransportStop>(stopsMap.values()); List<TransportStop> stopsToCheck = new ArrayList<TransportStop>(stopsMap.values());
int sTCsize = stopsToCheck.size(); for(int k =0; k<stopsToCheck.size(); k++){
for(int k =0; k<sTCsize; k++){
TransportStop r = stopsToCheck.get(k); TransportStop r = stopsToCheck.get(k);
List<Node> closestObjects = busStops.getClosestObjects(r.latitude, r.longitude, 0, 1); List<Node> closestObjects = busStops.getClosestObjects(r.latitude, r.longitude, 0, 1);
// filter closest objects // filter closest objects