modified addgeo command

This commit is contained in:
Sam
2021-01-21 13:45:56 +00:00
parent 830a056cf8
commit 984bea0038
2 changed files with 34 additions and 13 deletions

View File

@@ -5,7 +5,7 @@ This README aims to document functionality of backend as well as required steps
## Table of Contents
- [First Steps](#first-steps)
- [Location Data](#location-data)
## First Steps
@@ -22,15 +22,14 @@ python migrate
- Start server in development mode: `python manage.py runserver`
## Load Geo data
Import geodata
## Location data
To load initial location data use: `python manage.py addgeo`
```python
import os
from geo.models import Region
from django.contrib.gis.geos import GeometryCollection, GEOSGeometry
from django.contrib.gis.geos import GEOSGeometry, MultiPolygon
import json
from django.contrib.gis.geos import MultiPolygon
path='gadm36_ESP_1.json'