50 Commits

Author SHA1 Message Date
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
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
57ff54e683 Fix coordinate overflow by increasing integer size 2016-12-09 16:35:41 -08:00
Eric Fischer
d1dc310bbc The GeoJSON-producing part of prefiltering 2016-12-08 15:13:38 -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
98c558190e Use 8 for hashes and 9 for lists, not the other way around 2016-09-29 10:12:08 -07:00
Eric Fischer
37a20a004b Factor out duplicated code 2016-09-28 17:24:08 -07:00
Eric Fischer
23c615e4e4 EXPERIMENTAL support for arbitrary JSON objects as feature attributes 2016-09-28 15:00:09 -07:00
Eric Fischer
2bc1b9bd91 Support feature IDs for decoding 2016-07-15 13:58:15 -07:00
Eric Fischer
c0edefa721 Pack structures tighter to use a little less memory 2016-05-11 14:23:39 -07:00
Eric Fischer
b12413eddb Rename everything from .cc to .cpp to match other projects 2016-04-27 12:22:47 -07:00