Commit Graph

305 Commits

Author SHA1 Message Date
Andrew Pendleton 4474634452 Improve error handling for geocoderDataIterator 2016-04-14 13:32:38 -04:00
Andrew Pendleton d3845ea9f9 Add test of geocoderDataIterator 2016-04-14 13:24:27 -04:00
Andrew Pendleton b6ef79d7dc I give up: setImmediate for every callback 2016-04-04 13:16:52 -04:00
Andrew Pendleton b37655577f Increase the frequency of calling setImmediate in the geocoderDataIterator function 2016-04-04 10:49:34 -04:00
Andrew Pendleton 11b6381c4f Another attempt at avoiding overflowing the callstack on geocoderDataIterator: every tenth time we call a callback, call it via setImmediate to reset the stack 2016-04-01 01:16:01 -04:00
Andrew Pendleton 3967adcb4a Avoid callstack loop by making sure only one geocoder data iterator buffer-flush operation is happening at once 2016-03-30 01:10:20 -04:00
Andrew Pendleton aac15a8f81 Ditch geocoderDataForEach (it's a memory hog) and instead go with an async iterator method with an internal buffer, implemented around sqlite limits, to give caller more control over reads 2016-03-17 17:55:34 -04:00
Andrew Pendleton 3c7f5c8462 And infrastructure for iterating over geocoder data 2016-03-05 17:12:17 -05:00
Tom MacWright 2c6077968b Add eslint 2016-02-09 15:44:32 -05:00
Young Hahn a7309ef786 0.8.2 2015-10-29 16:11:24 -04:00
Young Hahn f5b7320a19 Merge pull request #60 from mapbox/geocoder-err-handling
Handle table not found error in getGeocoderData
2015-10-29 16:10:41 -04:00
Young Hahn f4f5b473a5 Cleanup after test 2015-10-29 15:43:16 -04:00
Young Hahn 86ba2021fd Handle missing table errors gracefully in getGeocoderData 2015-10-29 15:39:04 -04:00
Young Hahn da3c7327de Add (failing) test to show getGeocoderData handles missing table gracefully 2015-10-29 15:37:05 -04:00
Dane Springmeyer 7f0f04f7d7 bump to v0.8.1 2015-10-14 08:42:29 -07:00
Dane Springmeyer 92f92c1b17 Merge pull request #59 from mapbox/node-4
Test on node 0.12.x and 4.x
2015-10-14 08:41:53 -07:00
Dane Springmeyer 3bef36ff89 test on node 0.12.x and 4.x 2015-10-14 08:37:10 -07:00
Dane Springmeyer 57bfed6234 loosen requirement for node-sqlite3 to allow for 3.1.x with node 4.x support - refs #58 2015-10-14 08:19:51 -07:00
Dane Springmeyer f499639ec7 node-sqlite3@3.0.10 is out, kick travis to run tests 2015-08-06 10:17:55 -07:00
Dane Springmeyer ede6021c55 node-sqlite3@3.0.6 is out, kick travis to run tests 2015-05-04 14:46:34 -07:00
Ryan Clark 65555823e7 v0.8.0 2015-04-23 16:51:57 -07:00
Ryan Clark 88b6683f20 Merge pull request #55 from mapbox/zxy-tiles-only
Only list map records that include tile data in ZXYStream()
2015-04-23 16:49:20 -07:00
Ryan Clark b1b7b00d62 only list map records that include tile data in ZXYStream() 2015-04-23 15:44:07 -07:00
Ryan Clark 96bf4872ac v0.7.9 2015-03-09 22:39:47 -04:00
Ryan Clark 6263288057 Merge pull request #54 from mapbox/finalize
Finalize prepared statement in zxystream
2015-03-09 22:37:20 -04:00
Ryan Clark 60121958ca test that fails without finalized statement 2015-03-09 22:22:16 -04:00
Ryan Clark 869de1ebb5 finalize prepared statement in zxystream 2015-03-09 22:15:11 -04:00
Young Hahn dc6419d80f 0.7.8 2015-01-16 17:08:33 -05:00
Young Hahn 89f2791711 Merge pull request #51 from mapbox/zxystream-statement
Prepared statement rather than batch/offset for zxystream
2015-01-16 17:08:11 -05:00
Young Hahn 62831d95bb Retain batch concept and return lines in groups of 1000 2015-01-16 13:22:41 -05:00
Young Hahn ea292f20c9 Used prepared statement rather than batch/offset for zxystream. 2015-01-16 12:54:59 -05:00
Ryan Clark f912cc5d05 v0.7.7 2015-01-05 11:33:22 -05:00
Ryan Clark d8ab33480b Merge pull request #50 from mapbox/iteration
Error handling in async loop
2015-01-05 11:31:52 -05:00
Ryan Clark 5e8f1375f5 error handling in async loop 2015-01-05 10:32:10 -05:00
Will White 18a9d50e2f v0.7.6 2014-12-13 11:26:33 -05:00
Will White a8fee8bfd9 Merge pull request #49 from mapbox/multi-index
Query from `map` table with more than one index.
2014-12-13 11:25:39 -05:00
Will White aa5f688407 Query from map table with more than one index.
mbtiles files often have two indexes on the map table. This doesn't
impact our ability to do an optimized query against it for ZXYStream.
2014-12-13 11:13:13 -05:00
Young Hahn b09e1eb2b6 0.7.5 2014-12-10 16:32:52 -05:00
Young Hahn b720f77eeb Merge pull request #47 from mapbox/zxystream-use-index
Use map table + map index if present for zxystream
2014-12-10 16:32:00 -05:00
Young Hahn 3c0369a2ce Merge branch 'appveyor-debug' into zxystream-use-index 2014-12-10 03:11:59 -05:00
Young Hahn edf6bfbb36 What now appv. 2014-12-10 03:10:19 -05:00
Young Hahn 067db2ce70 Sketch of using map table + map index if present for zxystream. 2014-12-10 03:07:32 -05:00
Will White bdfa6a65a4 v0.7.4 2014-11-18 12:59:52 -05:00
Will White 6216454a28 Merge pull request #46 from mapbox/null-tile
Detect null or non-buffer tile
2014-11-18 12:59:14 -05:00
Will White 9ce7d7381e Detect null or non-buffer tile. 2014-11-18 12:55:58 -05:00
Young Hahn 881fa9d315 0.7.3 2014-11-13 10:53:58 -05:00
Young Hahn 7a24f11cc6 Merge pull request #45 from mapbox/space-in-path-fix
fix error when mbtiles path contains a space
2014-11-13 10:53:12 -05:00
Young Hahn bcf0b2d40b Merge branch 'test-spaces' into space-in-path-fix 2014-11-13 09:17:03 -05:00
Young Hahn d7e02a5a2a Add (failing) test for spaces. Refs #45. 2014-11-13 09:13:39 -05:00
Tom Lee 9e0c85b03c fix error when mbtiles path contains a space
root cause is that qs.parse() unescapes URL components while url.parse() does not.
https://groups.google.com/forum/#!topic/nodejs/8P7GZqBw0xg
http://nodejs.org/api/querystring.html#querystring_querystring_unescape
2014-11-12 18:58:27 -05:00