Eric Fischer
cfea072510
Decode knots and spline degree to JSON if present
2018-10-18 17:06:13 -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
00f57133fe
Fix crash, clean up messy leftover code
2018-10-17 13:44:12 -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
ff1d1f0e58
Choose an elevation precision based on the zoom level
2018-10-12 13:40:04 -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
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
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
cf902bf3ab
In output, write node attributes in a parallel array, not in coordinates
2018-08-29 12:51: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
6faf4dcc88
Some work on decoding per-node attributes
2018-08-27 17:00:19 -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
3fbd89942d
Fix more g++ complaints about isnan not being defined
2018-08-23 17:17:13 -07:00
Eric Fischer
00a74a535e
Carry elevations all the way into decoding
2018-08-23 15:05:10 -07:00
Eric Fischer
9ae212187a
Revised attribute representation to match spec revision
2018-08-17 11:31:59 -07:00
Eric Fischer
76582d0e49
Fix out-of-bounds array reference
2018-08-15 16:54:36 -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
ff1a28bf0c
Fix segfault
2018-08-14 15:38:20 -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
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
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
b8cfab1eaf
Add #define to fix the build on Cygwin
2018-05-04 10:37:27 -07:00
Eric Fischer
c64a39cc58
Merge branch 'master' into object-attributes
2018-03-19 11:29:20 -07:00
Eric Fischer
6f4ec2a3f3
Merge branch 'master' into object-attributes-merge3
2018-03-16 18:07:17 -07:00
Eric Fischer
3d1ebdb82f
Add missing #include
2018-03-16 16:26:19 -07:00
Eric Fischer
3c827b1d68
Use the standard JSON writer when writing metadata.json
2018-03-16 15:35:26 -07:00
Eric Fischer
ebb0334ef0
Use the standard JSON writer for tilestats
...
With a lot of weird special cases to keep the formatting
exactly like it accidentally was before
2018-03-16 15:19:23 -07:00
Eric Fischer
08fc2f281e
JSON can be written to either a FILE or a string
2018-03-16 14:20:52 -07:00
Eric Fischer
1c4aa57ffd
Change the JSON writing functions to object methods
2018-03-16 13:43:21 -07:00
Eric Fischer
623e0c90fe
More regularization of JSON writing
2018-03-15 17:07:26 -07:00
Eric Fischer
ddf4a45b33
Use JSON writer functions for tile size stats
2018-03-15 15:19:52 -07:00
Eric Fischer
605ccbe077
Helper functions so I will stop writing JSON by hand
2018-03-15 14:42:53 -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
d49606babf
Fix opportunities for integer overflow
2018-01-18 12:37:15 -08:00
Eric Fischer
23004808e4
Merge branch 'master' into more-warnings
2017-11-09 15:13:07 -08: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
0152db4a20
More initializers
2017-11-07 15:57:56 -08:00
Eric Fischer
f9a007e8c3
Use milo dtoa for consistent string representation of numbers
2017-08-29 14:44:34 -07:00
Eric Fischer
1ca0d0017e
Fix and test round trip of compound attributes through tile-join
2017-08-21 14:00:40 -07:00
Eric Fischer
c2b7d36b1f
Merge branch 'master' into object-attributes
2017-08-21 13:06:07 -07:00
Eric Fischer
635429cd87
Fix dangling pointer. Defer tilestats generation until tiling if filtering.
2017-08-08 13:38:48 -07:00