FIX important issue for MapCreator, maps should be regenerated for the last month. Restriction relation is broken

This commit is contained in:
Victor Shcherb 2011-07-07 00:41:35 +02:00
parent 818f8527f8
commit edb03cf628

View file

@ -696,7 +696,7 @@ public class IndexVectorMapCreator extends AbstractIndexPartCreator {
}
public long convertGeneratedIdToObfWrite(long id){
return (id >> (MAP_LEVELS_POWER + 1)) + (id & 1);
return (id >> (MAP_LEVELS_POWER)) + (id & 1);
}
public void writeBinaryMapTree(rtree.Node parent, RTree r, BinaryMapIndexWriter writer, PreparedStatement selectData) throws IOException, RTreeException, SQLException {