} else {
_stopLocationTree = new STRtree(_stops.size());
for (int i = 0; i < _stops.size(); i++) {
StopEntry stop = _stops.get(i);
double x = stop.getStopLon();
double y = stop.getStopLat();
Envelope r = new Envelope(x, x, y, y);
_stopLocationTree.insert(r, stop);
}
_stopLocationTree.build();
}
System.out.println(" stops=" + _stops.size());
System.out.println(" trips= " + _trips.size());
}
if (_agencyEntriesById == null
|| _agencyEntriesById.size() < _agencies.size()) {
refreshAgencyMapping();
}
if (_tripEntriesById == null || _tripEntriesById.size() < _trips.size()) {
refreshTripMapping();
}
if (_blockEntriesById == null || _blockEntriesById.size() < _blocks.size()) {
refreshBlockMapping();
}
if (_stopEntriesById == null || _stopEntriesById.size() < _stops.size())
refreshStopMapping();
if (_routeCollectionEntriesById == null
|| _routeCollectionEntriesById.size() < _routeCollections.size())
refreshRouteCollectionMapping();
if (_routeEntriesById == null || _routeEntriesById.size() < _routes.size())
refreshRouteMapping();
int i = 0;
for (StopEntryImpl stop : _stops)
stop.setIndex(i++);
}