Add Christchurch Zone model and shapefile ingestion
This commit is contained in:
parent
77135650cf
commit
8f63a917e0
5 changed files with 55 additions and 1 deletions
23
backend/right_tree/api/migrations/0010_christchurchzone.py
Normal file
23
backend/right_tree/api/migrations/0010_christchurchzone.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 3.2.8 on 2021-11-30 00:40
|
||||
|
||||
import django.contrib.gis.db.models.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0009_alter_plant_options'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ChristchurchZone',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('objectid', models.IntegerField()),
|
||||
('name', models.CharField(max_length=25)),
|
||||
('geom', django.contrib.gis.db.models.fields.MultiPolygonField(srid=2193)),
|
||||
],
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue