Commit graph

2627 commits

Author SHA1 Message Date
Alex Zolotarev
ebcd7f9736 Added world map generation support to country polygonizer
Note that features will not be duplicated in world and countries files any more
2015-09-22 15:11:47 -07:00
Alex Zolotarev
5a53cee689 [indexer_tool] Removed -world_only flag 2015-09-22 15:11:47 -07:00
vng
54cd2ee602 Correct process and call of drawCircle. 2015-09-22 15:11:42 -07:00
vng
776c5b3fa7 Take the best start edge for triangles encoding.
Experimental code for encoding quality test.
2015-09-22 15:11:41 -07:00
vng
b47f03877f Better reserve logic in triangles decoding. 2015-09-22 15:11:40 -07:00
vng
197bb2c3ad Fix compilation on msvc. Fix runtume errors on Windows. 2015-09-22 15:11:40 -07:00
rachytski
7a32dcf5c8 code for CircleRule rendering. 2015-09-22 15:11:39 -07:00
vng
3f869a3c19 Feature geometry size optimization : make triangles Encoding\Decoding as binary tree. 2015-09-22 15:11:38 -07:00
vng
f0b2633d2f Fix PredictPointInTriangle. Add more comments. 2015-09-22 15:11:36 -07:00
vng
5b533632a6 Add parallelogramm prediction for strips serialization. 2015-09-22 15:11:35 -07:00
rachytski
a0d22c5a8f added support for text colors. refactored text_renderer. 2015-09-22 15:11:31 -07:00
Yury Melnichek
304827bfdc Unload mwm files that are not used. Partially fixes #64. 2015-09-22 15:11:24 -07:00
Yury Melnichek
bc5062fb4d Comment out some logging. 2015-09-22 15:11:23 -07:00
Alex Zolotarev
8b5990c237 Fixed GCC compilation 2015-09-22 15:11:23 -07:00
vng
f3aecff37b Fix feature serialize test. 2015-09-22 15:11:22 -07:00
vng
8371e69d15 Build-in new geometry coding API in feature geometry serilization.
Only for pathes for a while ...
2015-09-22 15:11:21 -07:00
vng
6570967fa8 Remove unused function. 2015-09-22 15:11:20 -07:00
vng
0c8521ffc3 Factor Int64ToPoint, PointToInt64 and their helper functions into a separate header, 2015-09-22 15:11:19 -07:00
vng
c2ca1c66be Better statistics calculation (include geometry in header). 2015-09-22 15:11:18 -07:00
Yury Melnichek
9e0e68b981 Remove old predictors, which were commented out. 2015-09-22 15:11:17 -07:00
Yury Melnichek
e3ea911267 Fix crash when trying to cover rects beyond world bounds. 2015-09-22 15:11:17 -07:00
Yury Melnichek
58dd7df724 Better predictors for polylines. 2015-09-22 15:11:16 -07:00
Yury Melnichek
6d51b05322 Move EncodeDelta(), DecodeDelta() to header file and test them. 2015-09-22 15:11:16 -07:00
Yury Melnichek
f3da0c3ca1 Implement EncodePolyline() and DecodePolyline() + unit tests. 2015-09-22 15:11:15 -07:00
Yury Melnichek
ec88c9bc0e Add maxPoint to the geometry coding routines. 2015-09-22 15:11:12 -07:00
Yury Melnichek
908b4ab8d7 Add placeholders for geometry coding functions. 2015-09-22 15:11:11 -07:00
Alex Zolotarev
7bf7b8ac91 Moved tesselator from indexer_tool to geometry 2015-09-22 15:11:08 -07:00
Alex Zolotarev
dc470b810c Fix contries polygon simplification (last point should be equal with first for simplification). 2015-09-22 15:11:03 -07:00
Alex Zolotarev
e6cf0a8589 - Polygons now are using doubles instead of uints
- Added optimization: if feature is included only in one country, it's automatically added to this country
2015-09-22 15:11:03 -07:00
Alex Zolotarev
1e2efd7a07 Fix bug in feature -> country polygonizer (equivalent coordinates for search rect and polygon coordinates). 2015-09-22 15:11:02 -07:00
vng
8751a518aa Fix bug in feature -> country polygonizer processing. 2015-09-22 15:11:02 -07:00
vng
cdc8e9d229 Build in m4::Tree to feature polygonizer by countries. 2015-09-22 15:11:00 -07:00
vng
9d5595ca7e Rearrange strip's points for better serialization size. 2015-09-22 15:10:53 -07:00
vng
ab660b4f68 Region with good calculation-overflow processing.
Better Region::Contains code.
2015-09-22 15:10:52 -07:00
vng
fbd849a451 m2::Region::Contains optimizations:
- remove float divisions
- calc cross product once
No unsigned regions!
2015-09-22 15:10:50 -07:00
Yury Melnichek
66522077ac Use SimplifyNearOptimal(20) to simplify features. 2015-09-22 15:10:48 -07:00
Alex Zolotarev
0998a6bc3a Moved defines.hpp to the project root 2015-09-22 15:10:44 -07:00
Alex Zolotarev
fc917c3fe9 Changed "world.mwm" to "World.mwm" and moved to defines.hpp 2015-09-22 15:10:43 -07:00
Alex Zolotarev
654fe2e087 Changed polygon groups delimeter to '|' from ','
because country names can contain ,
2015-09-22 15:10:43 -07:00
Alex Zolotarev
dd86845706 Minimum simplified country polygon size was limited to 10 points 2015-09-22 15:10:42 -07:00
vng
ffe9341ceb Use correct SimplifyDP instead of SimplifyNearOptimal. 2015-09-22 15:10:41 -07:00
Alex Zolotarev
24e8703645 Update generator scans all files which can be updated in data directory 2015-09-22 15:10:38 -07:00
Alex Zolotarev
c10441aa9b Correct merge for SimplifyPoints 2015-09-22 15:10:37 -07:00
Alex Zolotarev
73ce9b6b17 Fixed warning 2015-09-22 15:10:37 -07:00
Alex Zolotarev
99e1e6b7a8 [indexer_tool] Added --simplify_countries_level
Now country polygons which are enabled by --split_by_polygons parameter 
can be optionally simplified by giving simplificator level values
2015-09-22 15:10:36 -07:00
Alex Zolotarev
770c00d653 Moved feature::SimplifyPoints to header and made it more generic 2015-09-22 15:10:36 -07:00
Alex Zolotarev
3aa1625c45 Warning fixes 2015-09-22 15:10:35 -07:00
vng
6cc2831c2d New tests and more debug checks in geometry simplification (stripification). 2015-09-22 15:10:34 -07:00
vng
6cc76d9993 Make saved middle point in mwm for optimal storing of geometry's first points.
!Note! Changes (HEADER_FILE_TAG) in feature_sorter.cpp can reproduce ugly bug.
2015-09-22 15:10:32 -07:00
vng
0b53b59b34 Fix GCC warning. 2015-09-22 15:10:31 -07:00