64 Commits

Author SHA1 Message Date
Eric Fischer
de120df7f2 Only the string values are in a sub-object of the layer now.
For https://github.com/mapbox/vector-tile-spec/pull/123
2018-09-04 16:07:12 -07:00
Eric Fischer
9b3f09b291 Renumber types and use a single pool for signed and unsigned ints
For https://github.com/mapbox/vector-tile-spec/pull/123
2018-09-04 15:47:48 -07:00
Eric Fischer
b7e56dd4a0 Unify some duplicated code, but it still loses the node attributes 2018-08-30 17:19:34 -07:00
Eric Fischer
a1b651b531 Forgot to increment the attribute index after decoding 2018-08-28 16:17:27 -07:00
Eric Fischer
8db6f5975f Remove dead-end idea for decoding node attributes 2018-08-28 16:03:13 -07:00
Eric Fischer
8980c4acba Get the first node attribute per feature decoding, at least 2018-08-28 15:32:43 -07:00
Eric Fischer
074ed225d0 Turn node attribute parsing back on. Fix message number in tile. 2018-08-27 17:32:59 -07:00
Eric Fischer
749418e297 Serialize node attributes into the tile 2018-08-27 17:29:37 -07:00
Eric Fischer
18d1e5423e More plumbing for decoding node attributes 2018-08-27 17:14:08 -07:00
Eric Fischer
6faf4dcc88 Some work on decoding per-node attributes 2018-08-27 17:00:19 -07:00
Eric Fischer
38d2a863c9 Fix encoding of features with unequal numbers of dimensions 2018-08-24 16:39:22 -07:00
Eric Fischer
b68c19042b Fix elevation inconsistencies 2018-08-24 16:20:11 -07:00
Eric Fischer
1ddaa92166 Work on generalizing to arbitrarily many dimensions 2018-08-24 15:56:12 -07:00
Eric Fischer
12cd5f6ff3 The g++ build does not seem to think that C-style isnan is defined 2018-08-23 17:09:28 -07:00
Eric Fischer
366353a3a8 Fix undefined elevations coming back as 0 2018-08-23 16:38:40 -07:00
Eric Fischer
00a74a535e Carry elevations all the way into decoding 2018-08-23 15:05:10 -07:00
Eric Fischer
c43e6d63f1 Extend the elevation pipeline far enough to write some to the tile 2018-08-23 14:55:30 -07:00
Eric Fischer
fc351aa5b8 Get rid of the experiment with inlining floats 2018-08-17 11:35:11 -07:00
Eric Fischer
9ae212187a Revised attribute representation to match spec revision 2018-08-17 11:31:59 -07:00
Eric Fischer
ba583d4548 Change tables of integers by reference to be fixed-size 2018-08-16 11:10:58 -07:00
Eric Fischer
adc403906d Handle null values (in nested objects) 2018-08-15 15:03:37 -07:00
Eric Fischer
a5e1153bbd Decode Blake-style lists and hashes 2018-08-15 10:40:22 -07:00
Eric Fischer
bfc211adc7 Closer to encoding and decoding lists and hashes 2018-08-14 17:55:02 -07:00
Eric Fischer
5aaad2554a Write lists and hashes 2018-08-14 17:34:06 -07:00
Eric Fischer
12520080ef Reorganize to get ready for lists and hashes 2018-08-14 17:13:06 -07:00
Eric Fischer
881402112e Move in the direction of supporting lists and hashes again 2018-08-14 16:47:53 -07:00
Eric Fischer
f31024d97e Merge branch 'object-attributes' into blake-properties 2018-08-14 16:16:26 -07:00
Eric Fischer
e6fb320429 Treat compound tagging like any other tagging. Add postfilter test. 2018-08-14 16:05:51 -07:00
Eric Fischer
31e4ec65ae Merge branch 'object-attributes' into blake-properties 2018-08-14 15:36:44 -07:00
Eric Fischer
9319f2e1b2 Add a way to represent empty hashes and lists in attributes 2018-08-14 13:27:56 -07:00
Eric Fischer
0b8dc68a03 Merge branch 'master' into object-attributes 2018-08-14 12:01:12 -07:00
Eric Fischer
27b9ceddba Need 4 bits for type, not just 3 2018-07-24 10:33:34 -07:00
Eric Fischer
8722ec0b2f Add variant that inlines float values 2018-07-24 10:24:50 -07:00
Eric Fischer
b7dc84bdd7 Also sort the keys 2018-07-23 15:19:18 -07:00
Eric Fischer
e8011c59ba Make tile format configurable. Add option to sort values in v2 style. 2018-07-23 15:11:48 -07:00
Eric Fischer
c619f563c5 It works (except for tests that depend upon exact tile size) 2018-07-20 14:50:01 -07:00
Eric Fischer
b6f329e3b1 Untested code to read and write proposed new properties format 2018-07-20 14:27:22 -07:00
Eric Fischer
07ab900393 Report decompression errors in tippecanoe-decode 2018-07-13 17:02:49 -07:00
Eric Fischer
2318673108 Be more systematic about nulls and undefined attribute values
It is an error to write a null attribute to a tile, but
null attributes found within existing tiles will be decoded
into JSON as null.
2018-06-06 11:48:01 -07:00
Eric Fischer
f4517d9a19 Geobuf doesn't support nested attributes, so don't test that 2018-03-19 10:18:40 -07:00
Eric Fischer
6f4ec2a3f3 Merge branch 'master' into object-attributes-merge3 2018-03-16 18:07:17 -07:00
Eric Fischer
fda0e1f28a Fix more cases of loss of precision for large magnitude integers 2017-11-09 13:56:07 -08:00
Eric Fischer
aa7191b1ee Also test large integers. Work around an apparent bug in strtoull. 2017-11-09 12:52:38 -08:00
Eric Fischer
87ce5b9310 Be more careful about checking for overflow when parsing numbers 2017-11-09 12:11:07 -08:00
Eric Fischer
c232e565db Working on testing against Mapbox GL JS filter tests 2017-09-01 16:27:27 -07:00
Eric Fischer
5665d08745 Support per-feature minzoom and maxzoom in geobuf 2017-08-30 11:44:57 -07:00
Eric Fischer
c2b7d36b1f Merge branch 'master' into object-attributes 2017-08-21 13:06:07 -07:00
Eric Fischer
93005de00e Fix duplicate attribute detection for lists and hashes 2017-06-05 11:01:15 -07:00
Eric Fischer
c1889b74fd Encode null sub-attributes as an empty message, not as their own type 2017-06-05 10:48:58 -07:00
Eric Fischer
b301512860 Merge branch 'master' into plugins 2017-05-12 17:20:30 -07:00