Beispiel #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0006_auto_20180117_0717'),
    ]

    operations = [
        migrations.AlterField(
            model_name='analyze',
            name='result',
            field=models.FileField(
                blank=True,
                help_text='Select the result file(.tif).',
                max_length=300,
                upload_to=cropdetection.models.analyze_upload_dir),
        ),
        migrations.AlterField(
            model_name='shapefile',
            name='shape_file',
            field=models.FileField(
                help_text='Select the shape file.',
                max_length=300,
                upload_to=cropdetection.models.shape_files_upload_dir),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0015_auto_20180207_0732'),
    ]

    operations = [
        migrations.AddField(
            model_name='analyze',
            name='result_image_1',
            field=models.FileField(
                blank=True,
                max_length=300,
                null=True,
                upload_to=cropdetection.models.analyze_upload_dir),
        ),
        migrations.AddField(
            model_name='analyze',
            name='result_image_2',
            field=models.FileField(
                blank=True,
                max_length=300,
                null=True,
                upload_to=cropdetection.models.analyze_upload_dir),
        ),
    ]
Beispiel #3
0
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0014_analyze_color_map'),
    ]

    operations = [
        migrations.AlterField(
            model_name='analyze',
            name='result',
            field=models.FileField(
                blank=True,
                help_text='Select the result file(.tif).',
                max_length=300,
                null=True,
                upload_to=cropdetection.models.analyze_upload_dir),
        ),
        migrations.AlterField(
            model_name='calendar',
            name='comment',
            field=models.TextField(blank=True,
                                   help_text='any more comment?',
                                   max_length=1000,
                                   null=True),
        ),
    ]
Beispiel #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0003_auto_20180115_1239'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='analyze',
            name='result',
        ),
        migrations.AddField(
            model_name='analyze',
            name='result_s1',
            field=models.FileField(blank=True, help_text='Select the result file(.tif).', upload_to=cropdetection.models.analyze_upload_dir),
        ),
        migrations.AddField(
            model_name='analyze',
            name='result_s2',
            field=models.FileField(blank=True, help_text='Select the result file(.tif).', upload_to=cropdetection.models.analyze_upload_dir),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0001_initial'),
    ]

    operations = [
        migrations.AlterField(
            model_name='band',
            name='band',
            field=models.FileField(help_text='Select band file(.tif).', max_length=300, upload_to=cropdetection.models.band_upload_dir),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0012_auto_20180127_0655'),
    ]

    operations = [
        migrations.AlterField(
            model_name='analyze',
            name='input_path',
            field=models.FileField(
                help_text='Select input path file directory(.txt).',
                max_length=300,
                upload_to=cropdetection.models.analyze_upload_dir),
        ),
    ]
Beispiel #7
0
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0010_auto_20180121_0931'),
    ]

    operations = [
        migrations.AlterField(
            model_name='analyze',
            name='input_path',
            field=models.FileField(
                blank=True,
                help_text='Select input path file directory.',
                max_length=300,
                upload_to=cropdetection.models.band_upload_dir),
        ),
    ]
Beispiel #8
0
class Migration(migrations.Migration):

    dependencies = [
        ('cropdetection', '0008_auto_20180120_0536'),
    ]

    operations = [
        migrations.AddField(
            model_name='band',
            name='input_path',
            field=models.FileField(
                default='',
                help_text='Select input path file directory.',
                max_length=300,
                upload_to=cropdetection.models.band_upload_dir),
            preserve_default=False,
        ),
    ]
Beispiel #9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Analyze',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('result_s1',
                 models.FileField(
                     blank=True,
                     help_text='Select the result file(.tif).',
                     upload_to=cropdetection.models.analyze_upload_dir)),
                ('result_s2',
                 models.FileField(
                     blank=True,
                     help_text='Select the result file(.tif).',
                     upload_to=cropdetection.models.analyze_upload_dir)),
            ],
        ),
        migrations.CreateModel(
            name='Band',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(choices=[('1', 'band red'), ('2', 'ndvi'),
                                           ('3', 'band green'),
                                           ('4', 'near infrared')],
                                  help_text='Select band.',
                                  max_length=300)),
                ('band',
                 models.FileField(
                     help_text='Select band file(.tif).',
                     upload_to=cropdetection.models.band_upload_dir)),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('analyze',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='cropdetection.Analyze')),
            ],
        ),
        migrations.CreateModel(
            name='Calendar',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(help_text='Set the calendar name.',
                                  max_length=300)),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('comment',
                 models.TextField(blank=True,
                                  help_text='any more comment?',
                                  max_length=1000)),
            ],
        ),
        migrations.CreateModel(
            name='Crop',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('name',
                 models.CharField(help_text='Set the crop name.',
                                  max_length=300)),
            ],
        ),
        migrations.CreateModel(
            name='Phenology',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('name',
                 models.CharField(
                     help_text='maximum greenness date for example',
                     max_length=300)),
                ('start', models.DateField(help_text='Set the start date.')),
                ('end', models.DateField(help_text='Set the end date.')),
                ('calendar',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='cropdetection.Calendar')),
            ],
        ),
        migrations.CreateModel(
            name='Region',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(help_text='Set the region name.',
                                  max_length=300,
                                  unique=True)),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='ShapeFile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('last_modified_date', models.DateTimeField(auto_now=True)),
                ('shape_file',
                 models.FileField(
                     help_text='Select the shape file.',
                     upload_to=cropdetection.models.shape_files_upload_dir)),
                ('region',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='cropdetection.Region')),
            ],
        ),
        migrations.AddField(
            model_name='crop',
            name='region',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='cropdetection.Region'),
        ),
        migrations.AddField(
            model_name='calendar',
            name='crop',
            field=models.OneToOneField(
                on_delete=django.db.models.deletion.CASCADE,
                to='cropdetection.Crop'),
        ),
        migrations.AddField(
            model_name='analyze',
            name='region',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='cropdetection.Region'),
        ),
    ]