This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<changeset id="24488986" created_at="2014-08-01T21:15:43Z" num_changes="7" closed_at="2014-08-01T21:15:46Z" open="false" min_lon="-51.6918244" min_lat="-17.9153409" max_lon="-50.8387448" max_lat="-17.7868930" user="RichRico" uid="2219338"> | |
<changeset id="24490392" created_at="2014-08-01T22:50:40Z" num_changes="550" closed_at="2014-08-01T22:51:00Z" open="false" min_lon="-50.9648479" min_lat="-17.8352438" max_lon="-50.8896120" max_lat="-17.7464578" user="RichRico" uid="2219338"> | |
<changeset id="24500776" created_at="2014-08-02T16:16:48Z" num_changes="142" closed_at="2014-08-02T16:16:55Z" open="false" min_lon="-51.6934377" min_lat="-17.9161388" max_lon="-50.8378120" max_lat="-17.7863572" user="RichRico" uid="2219338"> | |
<changeset id="24507764" created_at="2014-08-03T01:32:53Z" num_changes="489" closed_at="2014-08-03T01:33:10Z" open="false" min_lon="-50.9211558" min_lat="-17.8213056" max_lon="-50.9039123" max_lat="-17.7883952" user="RichRico" uid="2219338"> | |
<changeset id="24507815" created_at="2014-08 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<changeset id="18635142" created_at="2013-10-31T13:41:22Z" num_changes="3240" closed_at="2013-10-31T13:44:10Z" open="false" min_lon="-74.1009278" min_lat="40.6420443" max_lon="-74.0875396" max_lat="40.6463653" user="Rub21_nycbuildings" uid="1781294"> | |
<changeset id="18635649" created_at="2013-10-31T14:07:30Z" num_changes="4718" closed_at="2013-10-31T14:12:08Z" open="false" min_lon="-74.0945631" min_lat="40.6367196" max_lon="-74.0876124" max_lat="40.6444021" user="Rub21_nycbuildings" uid="1781294"> | |
<changeset id="18635998" created_at="2013-10-31T14:25:00Z" num_changes="542" closed_at="2013-10-31T14:39:24Z" open="false" min_lon="-74.0998658" min_lat="40.6419000" max_lon="-74.0952424" max_lat="40.6443846" user="Rub21_nycbuildings" uid="1781294"> | |
<changeset id="18636280" created_at="2013-10-31T14:45:26Z" num_changes="1098" closed_at="2013-10-31T14:46:15Z" open="false" min_lon="-74.1008250" min_lat="40.6419168" max_lon="-74.0950616" max_lat="40.6447748" user="Rub21_nycbuildings" uid="1781294"> | |
<change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<changeset id="24489436" created_at="2014-08-01T21:45:33Z" num_changes="108" closed_at="2014-08-01T21:45:39Z" open="false" min_lon="-51.2117132" min_lat="-19.6970992" max_lon="-51.1557345" max_lat="-19.6560368" user="dannykath" uid="2226712"> | |
<changeset id="24489664" created_at="2014-08-01T21:59:54Z" num_changes="66" closed_at="2014-08-01T21:59:57Z" open="false" min_lon="-51.1774155" min_lat="-19.6920981" max_lon="-51.1639054" max_lat="-19.6829648" user="dannykath" uid="2226712"> | |
<changeset id="24490067" created_at="2014-08-01T22:24:12Z" num_changes="78" closed_at="2014-08-01T22:24:16Z" open="false" min_lon="-51.2117705" min_lat="-19.6977279" max_lon="-51.1554339" max_lat="-19.6564592" user="dannykath" uid="2226712"> | |
<changeset id="24490196" created_at="2014-08-01T22:32:32Z" num_changes="10" closed_at="2014-08-01T22:32:35Z" open="false" min_lon="-51.1908876" min_lat="-19.6938007" max_lon="-51.1757488" max_lat="-19.6790479" user="dannykath" uid="2226712"> | |
<changeset id="24490301" created_at="2014 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<changeset id="19062966" created_at="2013-11-22T21:30:19Z" num_changes="3698" closed_at="2013-11-22T21:33:26Z" open="false" min_lon="-74.2125187" min_lat="40.5315147" max_lon="-74.2027189" max_lat="40.5415901" user="ediyes_nycbuildings" uid="1815736"> | |
<changeset id="19109713" created_at="2013-11-25T13:40:12Z" num_changes="0" closed_at="2013-11-25T14:40:12Z" open="false" user="ediyes_nycbuildings" uid="1815736"> | |
<changeset id="19109717" created_at="2013-11-25T13:40:23Z" num_changes="3278" closed_at="2013-11-25T13:43:19Z" open="false" min_lon="-74.2062019" min_lat="40.5315878" max_lon="-74.1953735" max_lat="40.5409980" user="ediyes_nycbuildings" uid="1815736"> | |
<changeset id="19110083" created_at="2013-11-25T14:00:50Z" num_changes="3756" closed_at="2013-11-25T14:04:13Z" open="false" min_lon="-74.2070397" min_lat="40.5388260" max_lon="-74.1963492" max_lat="40.5472598" user="ediyes_nycbuildings" uid="1815736"> | |
<changeset id="19110215" created_at="2013-11-25T14:09:21Z" num_changes="3111" closed_at="20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osmium = require('osmium'); | |
levelup = require('levelup'); | |
var db = levelup('./test.ldb'); | |
var count = 0; | |
var reader = new osmium.Reader(process.argv[2], { | |
'node': true | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osmium = require('osmium'); | |
levelup = require('levelup'); | |
var db = levelup('./' + (process.argv[3] || 'test.ldb')); | |
var count = 0; | |
var batch = []; | |
var batchSize = 100000; | |
var reader = new osmium.Reader(process.argv[2], { | |
'node': true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osmium = require('osmium'); | |
if (process.stdin.isTTY) { | |
if (process.argv[2] === undefined) { | |
return console.log('specify a file: `node relevant.js [file].osc` or a list of files: `ls *.osc | node relevant.js`'); | |
} | |
console.log(process.argv[2]); | |
relevant(process.argv[2]); | |
} else { | |
process.stdin.on('readable', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var osmium = require('osmium'); | |
var users = {}; | |
var reader = new osmium.Reader(process.argv[2], { | |
'node': true, | |
'way': true, | |
'relation': true | |
}); | |
var handler = new osmium.Handler(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just store the coordinates of every node | |
var osmium = require('osmium'), | |
levelup = require('levelup'), | |
args = require('minimist')(process.argv.slice(2)); | |
var db; | |
var reader; | |
var batch = []; | |
var batchSize = args.batch || 50000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// just store the coordinates of every node | |
var osmium = require('osmium'), | |
levelup = require('levelup'), | |
args = require('minimist')(process.argv.slice(2)); | |
var db; | |
var reader; | |
var batch = []; | |
var batchSize = args.batch || 50000; |