This example ingests building footprints created and released by Microsoft. The data is licensed under the Open Data Commons Open Database License.
- Install GDAL >=2.4 (ex. MacOs:
brew install gdal
) - Install Node.js
- Configure the client node and api key in index.js
- To ingest all 50 US states, type
make
. - To ingest only one state, type
make <statename>
(examplemake RhodeIsland
). Note, the availablestatename
parameters are listed in the Makefile.
The make
command will download and parse the specified state(s) GeoJSON file(s) into newline delimited GeoJSON features. Each feature geometry is simplified and repaired to be compatible with Elasticsearch (OGR SimpleFeature Specification). A ms-buildings
index is automatically created and features are streamed into Elasticsearch.
WARNING: make clean
will remove all downloaded files and delete the Elasticsearch index