Remove admin_level filter. Should work fine for new maps
This commit is contained in:
parent
d1e284dc46
commit
c1010838ca
2 changed files with 11 additions and 11 deletions
|
@ -1048,13 +1048,13 @@ public class BinaryMapIndexReader {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(req.cacheCoordinates.size() > 500 && req.cacheTypes.size() > 0) {
|
||||
TagValuePair p = root.decodeType(req.cacheTypes.get(0));
|
||||
if("admin_level".equals(p.tag)) {
|
||||
log.info("TODO Object is ignored due to performance issues " + p.tag + " "+p.value);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
// if(req.cacheCoordinates.size() > 500 && req.cacheTypes.size() > 0) {
|
||||
// TagValuePair p = root.decodeType(req.cacheTypes.get(0));
|
||||
// if("admin_level".equals(p.tag)) {
|
||||
// log.info("TODO Object is ignored due to performance issues " + p.tag + " "+p.value);
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
BinaryMapDataObject dataObject = new BinaryMapDataObject();
|
||||
dataObject.area = area;
|
||||
dataObject.coordinates = req.cacheCoordinates.toArray();
|
||||
|
|
|
@ -651,10 +651,10 @@ MapDataObject* readMapDataObject(CodedInputStream* input, MapTreeBounds* tree, S
|
|||
}
|
||||
}
|
||||
}
|
||||
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());
|
||||
return NULL;
|
||||
}
|
||||
// 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());
|
||||
// return NULL;
|
||||
// }
|
||||
|
||||
|
||||
req->numberOfAcceptedObjects++;
|
||||
|
|
Loading…
Reference in a new issue