Skip to content

Commit fe4fbff

Browse files
committed
Merge branch 'develop/0.x' into main
2 parents 405d85e + b5b2cda commit fe4fbff

31 files changed

+964
-639
lines changed

georeference/admin.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,23 @@
33
from .models import (
44
SplitDocumentLink,
55
GeoreferencedDocumentLink,
6-
SplitEvaluation,
7-
GeoreferenceSession,
86
GCP,
97
GCPGroup,
108
LayerMask,
11-
MaskSession,
129
PrepSession,
1310
GeorefSession,
1411
TrimSession,
1512
)
1613

1714
class GCPAdmin(admin.ModelAdmin):
1815
readonly_fields = ('last_modified',)
19-
20-
class GeoreferenceSessionAdmin(admin.ModelAdmin):
21-
readonly_fields = ('created',)
16+
list_display = ('id', 'gcp_group')
2217

2318
admin.site.register(SplitDocumentLink)
24-
admin.site.register(SplitEvaluation)
2519
admin.site.register(GeoreferencedDocumentLink)
26-
admin.site.register(GeoreferenceSession, GeoreferenceSessionAdmin)
2720
admin.site.register(GCP, GCPAdmin)
2821
admin.site.register(GCPGroup)
2922
admin.site.register(LayerMask)
30-
admin.site.register(MaskSession)
3123

3224
class SessionAdmin(admin.ModelAdmin):
3325
readonly_fields = ('date_created', 'date_modified', 'date_run')

georeference/components/src/Georeference.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import Projection from 'ol/proj/Projection';
2525
import {transformExtent} from 'ol/proj';
2626
2727
import MousePosition from 'ol/control/MousePosition';
28+
import ScaleLine from 'ol/control/ScaleLine';
2829
import {createStringXY} from 'ol/coordinate';
2930
3031
import Draw from 'ol/interaction/Draw';
@@ -396,6 +397,11 @@ function MapViewer (elementId) {
396397
});
397398
map.addControl(mousePositionControl);
398399
400+
let scaleLine = new ScaleLine({
401+
units: 'us',
402+
});
403+
map.addControl(scaleLine)
404+
399405
// add some click actions to the map
400406
map.on("click", function(e) {
401407
let found = false;

georeference/components/src/GeoreferencePreamble.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function setPanel(show) {
132132
{/if}
133133
{#if showVideo}
134134
<div transition:slide class="help-panel">
135-
<h4><em>coming soon!</em></h4>
135+
<a href="https://youtu.be/GpAdj3hymkA?t=1026" target="_blank"><h4>View <i class="fa fa-external-link"></i></h4></a>
136136
</div>
137137
{/if}
138138
</main>

georeference/components/src/SplitPreamble.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function setPanel(show) {
130130
{/if}
131131
{#if showVideo}
132132
<div transition:slide class="help-panel">
133-
<h4><em>coming soon!</em></h4>
133+
<a href="https://youtu.be/GpAdj3hymkA?t=824" target="_blank"><h4>View <i class="fa fa-external-link"></i></h4></a>
134134
</div>
135135
{/if}
136136
</main>

georeference/management/commands/mogrify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def handle(self, *args, **options):
3636
Layer,
3737
gmodels.GCP,
3838
gmodels.GCPGroup,
39-
gmodels.GeoreferenceSession,
39+
gmodels.GeorefSession,
4040
gmodels.SplitDocumentLink,
4141
gmodels.LayerMask,
42-
gmodels.MaskSession,
42+
gmodels.TrimSession,
4343
]
4444

4545
for model in model_list:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Generated by Django 2.2.20 on 2022-04-12 15:00
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('georeference', '0003_georefsession_prepsession_sessionbase_trimsession'),
10+
]
11+
12+
operations = [
13+
migrations.RemoveField(
14+
model_name='masksession',
15+
name='layer',
16+
),
17+
migrations.RemoveField(
18+
model_name='masksession',
19+
name='user',
20+
),
21+
migrations.RemoveField(
22+
model_name='splitevaluation',
23+
name='document',
24+
),
25+
migrations.RemoveField(
26+
model_name='splitevaluation',
27+
name='user',
28+
),
29+
migrations.DeleteModel(
30+
name='GeoreferenceSession',
31+
),
32+
migrations.DeleteModel(
33+
name='MaskSession',
34+
),
35+
migrations.DeleteModel(
36+
name='SplitEvaluation',
37+
),
38+
]

0 commit comments

Comments
 (0)