From 294c0d070ee12ce41131f9b911732d6fcc1fbae8 Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 16 Jan 2011 01:15:07 +0200 Subject: [PATCH] - Add visibility for 'villagies' in early levels (12, 13); - Fix draw priority for 'country', 'city', 'town'; - Remove visibility for 'motorway_junction', 'airport' in low scale-levels; --- data/classificator.txt | 10 +++++----- data/styles/ReadMeBefore_MERGE.txt | 10 ++++++---- data/visibility.txt | 16 ++++++++-------- docs/future refactorings.txt | 3 ++- docs/todo for release.txt | 12 ++++++------ indexer/index.hpp | 6 +++++- 6 files changed, 32 insertions(+), 25 deletions(-) diff --git a/data/classificator.txt b/data/classificator.txt index fb24dc48ee..85a3d08a85 100644 --- a/data/classificator.txt +++ b/data/classificator.txt @@ -1,10 +1,10 @@ world + place + - continent 1|3|0|0 1|3|1|1 2|3|0|0 2|3|1|1 8|3|5|68 9|3|7|68 - - country 3|3|0|0 3|3|1|1 4|3|0|0 4|3|1|1 5|3|2|2 5|3|3|3 8|3|6|69 9|3|8|69 - - city 5|3|0|0 5|3|1|1 6|3|0|4 6|3|1|5 7|3|0|4 7|3|1|5 8|3|0|4 8|3|1|5 9|3|2|4 9|3|3|5 10|3|2|4 10|3|3|5 11|3|2|4 11|3|3|5 6|3|5|144 7|3|5|145 8|3|10|73 9|3|12|73 10|3|8|155 11|3|8|155 12|3|1|10454 13|3|2|10481 14|3|0|10626 - - town 9|3|0|0 9|3|1|2 10|3|0|0 10|3|1|2 11|3|0|0 11|3|1|2 6|3|6|145 7|3|6|146 8|3|4|74 9|3|6|74 10|3|6|156 11|3|6|156 12|3|2|10455 13|3|3|10482 14|3|1|10627 - - county 6|3|4|143 7|3|4|144 8|3|9|72 9|3|11|72 10|3|7|154 11|3|7|154 12|3|1|10453 - + continent 1|3|0|0 1|3|1|1 2|3|0|0 2|3|1|1 - + country 3|3|0|0 3|3|1|1 4|3|0|0 4|3|1|1 5|3|2|10 5|3|3|10 - + city 5|3|0|0 5|3|1|1 6|3|0|4 6|3|1|5 7|3|0|4 7|3|1|5 8|3|0|4 8|3|1|5 9|3|2|4 9|3|3|5 10|3|2|4 10|3|3|5 11|3|2|4 11|3|3|5 12|3|1|10454 13|3|2|10481 14|3|0|10626 - + town 6|3|6|3 7|3|6|3 8|3|4|3 9|3|6|3 10|3|6|3 11|3|6|3 12|3|2|10453 13|3|3|10480 14|3|1|10625 - + county 6|3|4|2 7|3|4|2 8|3|9|2 9|3|11|2 10|3|7|2 11|3|7|2 12|3|1|10452 - island 8|3|4|67 9|3|6|67 10|3|6|153 11|3|6|153 12|3|0|10452 13|3|0|10479 14|3|3|10631 15|3|5|10896 16|3|7|11556 17|3|9|11792 - state 8|3|7|70 9|3|9|70 - region 8|3|8|71 9|3|10|71 - diff --git a/data/styles/ReadMeBefore_MERGE.txt b/data/styles/ReadMeBefore_MERGE.txt index 0dbd709b16..85e400f182 100644 --- a/data/styles/ReadMeBefore_MERGE.txt +++ b/data/styles/ReadMeBefore_MERGE.txt @@ -1,17 +1,19 @@ osm-map-features-z12.xml . ( ). + git diff data/ classificator.txt : - : access, cycleway, junction + - place: country, city, town, county, continent - 14- (14|5|x) ( 12 ): unclassified, residential, living_street, tertiary, tertiary_link - - visibility.txt, - ( git diff data/visibility.txt): + - visibility.txt, : - ; - : - - boundary:administrative:2 - - amenity:fuel, amenity:restourant; + - boundary: administrative:2 + - amenity: fuel, amenity:restaurant; + - place: ... \ No newline at end of file diff --git a/data/visibility.txt b/data/visibility.txt index 24cb4fa237..ec6f76ade7 100644 --- a/data/visibility.txt +++ b/data/visibility.txt @@ -18,7 +18,7 @@ world 000000000000000000 + {} aeroway 000000000000000000 + aerodrome 000000000000111111 - - airport 000000111111111000 - + airport 000000000001110000 - apron 000000000011111111 - gate 000000000000000001 - helipad 000000000000000001 - @@ -290,7 +290,7 @@ world 000000000000000000 + oneway 000000000000000011 - tunnel 000000111111111111 - {} - motorway_junction 000000011111111111 - + motorway_junction 000000000000111111 - motorway_link 000000011111111111 + area 000000000000111111 - bridge 000000000000000011 - @@ -851,18 +851,18 @@ world 000000000000000000 + place 000000000000000000 + city 000001111111111000 - continent 011000000000000000 - - country 000111111100000000 - + country 000111100000000000 - county 000000111111100000 - - farm 000000000000001111 - - hamlet 000000000000001111 - + farm 000000000000011111 - + hamlet 000000000000111111 - island 000000001111111111 - islet 000000000000011111 - - locality 000000000000001111 - + locality 000000000000111111 - region 000000001100000000 - state 000000001100000000 - - suburb 000000000000011111 - + suburb 000000000000111111 - town 000000111111111000 - - village 000000000000011111 - + village 000000000000111111 - {} power 000000000000000000 + generator 000000000000001111 + diff --git a/docs/future refactorings.txt b/docs/future refactorings.txt index 6e36f119a4..0324856fe4 100644 --- a/docs/future refactorings.txt +++ b/docs/future refactorings.txt @@ -1,2 +1,3 @@ Move 'mmap_file_reader' to 'coding' folder. -Make common library for 'indexer_tool' and 'indexer_tests'. Move there stuff from 'indexer'. \ No newline at end of file +Make common library for 'indexer_tool' and 'indexer_tests'. Move there stuff from 'indexer'. +Unit tests! \ No newline at end of file diff --git a/docs/todo for release.txt b/docs/todo for release.txt index 47e3c0fc90..ca9791882b 100644 --- a/docs/todo for release.txt +++ b/docs/todo for release.txt @@ -1,14 +1,15 @@ Версия 1.0: -1. Выбрать красивее иконки и проверить лицензию. +1. Выбрать красивее иконки и проверить лицензию на все (шрифты, иконки). 2. Инфа о нас (фото). -3. Объеденить мелкие квадраты данных. +3. Разделение фич на страны по критерию попадания в многоугольник страны (0 или 1-й этап). 4. На десктопах выбирать динамический размер текстуры. X 5. Дорисовываем только то что нужно, а не весь экран. 6. Выбор масштаба по прямоугольнику. -7. Лицензии на шрифты и иконки. 8. Дистрибутивы. X 9. Карта мира (обсудить, генерить, ...). -10. Структура фичера (номера домов, заголовок, оптимизации). +10. Структура фичера: + - стрипификатор + - базовая точка mwm для сериализации первых точек геометрии 11. Символы в kd-tree и взаимодействие их с подписями. 12. Рисовать на экране дополнительную инфу. 13. Настройки (GetSettings) засунуть в Platform. @@ -17,12 +18,11 @@ X 14. Мигание. 16. Подпилить константы кэша FileReader, VarRecordReader. 17. Открыты только нужные mwm. 18. Версия settings. -19. Strips треугольников. 20. Большой размер индекса. 21. Допилить правила отрисовки: - убрать синие острова - правила для коастлайнов; - - на 15-м масштабе пропадают имена крупных улиц (на 14 и 16 есть); - перед выпуском перегенерить стили отрисовки; + - highway : primary(_link), secondary(_link) - имена улиц рисуем в 13-м масштабе (скопировать стили из 14-го) Версия 1.01: diff --git a/indexer/index.hpp b/indexer/index.hpp index 8349b6dc8e..735b08403c 100644 --- a/indexer/index.hpp +++ b/indexer/index.hpp @@ -6,9 +6,12 @@ #include "scales.hpp" #include "../../storage/defines.hpp" + #include "../geometry/rect2d.hpp" + #include "../coding/file_container.hpp" -#include "../coding/varint.hpp" +//#include "../coding/varint.hpp" + #include "../base/base.hpp" #include "../base/macros.hpp" #include "../base/stl_add.hpp" @@ -19,6 +22,7 @@ #include "../std/utility.hpp" #include "../std/bind.hpp" + template class IndexForEachAdapter : public BaseT { public: