Commit Graph

198 Commits

Author SHA1 Message Date
Eric Fischer
2d625d5807 Pass through any non-ASCII characters from file names into layer names
The Docker build doesn't include proper locale support
2018-02-07 13:15:36 -08:00
Eric Fischer
17942b3a89 Add an option to produce only a single tile 2018-02-06 17:25:58 -08:00
Eric Fischer
7ab94d43c6 Preserve non-ASCII characters when making layernames from filenames 2018-02-06 17:22:26 -08:00
Eric Fischer
8726366a4c Remember to close the input file after CSV parsing too 2018-02-06 16:23:44 -08:00
Eric Fischer
2e5b597ca1 Add --coalesce-fraction-as-needed and --coalesce-densest-as-needed 2018-02-06 14:39:05 -08:00
Eric Fischer
8fa5a5ff87 Report distances in both feet and meters 2018-02-06 12:15:24 -08:00
Eric Fischer
8e7b22cf1b Close input files that were being left open after parallel reading 2018-02-06 12:02:23 -08:00
Eric Fischer
aaf08a6c55 Add an option to specify the clustering distance directly 2017-12-20 17:33:30 -08:00
Eric Fischer
b03dabe098 Add an option for clustering features 2017-12-14 14:30:08 -08:00
Eric Fischer
f3e6afa4e9 Basic geographic CSV parsing 2017-12-05 17:18:19 -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
621e0afc3c Merge branch 'more-warnings' into rate-clarify 2017-11-17 11:21:01 -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
2d87059a04 Some more constructors 2017-11-10 13:59:57 -08:00
Eric Fischer
069807caf4 Use a proper constructor, discover two unused fields 2017-11-10 13:06:47 -08:00
Eric Fischer
0152db4a20 More initializers 2017-11-07 15:57:56 -08:00
Eric Fischer
ba62ab8596 More structure initializers 2017-11-07 15:20:17 -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
be922702ce Experiment with coalescing features to reduce tile size 2017-10-06 18:01:08 -07:00
Eric Fischer
8d502eb805 Fix memory leak 2017-09-01 16:41:01 -07:00
Eric Fischer
0fd4454129 Allow filter expressions during tippecanoe as well as during tile-join 2017-09-01 11:51:12 -07:00
Eric Fischer
223d837736 Multithreaded geobuf feature parsing 2017-08-31 13:54:04 -07:00
Eric Fischer
a5b1378d1a Minimize external dependencies for Geobuf testing 2017-08-30 15:32:36 -07:00
Eric Fischer
7c031a9796 Memory-map geobuf input instead of reading it into a temporary string 2017-08-28 11:30:30 -07:00
Eric Fischer
75be013059 Start on geobuf parsing 2017-08-25 14:56:03 -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
f4818ffb07 Move attribute include/exclude logic into serialization 2017-08-24 17:10:15 -07:00
Eric Fischer
34b1b215f4 Move tilestats management out of parsing and into serialization 2017-08-24 16:30:01 -07:00
Eric Fischer
ed8fbd0236 Split more serialization details out from being parsing parameters 2017-08-24 15:57:33 -07:00
Eric Fischer
6caf20b9c8 Put the pieces back together 2017-08-23 11:43:48 -07:00
Eric Fischer
6cea2d5db6 Progress on factoring out serialization state into a single object 2017-08-22 18:10:52 -07:00
Eric Fischer
f0b32cf710 Merge branch 'master' into geobuf 2017-08-22 16:21:03 -07:00
Eric Fischer
372194cee9 Add an option not to produce tilestats 2017-08-15 10:35:41 -07:00
Eric Fischer
b1620f6c59 Work on factoring out serial_feature 2017-08-15 10:25:11 -07:00
Eric Fischer
23a4ed8754 Merge branch 'master' into geobuf 2017-08-10 10:28:17 -07:00
Eric Fischer
635429cd87 Fix dangling pointer. Defer tilestats generation until tiling if filtering. 2017-08-08 13:38:48 -07:00
Eric Fischer
c79f19e3ca Merge branch 'master' into plugins 2017-08-08 11:08:10 -07:00
Eric Fischer
fa0e38da2b First stages of geobuf support 2017-08-08 10:31:26 -07:00
Eric Fischer
9ec52f2c90 Merge branch 'master' into tilestats 2017-07-21 13:08:33 -07:00
Eric Fischer
54cbc570f1 Don't write to a directory that contains an existing tileset.
The -f option will clear the directory now, as with mbtiles.
2017-07-20 14:17:09 -07:00
Eric Fischer
97d0b2a1b5 Retain attributes in alphabetical order, for consistency 2017-07-19 16:40:06 -07:00
Eric Fischer
ba82ef8274 Complain if the output file or directory is specified more than once 2017-07-18 14:11:48 -07:00
Eric Fischer
18f9a8dbb7 Close mbtiles properly when exiting because there are no features 2017-07-18 09:54:59 -07:00
Eric Fischer
71f57793fd Derive tilejson attribute types from sample attribute values 2017-07-17 17:31:46 -07:00
Eric Fischer
b1771a3365 Make layer attributes a map to sample values 2017-07-17 11:58:37 -07:00
Eric Fischer
65c095cc2b Clean up #includes and add fields for counting attributes 2017-07-14 16:56:23 -07:00
Eric Fischer
04d0cc6fa1 Merge branch 'master' into plugins 2017-07-06 22:28:35 -07:00
Eric Fischer
cf3a0800b8 Add an option to increase maxzoom if features are still being dropped 2017-05-31 10:47:34 -07:00
Eric Fischer
c7d146ea48 Don't do work for guessing maxzoom unless needed. Add a better test. 2017-05-30 16:58:56 -07:00
Eric Fischer
331707f88a Better maxzoom guessing by considering resolution within features 2017-05-30 13:28:25 -07:00
Eric Fischer
f9f57ebb3f Merge branch 'master' into plugins 2017-05-04 10:19:32 -07:00
Eric Fischer
acdb5b72db Fix RFC 8142 support: Don't try to split *all* memory mapped files 2017-05-01 15:27:55 -07:00
Eric Fischer
a0234923b7 Merge branch 'master' into plugins 2017-05-01 11:43:05 -07:00
Eric Fischer
63e0c89c4b Support RFC 8142 GeoJSON text sequences 2017-04-28 16:39:16 -07:00
Eric Fischer
5a8bfa23a4 Merge branch 'master' into plugins 2017-04-21 16:18:00 -07:00
Eric Fischer
569fd97475 Also generate the string of option letters instead of writing it again 2017-04-21 13:56:40 -07:00
Eric Fischer
6c7a52147b Organize usage output the same way as in the README 2017-04-21 13:48:39 -07:00
Eric Fischer
7dc586bc84 Merge branch 'master' into plugins 2017-04-17 16:01:12 -07:00
Eric Fischer
178b5d0054 Add -T option to coerce the types of feature attributes 2017-04-17 15:20:03 -07:00
Eric Fischer
242a657fc1 Fix array bounds error caught by -fsanitize=address 2017-04-13 14:23:43 -07:00
Eric Fischer
510247c2fb Add -zg option to automatically choose an appropriate maxzoom 2017-04-13 14:17:15 -07:00
Eric Fischer
94a15eaf85 Merge branch 'master' into plugins 2017-04-07 14:28:58 -07:00
Eric Fischer
f558b78380 Include tileset metadata when writing either to directory or mbtiles 2017-04-07 13:25:05 -07:00
Eric Fischer
1c1ae6a8be Update documentation and reduce use of global variables 2017-04-07 12:36:34 -07:00
Shan-Chun Kuo
b66ab10252 Add algorithms library 2017-04-07 17:03:30 +01:00
Shan-Chun Kuo
682a272f91 Add condition to prevent options -o and -e being used together 2017-04-07 16:24:29 +01:00
Shan-Chun Kuo
a320248857 Do make indent, add flag --output-to-directory or -e to write pbf files to a directory, also add flag --no-tile-compression or -pC to get raw protobuf 2017-04-07 13:33:01 +01:00
Shan-Chun Kuo
f03b89656c Seperated out to method and added test for --raw-tiles 2017-04-05 15:59:37 +01:00
Shan-Chun Kuo
aee12ac1fe Add flag --raw-tiles or -pC to get raw protobuf 2017-04-05 00:34:54 +01:00
Eric Fischer
7d47226444 Merge branch 'master' into plugins 2017-03-28 16:42:22 -07:00
Eric Fischer
1362ac448f Add --description option to set mbtiles description 2017-03-21 11:07:15 -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
eaff7b93c5 Merge branch 'master' into plugins 2017-03-15 16:19:33 -07:00
Eric Fischer
ea77e3db6f Add --detect-longitude-wraparound option 2017-03-15 13:37:50 -07:00
Eric Fischer
9cbbc4c68d Merge branch 'master' into plugins-merge 2017-03-02 10:45:25 -08:00
Eric Fischer
218a2fc75e Clean up layer name handling to fix layer merging crash 2017-02-20 16:19:34 -08:00
Eric Fischer
55e7e20a73 Add a check for environmental variable TIPPECANOE_MAX_THREADS 2017-02-17 16:47:21 -08:00
Eric Fischer
9c1f2b2123 Guard against potentially rounding to 0 when choosing sorting unit 2017-02-17 14:14:55 -08:00
Eric Fischer
71ac6596af Warn about broken pipes in filters instead of exiting abruptly 2016-12-21 10:10:22 -08:00
Eric Fischer
854dc2bca5 Merge branch 'master' into plugins 2016-12-20 14:15:06 -08:00
Eric Fischer
6a2e80769e Choose a deeper initial tile than 0/0/0 if one contains all the features 2016-12-16 12:22:38 -08:00
Eric Fischer
c2fa8e3633 Switch the segment and layer ID based on prefilter output 2016-12-12 17:00:45 -08:00
Eric Fischer
d1dc310bbc The GeoJSON-producing part of prefiltering 2016-12-08 15:13:38 -08:00
Eric Fischer
5960a15fcd Add magic #defines to avoid default small Mac stdio limits 2016-12-08 12:33:02 -08:00
Eric Fischer
5554b9cbba Add the command-line option to specify the filter 2016-12-07 12:15:57 -08:00
Eric Fischer
87d86ecfc9 Set close-on-exec flag for most file descriptors 2016-12-07 10:57:56 -08:00
Eric Fischer
72478ae13e Be more consistent about checking for errors from close() 2016-12-06 17:19:22 -08:00
Eric Fischer
0db8d9ed8b Option to snap low zooms to a stairstep grid 2016-11-28 15:45:38 -08:00
Eric Fischer
bedace67e7 Remove --merge-polygons-as-needed until it works well. Bump version. 2016-11-21 13:36:31 -08:00
Eric Fischer
e9aa8c1b7d Add an option to prevent tiny polygon reduction 2016-11-21 11:26:37 -08:00
Eric Fischer
dc9e68b128 Make feature-dropping option names a little more consistent 2016-11-17 12:40:11 -08:00
Eric Fischer
32aa653082 Don't spend geometry space on index or extent unless it is needed 2016-11-11 17:37:46 -08:00
Eric Fischer
013e6512b4 Add an option to drop the smallest features to make tiles small enough 2016-11-09 17:09:05 -08:00
Eric Fischer
38ce49d2d4 Another option for plain fractional dropping, but across the whole zoom 2016-11-04 12:26:13 -07:00
Eric Fischer
ee48be26e0 Rename -k to -M before I regret that the unit for it is not kilobytes 2016-11-04 11:15:53 -07:00
Eric Fischer
10fc9254d1 Add an option to discover the minimum workable gap between features 2016-10-25 16:28:32 -07:00
Eric Fischer
2798bf7b6f Add an option to merge adjacent polygons together to reduce tile size 2016-10-24 17:22:07 -07:00
Eric Fischer
f32916c472 Tests of the three current strategies for reducing tile size 2016-10-24 15:33:14 -07:00