95 Commits

Author SHA1 Message Date
Eric Fischer
0db0ef9a73 Include elevation and attribute scaling in tippecanoe-decode output 2018-10-19 11:50:32 -07:00
Eric Fischer
cf81880949 Use the right message numbers for splines; additional spline support 2018-10-18 16:16:36 -07:00
Eric Fischer
af66a8a118 Knots are delta-encoded complex values, not a list of doubles 2018-10-18 15:14:06 -07:00
Eric Fischer
4ce81bd587 Preserve per-node attributes through feature filter pipelines
They now stay in array form until just before printing, rather
than being decoded into strings as part of tile deserialization
2018-10-17 13:26:08 -07:00
Eric Fischer
56bf3f4218 Elevation deltas are 32-bit, not 64-bit 2018-10-17 11:50:48 -07:00
Eric Fischer
a7903c4173 Build the lists of node attributes as mvt_values without involving JSON 2018-10-15 14:41:14 -07:00
Eric Fischer
600e87af42 Disentangle list and hash attributes a little further 2018-10-15 14:29:50 -07:00
Eric Fischer
ff1d1f0e58 Choose an elevation precision based on the zoom level 2018-10-12 13:40:04 -07:00
Eric Fischer
c3d06f8931 Only movetos and linetos have elevations, not closepaths 2018-10-11 17:04:03 -07:00
Eric Fischer
6315009cc1 Remove some of the cases where objects are stored as stringified JSON 2018-10-11 16:01:44 -07:00
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
602508a2e2 Allow null attributes in tiles 2018-10-10 14:27:14 -07:00
Eric Fischer
bc15ed2418 Decode per-node attributes in list form 2018-10-09 17:55:01 -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
9ac4ab2164 Use a delta-encoded list 2018-10-09 15:56:00 -07:00
Eric Fischer
e91972650b Untested code for decoding delta-encoded lists 2018-10-09 15:31:09 -07:00
Eric Fischer
0774711df3 I think this brings elevations in line with the spec 2018-10-09 13:55:29 -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
b64cc84bef Fix delta-encoded elevations 2018-09-13 17:50:27 -07:00
Eric Fischer
801940d20f Encode dimensions, but it doesn't work 2018-09-13 17:36:06 -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
13879d0fa1 Read string IDs at all, and use the right IDs when writing 2018-09-07 17:03:10 -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
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