Commit Graph
100 Commits
Author SHA1 Message Date
Eric Fischer 5229990523 Fix gridding of small squares; use less memory for small features 2018-11-21 15:34:43 -08:00
Eric Fischer 739445cb6c Merge pull request #665 from mapbox/coerce-id-leading-zero
Ignore leading zeroes when converting string attributes to feature IDs
2018-11-07 16:31:35 -08:00
Eric Fischer f9c9ff3853 Ignore leading zeroes when converting string attributes to feature IDs 2018-11-07 15:46:44 -08:00
Eric Fischer 949468e6f5 Merge pull request #658 from mapbox/coerce-feature-ids
Add an option to convert stringified number feature IDs to numbers
2018-11-07 14:45:08 -08:00
Eric Fischer a3150642d3 Merge pull request #663 from jingsam/ignore
chore: ignore geobuf tests files and node_modules
2018-11-07 10:36:04 -08:00
Eric Fischer cc7c0cc6c9 Don't test string ID conversion with geobuf, because it fails 2018-11-02 15:28:51 -07:00
Eric Fischer bd2423a5ea Add an option to use a specified feature attribute as the feature ID 2018-11-02 15:21:52 -07:00
Eric Fischer 53de8a2014 Add an option to convert stringified number feature IDs to numbers 2018-11-01 17:07:33 -07:00
Eric Fischer b8ffdda32e Merge pull request #656 from mapbox/tile-join-maxzoom
Warn in tile-join if tilesets being joined have different maxzooms
2018-10-31 16:09:11 -07:00
Eric Fischer 9c79cf7162 Warn in tile-join if tilesets being joined have different maxzooms 2018-10-31 14:25:25 -07:00
Eric Fischer d3ae48534e Merge pull request #650 from mapbox/filter-crash
Fix null pointer crash/add bounding box option
2018-10-23 11:59:28 -07:00
Eric Fischer 1cf3b0accc Fix the feature bounding box after clipping 2018-10-23 10:55:07 -07:00
Eric Fischer 5dfbc4a281 Add --clip-bounding-box option to clip input geometry 2018-10-22 16:49:33 -07:00
Eric Fischer 0acdeef525 Fix null pointer crash when looking for feature extent in filter output 2018-10-22 13:26:53 -07:00
Eric Fischer e18748e29b Merge pull request #647 from mapbox/attribute-compare
Bug fix: mismatched features could be coalesced if from a prefilter
2018-10-10 15:12:38 -07:00
Eric Fischer 1b75ca33b4 Bug fix: mismatched features could be coalesced if from a prefilter 2018-10-10 14:35:46 -07:00
Eric Fischer b7fb576544 Merge pull request #645 from mapbox/empty-tileset-dir
Create the output tile directory even if there are no valid features
2018-09-24 13:52:31 -07:00
Eric Fischer b2999fe9a8 Create the output tile directory even if there are no valid features 2018-09-24 11:16:13 -07:00
Eric Fischer 03199a77a5 Merge pull request #642 from mapbox/maxzoom-minzoom
Issue an error message in tile-join if minzoom is greater than maxzoom
2018-09-07 12:07:47 -07:00
Eric Fischer 7aebce7e0e Issue an error message in tile-join if minzoom is greater than maxzoom 2018-09-07 10:08:02 -07:00
Eric Fischer 9949d7ed1a Merge pull request #639 from mapbox/tile-stats-limits
Add options to change the tilestats limits
2018-08-31 17:50:42 -07:00
Eric Fischer 2530efd525 Used the tilestats sample values limit instead of the attributes limit 2018-08-31 16:52:38 -07:00
Eric Fischer 216c0cf428 Be consistent about pluralization in the tilestats options 2018-08-31 16:19:55 -07:00
Eric Fischer bc84b41246 Add options to change the tilestats limits 2018-08-31 15:12:00 -07:00
Eric Fischer 5483720ee1 Merge pull request #635 from jingsam/ignore-check-files
chore: ignore generated check and mbtiles files in tests
2018-08-23 10:34:38 -07:00
Eric Fischer 15df8e8431 Merge pull request #633 from mapbox/tile-join-name-len
Keep tile-join from generating a tileset name longer than 255 chars
2018-08-21 10:01:58 -07:00
Eric Fischer addbd0a854 Keep tile-join from generating a tileset name longer than 255 chars 2018-08-20 17:45:18 -07:00
Eric Fischer de40169f16 Merge pull request #631 from mapbox/filename-warning
Fix missing filename in warning messages
2018-08-16 14:20:38 -07:00
Eric Fischer 0a3e4ad561 Fix missing filename in warning messages 2018-08-16 13:46:37 -07:00
Eric Fischer 1ef2005f04 Merge pull request #623 from mapbox/cookbook
Add a cookbook section to the README
2018-08-16 12:08:37 -07:00
Eric Fischer f0517d090b Merge pull request #627 from mapbox/geojson-loop
Factor out the GeoJSON parsing loop from feature serialization
2018-08-08 15:14:14 -07:00
Eric Fischer 19c132e79c Be more cautious about use of a null feature for bare geometries 2018-08-08 14:17:08 -07:00
Eric Fischer 98cf4d94aa Don't accept features or geometries inside another object's properties 2018-08-08 13:42:49 -07:00
Eric Fischer ba8966a4ae Use the same GeoJSON parsing loop in tippecanoe-json-tool 2018-08-08 13:11:25 -07:00
Eric Fischer 79363e397b Factor out the GeoJSON parsing loop from feature serialization 2018-08-08 13:11:10 -07:00
Eric Fischer 2e80377b24 Merge pull request #626 from mapbox/tile-join-remove-attrs
Add --exclude-all to tile-join
2018-08-07 11:12:57 -07:00
Eric Fischer 8d67e460d4 Add --exclude-all to tile-join 2018-08-07 10:27:38 -07:00
Eric Fischer 5c881c11ef Merge pull request #620 from mapbox/wagyu-initializer
Upgrade to Wagyu 0.4.3
2018-08-06 13:30:24 -07:00
Eric Fischer baab0cef55 Increment version number 2018-08-06 12:25:22 -07:00
Eric Fischer 60629da37a Merge branch 'master' into wagyu-initializer 2018-08-06 10:15:20 -07:00
Eric Fischer 7221c7ba0d Merge pull request #624 from mapbox/trim-csv
Add "csv" to the list of suffixes to trim off of layer names
2018-08-02 10:05:19 -07:00
Eric Fischer c9cc12e7ff Add "csv" to the list of suffixes to trim off of layer names 2018-08-01 17:49:54 -07:00
Eric Fischer 4958c47abc Merge pull request #607 from mapbox/catch-all-exceptions-in-decode
decode: catch all exceptions
2018-08-01 16:31:59 -07:00
Eric Fischer 18e8bea18d Add a point visualization example. Always make -z the first option. 2018-08-01 15:21:58 -07:00
Eric Fischer 510df9e28f Add a cookbook section to the README 2018-08-01 14:52:30 -07:00
Eric Fischer bec1f41a4f Merge pull request #622 from mapbox/cluster-maxzoom
Take cluster distance into account when guessing a maxzoom
2018-08-01 13:54:47 -07:00
Eric Fischer 3fb833979e Take cluster distance into account when guessing a maxzoom 2018-08-01 13:14:14 -07:00
Eric Fischer c4cd7faaaa Workaround to make it compile on g++-4.8.4 2018-08-01 10:21:32 -07:00
Eric Fischer e9eca57393 Upgrade to Wagyu 0.4.3 2018-07-31 17:47:52 -07:00
Eric Fischer 796fa19729 Add missing initializer
Fixes https://github.com/mapbox/tippecanoe/issues/602
2018-07-31 16:54:42 -07:00
Eric Fischer 28ebec275a Merge pull request #616 from mapbox/antimeridian
Duplicate features within the buffer of the antimeridian on both sides
2018-07-30 15:06:11 -07:00
Eric Fischer 759bceb986 Duplicate features within the buffer of the antimeridian on both sides 2018-07-27 16:14:49 -07:00
Eric Fischer faa952ec7d Merge pull request #615 from mapbox/generate-ids
Add an option to automatically assign ids to features
2018-07-26 16:17:08 -07:00
Eric Fischer 6f295f29fc Add an option to automatically assign ids to features 2018-07-26 15:08:47 -07:00
Eric Fischer 50b1eadf87 Merge pull request #612 from mapbox/negative-shift
Don't guess a higher maxzoom than is allowed for manual selection
2018-07-25 11:59:36 -07:00
Eric Fischer 856c055857 Don't guess a higher maxzoom than is allowed for manual selection
If maxzoom + detail > 32, some geometric operations are undefined
2018-07-25 11:18:40 -07:00
Eric Fischer 206c75f0ab Merge pull request #604 from mapbox/per-feature-zoom-check
Require that per-feature maxzoom and minzoom be small integers
2018-07-19 15:25:05 -07:00
Eric Fischer 87a1bb7851 Add an option to treat empty CSV columns as nulls, not empty strings 2018-07-19 14:33:33 -07:00
Eric Fischer 3cb09d0e2a Add the ability to specify the file format with -L{"format":"…"} 2018-07-17 14:57:56 -07:00
Eric Fischer 07ab900393 Report decompression errors in tippecanoe-decode 2018-07-13 17:02:49 -07:00
Eric Fischer d1a0e495ce Require that per-feature maxzoom and minzoom be small integers
Also fixes a place in the Makefile that accidentally still used
CFLAGS instead of CXXFLAGS
2018-07-12 11:24:30 -07:00
Eric Fischer d64ac19f11 Merge pull request #591 from mapbox/attribute-filter
Add a filter extension to allow filtering individual attributes
2018-06-20 00:10:28 +02:00
Eric Fischer c2bb35e6ff Bump version number 2018-06-19 14:15:27 -07:00
Eric Fischer 262fbf26f0 Fix missing null pointer check 2018-06-19 13:10:58 -07:00
Eric Fischer 9dac499ab4 Consistently refer to attributes, not properties
Except when referring to their representation in GeoJSON
2018-06-18 14:34:10 -07:00
Eric Fischer 8d6bd4e10f Add a filter extension to allow filtering individual attributes 2018-06-18 11:26:22 -07:00
Eric Fischer 54983c7536 Merge pull request #588 from mapbox/less-codecov
Don't complain about coverage of the diff itself
2018-06-08 23:58:43 +02:00
Eric Fischer 4d8a3c6bdc Don't complain about coverage of the diff itself 2018-06-08 14:24:18 -07:00
Eric Fischer bc3d4c6a34 Merge pull request #587 from mapbox/tag-version
Include a generator field in tileset metadata with the Tippecanoe version
2018-06-08 19:10:12 +02:00
Eric Fischer 7f90ba5e1b Include version number in tile-join output too 2018-06-07 21:37:25 -07:00
Eric Fischer 4da6b932b3 Use "generator" instead of "creator". Silence another status message. 2018-06-07 15:17:58 -07:00
Eric Fischer b0229530ac Turn off progress indicators during tests
(For the sake of Travis's 4MB log limit)

Also fix a few places that logged progress even when told not to.
2018-06-07 13:27:49 -07:00
Eric Fischer 11c6c869aa Include a creator field in tileset metadata with the Tippecanoe version
Also finally eradicates binary diffs from the tests
2018-06-07 11:20:12 -07:00
Eric Fischer 9f1913bc37 Merge pull request #585 from mapbox/nulls-from-filter
Be careful not to allow null attributes from prefilter/postfilter output to make it into tiles
2018-06-06 12:57:03 -07:00
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