Skip to content
Snippets Groups Projects
Commit bd0b6542 authored by evana's avatar evana
Browse files

Upload New File

parent 8c6b51cd
No related branches found
No related tags found
1 merge request!10Patch 2
import couchdb
import json
couch = couchdb.Server('http://172.26.133.58:5984')
couch.resource.credentials = ("admin", "admin")
if 'housing-sa4' not in couch:
db = couch.create('housing-sa4')
db = couch['housing-sa4']
json_data = json.load(open('vic1.json'))
for feature in json_data['features']:
db.save(feature)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment