Erica Fischer
4ef430b913
Add an option for the Visvalingam simplification algorithm ( #16 )
...
* First attempt at porting Paul Mach's Visvalingam implementation
* Make indent
* Mostly working
* Approximate equivalence from Douglas-Peucker to Visvalingam levels
* Don't simplify away tile boundary crossing points
* Add a command-line option and test for Visvalingam simplification
* Update changelog
* Cleanup in response to review feedback
* Include <stdio.h> to fix compiler warnings
2022-09-30 12:00:07 -07:00
Eric Fischer
42ee195bc3
Add an option to keep intersection nodes from being simplified away
2019-05-13 17:39:07 -07:00
Eric Fischer
5dfbc4a281
Add --clip-bounding-box option to clip input geometry
2018-10-22 16:49:33 -07:00
Eric Fischer
59dd095607
Make file positions and lengths thread-safe
2018-05-07 14:42:49 -07:00
Eric Fischer
ba62ab8596
More structure initializers
2017-11-07 15:20:17 -08:00
Eric Fischer
d89d46da65
Remove unused parameters
2017-11-07 10:55:34 -08:00
Eric Fischer
c79f19e3ca
Merge branch 'master' into plugins
2017-08-08 11:08:10 -07:00
Eric Fischer
65c095cc2b
Clean up #includes and add fields for counting attributes
2017-07-14 16:56:23 -07:00
Eric Fischer
7d47226444
Merge branch 'master' into plugins
2017-03-28 16:42:22 -07:00
Eric Fischer
fa56adc530
Clean up utility functions that are also used in other projects
2017-03-16 15:06:58 -07:00
Eric Fischer
9cbbc4c68d
Merge branch 'master' into plugins-merge
2017-03-02 10:45:25 -08:00
Eric Fischer
62e1018c87
Fix area of placeholders for degenerate multipolygons
2017-02-06 14:14:34 -08:00
Eric Fischer
5194a39c16
Factor out clipping to tile boundaries; test random attributes & layers
2016-12-09 10:47:03 -08:00
Eric Fischer
569825324a
Factor out feature deserialization
2016-12-08 17:11:37 -08:00
Eric Fischer
0db8d9ed8b
Option to snap low zooms to a stairstep grid
2016-11-28 15:45:38 -08:00
Eric Fischer
9ea29601ab
Don't let line simplification reduce a polygon ring to below 3 points
2016-11-14 11:22:21 -08:00
Eric Fischer
8296190487
Remove leftovers from early versions of --detect-shared-borders
2016-10-26 15:47:26 -07:00
Eric Fischer
9160e6add5
Guard against uninitialized variables
2016-10-14 12:19:56 -07:00
Eric Fischer
f7daa05515
Add a critical point where the set of rings using a polygon edge changes
2016-10-05 17:16:18 -07:00
Eric Fischer
9908db5e56
Add an option to vary the level of line and polygon simplification
2016-07-12 16:51:56 -07:00
Eric Fischer
331deca4b4
Use bitfields to further reduce data structure size
2016-05-13 15:45:33 -07:00
Eric Fischer
c0edefa721
Pack structures tighter to use a little less memory
2016-05-11 14:23:39 -07:00
Eric Fischer
5cc6d97d9f
Don't let polygons with nonzero area disappear during cleaning
...
If they collapse, turn them into placeholder squares with the
appropriate area so that there aren't visible coverage gaps.
2016-05-05 13:42:32 -07:00
Eric Fischer
f1b3f6d231
Fix warnings about shadowed variables
2016-05-03 15:48:42 -07:00
Eric Fischer
ee97e6c307
Whittle down tile.hpp to the things that actually related to tile.cpp
2016-04-27 15:09:06 -07:00
Eric Fischer
b12413eddb
Rename everything from .cc to .cpp to match other projects
2016-04-27 12:22:47 -07:00