Commit Graph

85 Commits

Author SHA1 Message Date
Eric Fischer
f4818ffb07 Move attribute include/exclude logic into serialization 2017-08-24 17:10:15 -07:00
Eric Fischer
34b1b215f4 Move tilestats management out of parsing and into serialization 2017-08-24 16:30:01 -07:00
Eric Fischer
ed8fbd0236 Split more serialization details out from being parsing parameters 2017-08-24 15:57:33 -07:00
Eric Fischer
b114e22d39 Factor out geometry fixups 2017-08-23 12:48:45 -07:00
Eric Fischer
6caf20b9c8 Put the pieces back together 2017-08-23 11:43:48 -07:00
Eric Fischer
6cea2d5db6 Progress on factoring out serialization state into a single object 2017-08-22 18:10:52 -07:00
Eric Fischer
235dbf57af More progress on splitting apart parsing and serialization 2017-08-22 16:51:11 -07:00
Eric Fischer
b1620f6c59 Work on factoring out serial_feature 2017-08-15 10:25:11 -07:00
Eric Fischer
200f6777ba Fix layer list in tilestats when filtering and tile-joining.
(The feature count when filtering will be the sum of features
across tiles instead of filters from the original input, since
the filter reader doesn't know what the original input feature
set was.)
2017-08-08 16:41:20 -07:00
Eric Fischer
635429cd87 Fix dangling pointer. Defer tilestats generation until tiling if filtering. 2017-08-08 13:38:48 -07:00
Eric Fischer
c79f19e3ca Merge branch 'master' into plugins 2017-08-08 11:08:10 -07:00
Eric Fischer
62f135a97d Exclude long attribute values from tilestats output, as specified 2017-07-21 12:28:14 -07:00
Eric Fischer
3cafef89f1 Factor out duplicated tilestats code 2017-07-19 14:45:15 -07:00
Eric Fischer
7b03e1ee87 Include tilestats in the metadata table. (Not all tests are passing) 2017-07-19 13:09:47 -07:00
Eric Fischer
9078098511 Only insert a new tilestats record if there isn't already one 2017-07-18 17:28:30 -07:00
Eric Fischer
71f57793fd Derive tilejson attribute types from sample attribute values 2017-07-17 17:31:46 -07:00
Eric Fischer
77bf14bfb0 Track sample values for each attribute in each layer 2017-07-17 13:28:46 -07:00
Eric Fischer
b1771a3365 Make layer attributes a map to sample values 2017-07-17 11:58:37 -07:00
Eric Fischer
7445feb845 Work in the direction of tracking representative attribute values 2017-07-14 17:59:24 -07:00
Eric Fischer
62ee53992b Track how many features of each type are in each layer 2017-07-14 17:23:41 -07:00
Eric Fischer
65c095cc2b Clean up #includes and add fields for counting attributes 2017-07-14 16:56:23 -07:00
Eric Fischer
04d0cc6fa1 Merge branch 'master' into plugins 2017-07-06 22:28:35 -07:00
Eric Fischer
c7d146ea48 Don't do work for guessing maxzoom unless needed. Add a better test. 2017-05-30 16:58:56 -07:00
Eric Fischer
ab8ecb7e00 Add missing #include 2017-05-30 13:41:24 -07:00
Eric Fischer
331707f88a Better maxzoom guessing by considering resolution within features 2017-05-30 13:28:25 -07:00
Eric Fischer
5a8bfa23a4 Merge branch 'master' into plugins 2017-04-21 16:18:00 -07:00
Eric Fischer
d19680e392 Try to be clearer in the warning message about projections 2017-04-18 13:24:16 -07:00
Eric Fischer
7dc586bc84 Merge branch 'master' into plugins 2017-04-17 16:01:12 -07:00
Eric Fischer
178b5d0054 Add -T option to coerce the types of feature attributes 2017-04-17 15:20:03 -07:00
Eric Fischer
198a5a06d4 Clean up JSON parsing at the end of each FeatureCollection 2017-04-12 12:45:35 -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
eaff7b93c5 Merge branch 'master' into plugins 2017-03-15 16:19:33 -07:00
Eric Fischer
ea77e3db6f Add --detect-longitude-wraparound option 2017-03-15 13:37:50 -07:00
Eric Fischer
47cb2434e6 Merge branch 'master' into plugins 2017-01-19 15:48:39 -08:00
Eric Fischer
5a8f9f11c0 Only warn once about non-numeric/non-integer/negative feature IDs 2017-01-18 14:26:17 -08:00
Eric Fischer
150e3663e1 Pass the index, sequence, and extent through the prefilter when needed 2017-01-13 14:59:11 -08:00
Eric Fischer
bf619a315c Merge branch 'master' into plugins 2017-01-03 13:25:05 -08:00
Eric Fischer
c87d6eadfc Associate attributes with the right layer when explicitly tagged (#342) 2017-01-03 12:20:52 -08:00
Eric Fischer
3f14a0dd55 Factor out conversion from JSON types to vector tile attribute types 2016-12-07 16:17:17 -08:00
Eric Fischer
c82e3e98c3 Factor out parsing the geometry coordinate array 2016-12-06 17:19:22 -08:00
Eric Fischer
4256473283 More reorganization to reuse JSON parsing 2016-12-06 17:19:22 -08:00
Eric Fischer
dc9e68b128 Make feature-dropping option names a little more consistent 2016-11-17 12:40:11 -08:00
Eric Fischer
439b544c8c Don't serialize the feature sequence number unless needed for -pi 2016-11-16 17:35:25 -08:00
Eric Fischer
32aa653082 Don't spend geometry space on index or extent unless it is needed 2016-11-11 17:37:46 -08:00
Eric Fischer
013e6512b4 Add an option to drop the smallest features to make tiles small enough 2016-11-09 17:09:05 -08:00
Eric Fischer
2e3ba8f374 Retain original feature index rather than recalculating
For better density calculation of clipped features
2016-11-02 15:11:22 -07:00
Eric Fischer
d0db3323fb Binary search to find gap that leaves the desired fraction of features 2016-11-02 14:25:04 -07:00
Eric Fischer
93d3c40593 Remove dead code 2016-10-26 15:43:46 -07:00
Eric Fischer
eb1c64db27 Fix use of 32-bit zigzag encoding/decoding for 64-bit integers 2016-10-14 15:48:35 -07:00