Commit Graph

1621 Commits

Author SHA1 Message Date
Eric Fischer
760a0c9209 Add missing JSON type check; bump version number. 2018-06-06 11:54:23 -07:00
Eric Fischer
c9eed0d457 Be careful to remove null attributes from prefilter/postfilter output 2018-06-06 11:48:57 -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
6e231f5911
Merge pull request #581 from mapbox/force-polygon-winding
Add --use-source-polygon-winding and --reverse-source-polygon-winding
2018-06-01 23:19:43 +02:00
Eric Fischer
c650329eb2 Use a complete feature in the winding test instead of a bare geometry 2018-06-01 13:33:58 -07:00
Eric Fischer
48486b5d7b Add --use-source-polygon-winding and --reverse-source-polygon-winding 2018-06-01 12:59:28 -07:00
Eric Fischer
38bca4a179
Merge pull request #574 from mapbox/layer-description
Add the option to specify layer file, name, and description as JSON
2018-05-25 01:49:06 +02:00
Eric Fischer
48f7f1dd38 Preserve layer and attribute descriptions across tile-join 2018-05-24 16:01:57 -07:00
Eric Fischer
bb8b01a702 Add option to specify description for attributes in tileset metadata 2018-05-24 14:18:22 -07:00
Eric Fischer
54532795f6 Trailing commas in CSVs are now treated as empty fields.
Empty fields are now treated as empty strings rather than nulls
in tippecanoe-json-tool, for consistency with tile-join.
2018-05-24 13:54:00 -07:00
Eric Fischer
32b3a15406 Add test for JSON specification of layer file, name, and description 2018-05-24 12:41:14 -07:00
Eric Fischer
53731709b2 Add the option to specify layer file, name, and description as JSON 2018-05-24 11:30:42 -07:00
Eric Fischer
7128ac44d5 Track layer description as part of the tilestats 2018-05-24 10:27:43 -07:00
Eric Fischer
b65a5d1bb8
Merge pull request #571 from mapbox/atomic-decode
Thread safety fix for decoding quadkeys to coordinates
2018-05-23 01:39:39 +02:00
Eric Fischer
02cb3a3fb8 Thread safety fix for decoding quadkeys to coordinates 2018-05-18 14:45:03 -07:00
Eric Fischer
5494b7da3d
Merge pull request #570 from mapbox/nan-coordinates
Explicitly check for infinite and not-a-number input coordinates
2018-05-17 00:01:43 +02:00
Eric Fischer
dc3aa2ddfa Test CSV geometry with invalid coordinates 2018-05-16 14:29:28 -07:00
Eric Fischer
a4825f6af4 Explicitly check for infinite and not-a-number input coordinates 2018-05-15 12:55:17 -07:00
Eric Fischer
3f7ba2915a
Merge pull request #569 from mapbox/tile-join-vasprintf
Add #define needed for Cygwin
2018-05-15 21:01:55 +02:00
Eric Fischer
445c33fb88 Add #define needed for Cygwin 2018-05-14 17:43:42 -07:00
Eric Fischer
6db02e8457
Merge pull request #568 from mapbox/gzip-input
Directly support gzipped GeoJSON files as input
2018-05-15 00:08:51 +02:00
Eric Fischer
73398a0484 Use the FILE-like abstraction that zlib already provides 2018-05-14 12:40:38 -07:00
Eric Fischer
0244f04b71 Detect if the compressed input runs out before the stream is complete 2018-05-14 11:35:29 -07:00
Eric Fischer
d0d953f4a2 Use a loop instead of spelling out .json and .json.gz separately 2018-05-14 10:46:45 -07:00
Eric Fischer
09565b4632 Fix arithmetic overflows 2018-05-11 17:29:29 -07:00
Eric Fischer
974bfb3543 Add missing initializer in can't-be-compressed case 2018-05-11 17:13:06 -07:00
Eric Fischer
450a8a741f Fix reference to uncompressed version of test file that I compressed 2018-05-11 16:49:09 -07:00
Eric Fischer
dbd69142b0 Test and documentation 2018-05-11 16:34:18 -07:00
Eric Fischer
14b618adc9 Make stream lookahead work; simplify the interface 2018-05-11 16:02:53 -07:00
Eric Fischer
9f7dc4b46d Use zlib to decompress gzipped input 2018-05-11 15:51:53 -07:00
Eric Fischer
72b8142388 JSON-reading glue to use the stream abstraction 2018-05-11 14:58:29 -07:00
Eric Fischer
33b0d5c15c Start an abstraction layer for input streams 2018-05-11 14:44:10 -07:00
Eric Fischer
8e8b74b0ce
Merge pull request #567 from mapbox/checkdisk-race
Make file positions and lengths thread-safe
2018-05-07 16:31:25 -07:00
Eric Fischer
f070c7464b Add missing #include 2018-05-07 15:10:18 -07:00
Eric Fischer
59dd095607 Make file positions and lengths thread-safe 2018-05-07 14:42:49 -07:00
Eric Fischer
2cf0524037
Merge pull request #566 from mapbox/extend-zooms-with-feature-limit
Also take note of --force-feature-limit if extending zooms
2018-05-04 22:31:20 +02:00
Eric Fischer
8ba884530a Also take note of --force-feature-limit if extending zooms 2018-05-04 12:43:27 -07:00
Eric Fischer
43312fd83e
Merge pull request #565 from mapbox/gnusource
Add #define to fix the build on Cygwin
2018-05-04 20:42:19 +02:00
Eric Fischer
b8cfab1eaf Add #define to fix the build on Cygwin 2018-05-04 10:37:27 -07:00
Eric Fischer
af69c85d23
Merge pull request #561 from mapbox/exit-status
Use an exit status of 100 if some but not all zoom levels succeeded
2018-04-20 10:44:13 +03:00
Eric Fischer
a383f5c725 Use an exit status of 100 if some but not all zoom levels succeeded 2018-04-18 20:48:13 +03:00
Eric Fischer
066934a666
Merge pull request #553 from mapbox/zoom-filter
Allow filtering features by zoom level in conditional expressions
2018-04-09 09:24:25 -07:00
Eric Fischer
cb4630452b Include another already-merged PR in changelog 2018-04-09 08:33:14 -07:00
Eric Fischer
7006272b75
Merge pull request #555 from andrewharvey/csv-null-geometry
Skip csv lines with no geometry as is done for geojson
2018-04-09 08:27:05 -07:00
Eric Fischer
767763c855
Merge pull request #556 from jingsam/ignore-tippecanoe-json-tool
Ignore tippecanoe-json-tool
2018-04-09 08:26:08 -07:00
jingsam
cc6a97f112 Ignore tippecanoe-json-tool 2018-04-08 17:19:19 +08:00
Andrew Harvey
0d6112cf20 include empty geometry test for csv 2018-04-07 08:05:45 +10:00
Andrew Harvey
970af8109e skip csv lines with no geometry as is done for geojson 2018-04-06 10:56:51 +10:00
Eric Fischer
1b26becad9 Clear up some confusion about attribute count and external references
Now the count is always adjacent to whereever the key/value pair is
stored, and is not kept in the serial feature object other than as
the length of the vectors of keys and values.
2018-04-05 15:40:14 -07:00
Eric Fischer
d01d8177a0 Allow filtering features by zoom level in conditional expressions
This moves filtering from the serialization stage to the
tiling stage so that the zoom level can be known to the filter.

The side effect is to carry null attributes much further through
the pipeline than previously.
2018-04-05 14:15:19 -07:00