Eric Fischer
f2f76082df
Merge pull request #501 from mapbox/refactor-dirtiles
...
Clean up duplicated code for reading tiles from a directory
2017-12-01 14:35:03 -08:00
Eric Fischer
e4743d9527
Test successful and failed attempts to write to existing tilesets
2017-11-30 15:56:35 -08:00
Eric Fischer
d7f44ab082
Factor out code for reading metadata.json
2017-11-30 15:49:38 -08:00
Eric Fischer
1acd771743
Factor out code for enumerating the tiles in a directory
2017-11-30 15:37:46 -08:00
Eric Fischer
ad86d06cce
Merge pull request #500 from mapbox/allow-existing-test
...
Make --allow-existing work on dirs; trim .geojson from layer names
2017-11-30 11:15:38 -08:00
Eric Fischer
1b1be9f872
Also trim .geobuf from layer names
2017-11-29 16:44:55 -08:00
Eric Fischer
ba1c343204
Make --allow-existing work on dirs; trim .geojson from layer names
2017-11-29 16:24:48 -08:00
Eric Fischer
ca028dd1cc
Merge pull request #495 from mapbox/bare-geom-crash
...
Add null pointer check when checking for bare geometry. Fix coalescing of wrong features.
2017-11-22 17:53:25 -08:00
Eric Fischer
8ac7c46788
Make the same null pointer fix in jsontool.cpp as in geojson.cpp
2017-11-22 13:06:39 -08:00
Eric Fischer
2234e37883
Quadkey-order index is a better secondary key for --reorder anyway
2017-11-22 12:49:40 -08:00
Eric Fischer
8230987405
Fix a bug that could cause the wrong features to be coalesced
2017-11-22 11:54:25 -08:00
Eric Fischer
9964784e77
Add null pointer check when testing for bare geometry in GeoJSON
2017-11-21 15:01:33 -08:00
Eric Fischer
ac67013930
Merge pull request #473 from mapbox/json-join
...
Working on tools for joining CSV data to GeoJSON
2017-11-21 10:50:01 -08:00
Eric Fischer
9a12a76855
Fix overflow when iterating through 0-length lists backwards
2017-11-17 15:47:10 -08:00
Eric Fischer
6fd4918c4d
Attach coalesced-as-needed leftovers to the last feature, not the first
2017-11-17 15:43:02 -08:00
Eric Fischer
ecbfad2576
Fix problem where --detect-shared-borders could simplify polygons away
2017-11-17 15:35:19 -08:00
Eric Fischer
ab86846d4b
Merge branch 'master' into json-join
2017-11-17 15:30:14 -08:00
Eric Fischer
4754084130
Merge pull request #492 from mapbox/rate-clarify
...
Clarify documentation; add --no-progress-indicator option; fix many compiler warnings
2017-11-17 14:11:22 -08:00
Eric Fischer
3f54a70459
Add a test for joining with tippecanoe-json-tool
2017-11-17 14:05:37 -08:00
Eric Fischer
2b1cba0b53
Warn during json-tool extraction if the extracted field isn't found
2017-11-17 13:52:45 -08:00
Eric Fischer
f318fcc657
Turn off very verbose initializer warnings
2017-11-17 11:21:59 -08:00
Eric Fischer
621e0afc3c
Merge branch 'more-warnings' into rate-clarify
2017-11-17 11:21:01 -08:00
Eric Fischer
b6163dd435
Merge branch 'master' into json-join
2017-11-17 11:11:44 -08:00
Eric Fischer
76d86f7d45
Add an option to quiet the progress indicator but not warnings
2017-11-16 17:08:59 -08:00
Eric Fischer
4dec9b43ae
Try to clarify documentation for point dropping
2017-11-15 13:19:42 -08:00
Eric Fischer
2d87059a04
Some more constructors
2017-11-10 13:59:57 -08:00
Eric Fischer
f1c3811d97
Merge pull request #488 from mapbox/test-centos7
...
Test on centos7 via docker
2017-11-10 13:49:07 -08:00
Eric Fischer
069807caf4
Use a proper constructor, discover two unused fields
2017-11-10 13:06:47 -08:00
Eric Fischer
dca1ebbbfb
Get rid of some C99-style variable-length arrays
2017-11-09 16:54:06 -08:00
Eric Fischer
23004808e4
Merge branch 'master' into more-warnings
2017-11-09 15:13:07 -08:00
Eric Fischer
450032a62e
Merge pull request #490 from mapbox/float-bounds
...
Be more careful about checking for overflow when parsing numbers
2017-11-09 15:01:56 -08:00
Eric Fischer
948680fbeb
Exclude failing overflow test from geobuf tests
2017-11-09 14:10:29 -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
aa7191b1ee
Also test large integers. Work around an apparent bug in strtoull.
2017-11-09 12:52:38 -08:00
Eric Fischer
87ce5b9310
Be more careful about checking for overflow when parsing numbers
2017-11-09 12:11:07 -08:00
Eric Fischer
0152db4a20
More initializers
2017-11-07 15:57:56 -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
1b60fdbaf0
Some structure initializers
2017-11-07 12:52:43 -08:00
Eric Fischer
20e6e80cb1
Fix signed comparison warning from g++
2017-11-07 11:38:38 -08:00
Eric Fischer
c18f9a1572
Enable more warnings
2017-11-07 11:15:04 -08:00
Eric Fischer
50910b211b
Remove more unused parameters
2017-11-07 11:09:22 -08:00
Eric Fischer
d89d46da65
Remove unused parameters
2017-11-07 10:55:34 -08:00
Eric Fischer
5a68886b4d
Merge pull request #486 from mapbox/surrogate-pairs
...
Support UTF-16 surrogate pairs in JSON and arbitrarily long lines in CSVs
2017-11-06 10:45:53 -08:00
Eric Fischer
12a1258797
Also remove the point styling script since CartoCSS is long deprecated
2017-11-03 16:59:45 -07:00
Eric Fischer
0585742a20
Remove unused constant and out-of-date comment
2017-11-03 16:51:45 -07:00
Eric Fischer
0801a9324b
Silence the projection warning if you asked for --quiet
2017-11-03 15:25:14 -07:00
Eric Fischer
8ae9a8b665
Merge pull request #483 from mapbox/docker-test
...
Test inside docker on travis
2017-11-03 15:22:04 -07:00
Eric Fischer
e39db074fe
Bump version number
2017-11-03 15:19:43 -07:00
Eric Fischer
1960eb8dae
Follow JSON rules for what looks like a number in a CSV
2017-11-03 15:17:09 -07:00
Eric Fischer
6467a5b70d
Fix the arbitrary line length limit
2017-11-03 15:15:46 -07:00
Eric Fischer
21042a7308
Move CSV code into its own file
2017-11-03 15:15:28 -07:00
Eric Fischer
c217a77b0a
Add UTF-8 and UTF-16 emoji to a test
2017-11-03 15:13:08 -07:00
Eric Fischer
621cf72e5a
Handle surrogate pairs in JSON strings
2017-11-03 15:09:00 -07:00
Eric Fischer
cc734c8709
Merge pull request #485 from mapbox/milo-bounds
...
Port fix for array index out of bounds in decimal conversion
2017-11-03 10:10:12 -07:00
Eric Fischer
41c026796d
Port fix for array index out of bounds in decimal conversion
...
https://github.com/miloyip/dtoa-benchmark/issues/7
commit fe550f38669fe0f488926c1ef0feb6c101f586d6
Author: Eli Fidler <efidler@topologyinc.com >
Date: Tue May 31 11:51:37 2016 -0400
avoid array index out-of-bounds
UBSAN gave "runtime error: index 13 out of bounds for type 'const uint32_t [10]'"
2017-11-02 16:42:29 -07:00
Eric Fischer
dc42c7ccc2
Merge pull request #481 from mapbox/crashers
...
Be more careful about corrupt mbtiles files
2017-10-30 15:16:07 -07:00
Eric Fischer
faf40658a6
Bump version number
2017-10-30 13:53:54 -07:00
Eric Fischer
93a325605c
Guard against impossible tile coordinates when decoding
2017-10-30 13:24:31 -07:00
Eric Fischer
e2b9b96ba8
Detect impossible zoom levels in mbtiles when decoding
2017-10-30 12:55:22 -07:00
Eric Fischer
a3e95db0c3
Guard against decoding tiles with an impossible extent
2017-10-30 12:48:55 -07:00
Eric Fischer
dfbb13e7db
Guard against impossible zoom level
2017-10-27 17:40:39 -07:00
Eric Fischer
d13e08c9b5
Guard against null keys and values in tileset metadata
2017-10-27 17:38:07 -07:00
Eric Fischer
4c7de922ce
Merge pull request #480 from mapbox/join-ints
...
Make sure to encode tile-joined integers as ints, not doubles
2017-10-27 17:31:00 -07:00
Eric Fischer
197d36bdc3
Make sure to encode tile-joined integers as ints, not doubles
2017-10-27 12:43:23 -07:00
Eric Fischer
68e4f312f8
Merge pull request #479 from mapbox/rename-layer
...
Add tile-join option to rename layers
2017-10-27 12:21:52 -07:00
Eric Fischer
18a5300e87
Add tile-join option to rename layers
2017-10-27 11:04:06 -07:00
Eric Fischer
cd47a398fa
Merge pull request #477 from mapbox/empty-attribute-keys
...
Fix error when parsing attributes with empty-string keys
2017-10-13 12:32:32 -07:00
Eric Fischer
ee6da93494
Fix error when parsing attributes with empty-string keys
2017-10-13 11:22:15 -07:00
Eric Fischer
9ebeb47d24
Don't duplicate the join key in JSON tool output
2017-10-10 17:51:16 -07:00
Eric Fischer
894a0acc74
Fix missing URL and explanation in documentation
2017-10-10 16:59:23 -07:00
Eric Fischer
2f1945cfa6
Add example
2017-10-10 16:46:47 -07:00
Eric Fischer
68a55b8749
Follow JSON rules for what looks like a number in a CSV
2017-10-10 16:22:47 -07:00
Eric Fischer
86a4ce67a6
Joining basically works
2017-10-10 16:12:40 -07:00
Eric Fischer
face450102
Fix the arbitrary line length limit
2017-10-10 15:06:12 -07:00
Eric Fischer
19117d8060
Move CSV code into its own file
2017-10-10 14:57:38 -07:00
Eric Fischer
54e9cd3cae
Add UTF-8 and UTF-16 emoji to a test
2017-10-10 14:31:45 -07:00
Eric Fischer
1f9768ce24
Handle surrogate pairs in JSON strings
2017-10-10 14:03:33 -07:00
Eric Fischer
ebb26ee14c
Add property extraction for sorting
2017-10-10 14:03:24 -07:00
Eric Fischer
d9c22135e5
Rename geojson2nd to tippecanoe-json-tool
2017-10-10 11:37:30 -07:00
Eric Fischer
42a56b1ad3
Merge pull request #471 from mapbox/coalesce-smallest
...
Experiment with coalescing features to reduce tile size
2017-10-10 11:33:29 -07:00
Eric Fischer
91e469aac2
Merge any leftover feature remnants onto some feature.
...
Add a test for coalescing small features onto large ones.
2017-10-09 17:37:21 -07:00
Eric Fischer
748ef3b1d5
Add a tippecanoe-decode option to report tile size and feature count
2017-10-09 17:05:29 -07:00
Eric Fischer
ecadd779c9
Don't try to coalesce features of different types
2017-10-09 16:26:55 -07:00
Eric Fischer
8ae1ec5379
Distribute coalescing error more evenly
2017-10-06 18:06:37 -07:00
Eric Fischer
be922702ce
Experiment with coalescing features to reduce tile size
2017-10-06 18:01:08 -07:00
Eric Fischer
e000bcc261
Merge pull request #463 from mapbox/stringpool
...
Limit the depth of the search in the string pool.
2017-09-08 10:16:19 -07:00
Eric Fischer
a2d12f178f
Reorder and reword documentation
2017-09-07 15:34:55 -07:00
Eric Fischer
84a6aa6d73
Use std::isinf() and std::isnan() instead of the C versions
...
According to https://github.com/mapbox/tippecanoe/issues/464 this
is necessary for g++-5 on Linux
2017-09-07 14:40:50 -07:00
Eric Fischer
c3d23675d1
Also fix arithmetic overflow when reading a Geobuf GeometryCollection
2017-09-07 13:48:09 -07:00
Eric Fischer
c77c2a2b1e
Fix compiler complaints about arithmetic overflow in hashing
2017-09-07 12:04:32 -07:00
Eric Fischer
93920d06e1
Slightly lower average traversal using a hash for comparison
2017-09-06 17:10:10 -07:00
Eric Fischer
764a8ac17c
Use 32-bit offsets in the string pool search tree to reduce its size
2017-09-06 15:26:19 -07:00
Eric Fischer
0f8b32c69f
Limit the depth of the search in the string pool.
...
Use a better comparison function. (Attributes often have a common
prefix but rarely have a common suffix.)
2017-09-06 13:06:08 -07:00
Eric Fischer
2518f238d4
Use tippecanoe instead of tile-join in the filter example
2017-09-06 11:49:55 -07:00
Eric Fischer
7ce882c035
Merge pull request #462 from mapbox/gl-filters
...
Add feature attribute filters (as in the GL style spec) to tile-join
2017-09-06 11:20:32 -07:00
Eric Fischer
c9e4275217
Do fewer tests in the address sanitizer build
2017-09-05 14:02:43 -07:00
Eric Fischer
bdd95af8b2
Be careful not to generate empty layers in tile-join.
...
Add a test of filtering during tile-join.
Bump version number.
2017-09-05 13:33:10 -07:00