61 Commits

Author SHA1 Message Date
Eric Fischer
d3d73d3afa Encode and decode zoom/x/y tags in the layer
Don't tag zoom/x/y yet when creating tiles, to avoid remaking
all the tests
2018-10-11 12:21:07 -07:00
Eric Fischer
c9a2a00e3c Turn the node attributes into a list to write them to the tile 2018-10-09 17:32:53 -07:00
Eric Fischer
e91972650b Untested code for decoding delta-encoded lists 2018-10-09 15:31:09 -07:00
Eric Fischer
41f64b5852 Inching closer to the revised spec for elevations 2018-10-09 13:43:21 -07:00
Eric Fischer
7a84314562 Introduce new list and hash container types for geometric attributes 2018-10-08 14:45:40 -07:00
Eric Fischer
7d47d3c6ca Get rid of VT2-style lists and hashes to avoid future confusion 2018-10-08 14:23:25 -07:00
Eric Fischer
e9e84fb073 Revise for new definition of Scaling 2018-10-03 16:40:16 -07:00
Eric Fischer
fd65a646d0 Renumber fields to move in the direction of latest spec revisions 2018-09-27 16:27:37 -07:00
Eric Fischer
0a339b6680 Read and write spline knots, but don't try to interpret them yet 2018-09-17 16:57:08 -07:00
Eric Fischer
d4f9729bc9 More progress on decoding elevations 2018-09-13 17:18:43 -07:00
Eric Fischer
4bcef2cb11 Work on reading dimension descriptions 2018-09-13 17:04:22 -07:00
Eric Fischer
ec0a54f0c5 Move the string values back to the top level of the layer 2018-09-12 14:23:34 -07:00
Eric Fischer
afe739c2f3 String IDs are now plain strings instead of references 2018-09-10 11:25:52 -07:00
Eric Fischer
bd186664ac Untested support for string feature IDs 2018-09-07 15:37:46 -07:00
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
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
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
1ddaa92166 Work on generalizing to arbitrarily many dimensions 2018-08-24 15:56:12 -07:00
Eric Fischer
68686e813b Carry the per-node attributes into the tile structure 2018-08-23 17:54:00 -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
bfc211adc7 Closer to encoding and decoding lists and hashes 2018-08-14 17:55:02 -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
31e4ec65ae Merge branch 'object-attributes' into blake-properties 2018-08-14 15:36:44 -07:00
Eric Fischer
0b8dc68a03 Merge branch 'master' into object-attributes 2018-08-14 12:01:12 -07:00
Eric Fischer
8722ec0b2f Add variant that inlines float values 2018-07-24 10:24:50 -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
b6f329e3b1 Untested code to read and write proposed new properties format 2018-07-20 14:27:22 -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
6f4ec2a3f3 Merge branch 'master' into object-attributes-merge3 2018-03-16 18:07:17 -07:00
Eric Fischer
a8a342f701 Send dot-dropping through the same pipeline.
The first feature in a tile can never be dropped, since there is
no previous feature to attach its properties to.

Remove the previous special case that reset the dropping counter
at the first feature within each tile proper (as opposed to the
first feature in each tile, including its buffer, which is now
the one that is guaranteed to be preserved).
2018-02-23 17:19:54 -08:00
Eric Fischer
23004808e4 Merge branch 'master' into more-warnings 2017-11-09 15:13: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
30aa422483 Missed one 2017-11-07 15:27:47 -08:00
Eric Fischer
4f974b3dc6 Less verbose initializer syntax 2017-11-07 15:25:54 -08:00
Eric Fischer
ba62ab8596 More structure initializers 2017-11-07 15:20:17 -08:00
Eric Fischer
891f99f24c More structure initializers 2017-11-07 13:32:03 -08:00
Eric Fischer
5665d08745 Support per-feature minzoom and maxzoom in geobuf 2017-08-30 11:44:57 -07:00
Eric Fischer
e7ee83f27b Move attribute type coercion out of parsing and into serialization 2017-08-24 17:27:30 -07:00
Eric Fischer
c2b7d36b1f Merge branch 'master' into object-attributes 2017-08-21 13:06:07 -07: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
b301512860 Merge branch 'master' into plugins 2017-05-12 17:20:30 -07:00
Eric Fischer
30d54ff50d Tile-join had not been compressing its tiles. 2017-05-11 12:08:47 -07:00