pelias / whosonfirst

Importer for Who's on First gazetteer
MIT License
27 stars 43 forks source link

allow the sqlite_extract_data util to extract the entire contents of the database #429

Closed missinglink closed 5 years ago

missinglink commented 5 years ago

The utils/sqlite_extract_data.js script can be used to extract the contents of a WOF sqlite database to disk. It creates the correct directory structure, writes the geojson files and generates the meta files to emulate the format used by bundles.

Prior to this PR the script would only work when used with the whosonfirst.importPlace config option. This PR adds the ability to omit whosonfirst.importPlace and extract the entire contents of the database to disk.

missinglink commented 5 years ago

Tested with whosonfirst.importPlace unset and set, works great.

missinglink commented 5 years ago

Build passed https://travis-ci.org/pelias/whosonfirst/builds/508346809