Remove admin_level filter. Should work fine for new maps

This commit is contained in:
Victor Shcherb 2012-06-25 01:57:15 +02:00
parent d1e284dc46
commit c1010838ca
2 changed files with 11 additions and 11 deletions

View file

@ -1048,13 +1048,13 @@ public class BinaryMapIndexReader {
break; break;
} }
} }
if(req.cacheCoordinates.size() > 500 && req.cacheTypes.size() > 0) { // if(req.cacheCoordinates.size() > 500 && req.cacheTypes.size() > 0) {
TagValuePair p = root.decodeType(req.cacheTypes.get(0)); // TagValuePair p = root.decodeType(req.cacheTypes.get(0));
if("admin_level".equals(p.tag)) { // if("admin_level".equals(p.tag)) {
log.info("TODO Object is ignored due to performance issues " + p.tag + " "+p.value); // log.info("TODO Object is ignored due to performance issues " + p.tag + " "+p.value);
return null; // return null;
} // }
} // }
BinaryMapDataObject dataObject = new BinaryMapDataObject(); BinaryMapDataObject dataObject = new BinaryMapDataObject();
dataObject.area = area; dataObject.area = area;
dataObject.coordinates = req.cacheCoordinates.toArray(); dataObject.coordinates = req.cacheCoordinates.toArray();

View file

@ -651,10 +651,10 @@ MapDataObject* readMapDataObject(CodedInputStream* input, MapTreeBounds* tree, S
} }
} }
} }
if(req->cacheCoordinates.size() > 300 && types.size() > 0 && types[0].first == "admin_level") { // if(req->cacheCoordinates.size() > 300 && types.size() > 0 && types[0].first == "admin_level") {
osmand_log_print(LOG_INFO, "TODO Object is ignored %llu %s %s", id, types[0].first.c_str(), types[0].second.c_str()); // osmand_log_print(LOG_INFO, "TODO Object is ignored %llu %s %s", id, types[0].first.c_str(), types[0].second.c_str());
return NULL; // return NULL;
} // }
req->numberOfAcceptedObjects++; req->numberOfAcceptedObjects++;