Commit Graph

98 Commits

Author SHA1 Message Date
Will White
342f582c21 Be less strict when reading metadata.
If the metadata table or the requested field is
missing return null and allow the caller handle it.
2012-08-16 09:29:32 -04:00
Young Hahn
c8e817517c Merge branch 'nodupe' 2012-04-30 18:43:19 -04:00
Young Hahn
ff5b8f7a9b Run clearCaches synchronously to prevent _commit from erroring out when called prior to startWriting completing. 2012-04-30 13:06:46 -04:00
Young Hahn
3cc112ce6c Remove putDuplicate*. 2012-04-30 02:11:13 -04:00
Young Hahn
84c5fba64f Cleanup putTile/Grid and ensure zlib.deflate has completed before callback in putGrid. 2012-04-30 02:09:47 -04:00
Dane Springmeyer
f4dd13bcb3 add putDuplicateGrid 2012-04-29 13:34:37 -04:00
Dane Springmeyer
3507ac4a07 ensure keys are strings before inserting into sqlite - closes #20 2012-04-20 14:40:17 -07:00
Young Hahn
c6c1a3f20e try/catch around JSON parse in #getGrid. 2012-04-04 23:34:07 -04:00
Will White
25c2a99d72 Return empty hash from list if directory doesn't exist.
Conflicts:

	test/list.test.js
2012-04-02 15:13:28 -04:00
Young Hahn
cba3ef5d1e Remove copyResume method. 2012-03-10 18:40:02 -05:00
Young Hahn
393acc38a2 data.id => data.key. 2012-03-10 14:30:54 -05:00
Konstantin Käfer
c7c4304567 add putDuplicateTile function 2012-03-08 21:56:57 +01:00
Young Hahn
95c740e7ee Merge. 2012-03-07 05:02:20 -05:00
Young Hahn
b5cbaf8cb1 Merge. 2012-03-07 04:55:26 -05:00
Dane Springmeyer
1190695bf3 port to >= node-v6 2012-03-06 18:04:26 -08:00
Dane Springmeyer
a7bb5d06bc Merge branch 'master' of github.com:mapbox/node-mbtiles into skipblank 2012-03-06 17:56:23 -08:00
Konstantin Käfer
6c5047843d add close method 2012-03-05 16:18:42 +01:00
Young Hahn
cca4271aa3 Move setup step to #startWriting method. 2012-02-24 17:15:50 -05:00
Ian Ward
db5fc04e0d send content-type, last-modified, etag headers w/ grids, not just tiles 2012-02-06 11:42:04 -05:00
Ian Ward
41d42ad32e last-modified header should be in rfc2822 format 2012-02-06 10:40:27 -05:00
Young Hahn
d02632b3a2 Use passed id in putGrid. 2012-02-01 15:39:26 -05:00
Young Hahn
2e4bc80217 Update resume to only return coords. Tilelive API no longer requires copied count. 2012-01-29 14:29:49 -05:00
Young Hahn
9c9fcdfaf9 Fix resume start point. 2012-01-27 18:08:24 -05:00
Young Hahn
aee58b0a2b Support copy resume. 2012-01-26 16:47:19 -05:00
Young Hahn
c0739bfa0c Allow tilelive to pass in tile id. Prepares for delegation of dupe/id detection entirely to tilelive. 2012-01-25 00:09:03 -05:00
Young Hahn
236745daf0 Aggressive performance opts. 2012-01-22 17:29:30 -05:00
Dane Springmeyer
6f24e083c5 remove commented old zlib code 2012-01-03 16:35:46 -08:00
Dane Springmeyer
1fa4501765 fix silly scope issue 2012-01-03 16:20:34 -08:00
Dane Springmeyer
90b35f65ef switch to using native zlib, inflate works, odd test failures for deflate 2011-12-01 14:43:32 -08:00
Dane Springmeyer
970330575d update to node v06 compatible deps 2011-11-18 17:45:01 -08:00
Young Hahn
599c519447 Remove memory cache, file watcher. 2011-11-10 15:26:47 -05:00
Young Hahn
2ea555e5dc Don't run _getInfo in constructor. 2011-11-10 00:42:03 -05:00
Young Hahn
7d430f77e5 Use persistent:false on watchFile to allow tests to exit. 2011-10-31 02:40:47 -04:00
Tom MacWright
3ba458a58d 0.1.14 tag with template key 2011-10-12 17:14:56 -04:00
Will White
12a2b6ab31 Doh. Only delete from cache if there is an error. 2011-10-06 11:57:28 -04:00
Will White
d546f64668 Don't cache mbtiles that we can't open. 2011-10-06 11:35:38 -04:00
Konstantin Käfer
411c92c304 Revert "cache file access"
This reverts commit fde3538493.

Conflicts:

	lib/directoryindex.js
2011-09-22 17:02:08 +02:00
Konstantin Käfer
fb30fb0ee5 fix hang after previous request failed 2011-09-20 22:45:23 +02:00
Konstantin Käfer
1b5b66e760 cache mbtiles info 2011-09-20 17:33:26 +02:00
Konstantin Käfer
fde3538493 cache file access 2011-09-20 16:58:51 +02:00
Konstantin Käfer
d3145213aa prevent maxlisteners error
we only attach with .once() and always .emit(). Debugging as shown that
there are no "memory leaks" with listeners being added infinitely.
2011-09-14 21:13:16 +02:00
Will White
0fad3c0724 Revert "Add toString method."
This reverts commit 804aabae74.
2011-08-31 14:21:17 -04:00
Will White
083c7bb25c Fix error handling for corrupt MBTiles. 2011-08-29 18:51:20 -04:00
Will White
856c83993c Delete center if center zoom is NaN. 2011-08-26 13:34:06 -04:00
Will White
804aabae74 Add toString method. 2011-08-25 23:29:01 -04:00
Young Hahn
c2b27463ed Add legend, attribution to allowed keys for metadata. 2011-08-02 22:23:11 -04:00
Konstantin Käfer
ad1f87512f cast to number 2011-07-26 15:56:07 +02:00
Konstantin Käfer
0c177e1c35 make the batchsize configurable 2011-07-26 15:54:57 +02:00
Konstantin Käfer
e60dd402a6 Another bug found by @yhahn that lead to comitting too often 2011-07-26 15:44:39 +02:00
Konstantin Käfer
44e9c7ebf7 also set _pending to 0 to prevent calling COMMIT too frequently 2011-07-26 13:53:25 +02:00