Skip to content

nzherald/mongodb-nz-census-geojson

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mongodb-nz-census-geojson

Import Census boundary GeoJSON into MongoDB

To run:

Edit the Bower dependencies in bower.json, i.e.:

"dependencies": {
  "nz_area_units_geojson":
"git@github.com:nzherald/nz_area_units_geojson.git#~1.0.0"
}

then bower install

then node index.js

Importing may take some time.

How does this work?

I've been using QGIS to export Census shapefiles as GeoJSON, and include a bower.json component definition. This script assumes a naming structure of nz_[type of area]_geojson/geojson/*.json.

For example: Area Units

Why is there a geojson folder inside the repo?

Because Github truncates large file lists.

Why would anyone want to use this?

If you use MongoDB and want to do spatial queries, this can be useful.

Contribution

Pull requests are welcome!

About

Import Census boundary GeoJSON into MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published