Skip to content

Commit 16d6574

Browse files
committed
add new examples for change detection tutorial
1 parent 981d27b commit 16d6574

File tree

3 files changed

+40
-17
lines changed

3 files changed

+40
-17
lines changed

mapswipe_workers/mapswipe_workers/project_types/change_detection/change_detection_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def generate_tutorial_data(tutorial):
2020

2121
with open(tutorial['examplesFile']) as json_file:
2222
tutorial_tasks = json.load(json_file)
23-
print(len(tutorial_tasks))
24-
print(tutorial_tasks)
23+
print(len(tutorial_tasks['features']))
24+
#print(tutorial_tasks['features'])
2525

2626
for feature in tutorial_tasks['features']:
2727

mapswipe_workers/sample_data/change_detection_tutorial.json

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,37 @@
2424
"name" : "custom",
2525
"url" : "https://tiles.planet.com/basemaps/v1/planet-tiles/global_quarterly_2019q1_mosaic/gmap/{z}/{x}/{y}.png?api_key=8d4aee7b35a94aa68e1d9119f27e01aa"
2626
},
27-
"examplesFile": "sample_data/change_detection_tutorial_tasks.geojson",
27+
"examplesFile": "sample_data/change_detection_tutorial_tasks_new.geojson",
2828
"categories": {
29-
"changes": {
30-
"pre": "Swipe right to indicate changes.",
31-
"post_correct": "Perfect.",
32-
"post_wrong": "Oh no. Make sure to spot all the new settlements."
29+
"changes_1": {
30+
"pre": "For this project we are looking for new settlements. Compare the upper (before) and lower (after) image and swipe right to indicate that new settlements have been built.",
31+
"post_correct": "Yes, that looks like a new settlement being developed, as also suggested by new roads visible in the more recent image. Swipe left to continue the tutorial.",
32+
"post_wrong": "Oh no. Make sure to spot all the new settlements and swipe right. New roads can also function as an indicator sometimes."
3333
},
34-
"no_changes": {
35-
"pre": "Swipe left to indicate no changes.",
36-
"post_correct": "Cool. You got it!",
37-
"post_wrong": "Oh no. Not all changes refer to new settlemenst, some are just related to vegetation."
34+
"changes_2": {
35+
"pre": "And again: If new settlements have been built, swipe to the right side.",
36+
"post_correct": "Correct. We can spot new settlements in the upper right part of the satellite image. Swipe left to go on with some more examples.",
37+
"post_wrong": "Take a closer look. There new settlements here in the upper right part of the satellite image."
3838
},
39-
"maybe": {
40-
"pre": "Swipe down if you are not sure.",
41-
"post_correct": "Great.",
39+
"no_changes_1": {
40+
"pre": "In this example, no settlements emerged. Swipe left to indicate no changes.",
41+
"post_correct": "Nice. Just watch out for changes referring to settlements. Swipe left to continue.",
42+
"post_wrong": "Oh no. Not all changes refer to new settlements, some are just related to vegetation."
43+
},
44+
"no_changes_2": {
45+
"pre": "We can spot changes in the vegetation for this imagery pair, but no changes related to settlements. Again, swipe left.",
46+
"post_correct": "Cool. You got it. Just look out for changes concerning settlements.",
47+
"post_wrong": "Sorry, try again. Don't be distracted by changes in vegetation, just look out for settlements."
48+
},
49+
"maybe_1": {
50+
"pre": "Sometimes it might be unclear if settlements emerged. Swipe down if you are not sure.",
51+
"post_correct": "Great. We cannot really tell if the bright spot in the middle is a new settlement. This is a 'maybe'.",
4252
"post_wrong": "Are you really sure? Sometimes it's better to mark the imagery as 'not sure'."
4353
},
44-
"bad_imagery": {
54+
"bad_imagery_1": {
4555
"pre": "Swipe up to indicate if there is no imagery or if there are clouds.",
46-
"post_correct": "Nice.",
47-
"post_wrong": "It there is no imagery or clouds, we cannot tell the right answer."
56+
"post_correct": "That's right, that image was way too cloudy to make a good assessment! You managed to pass through this tutorial, now it's time for some real mapping.",
57+
"post_wrong": "It there is no imagery or clouds, we cannot tell the right answer. Make sure to mark this as well by swiping up."
4858
}
4959
}
5060
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"type": "FeatureCollection",
3+
"name": "change_detection_tutorial_tasks_new",
4+
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5+
"features": [
6+
{ "type": "Feature", "properties": { "TileX": 38449, "TileY": 32186, "TileZ": 16, "reference": 1, "category": "changes_1", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.2066650390625, 3.195363798329396 ], [ 31.212158203125, 3.195363798329396 ], [ 31.212158203125, 3.189879159964121 ], [ 31.2066650390625, 3.189879159964121 ], [ 31.2066650390625, 3.195363798329396 ] ] ] ] } },
7+
{ "type": "Feature", "properties": { "TileX": 38467, "TileY": 32169, "TileZ": 16, "reference": 1, "category": "changes_2", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.3055419921875, 3.28859812519589 ], [ 31.31103515625, 3.28859812519589 ], [ 31.31103515625, 3.283113991917233 ], [ 31.3055419921875, 3.283113991917233 ], [ 31.3055419921875, 3.28859812519589 ] ] ] ] } },
8+
{ "type": "Feature", "properties": { "TileX": 38454, "TileY": 32164, "TileZ": 16, "reference": 0, "category": "no_changes_1", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.234130859375, 3.316018338161513 ], [ 31.2396240234375, 3.316018338161513 ], [ 31.2396240234375, 3.310534356192321 ], [ 31.234130859375, 3.310534356192321 ], [ 31.234130859375, 3.316018338161513 ] ] ] ] } },
9+
{ "type": "Feature", "properties": { "TileX": 38460, "TileY": 32185, "TileZ": 16, "reference": 0, "category": "no_changes_2", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.26708984375, 3.200848407384441 ], [ 31.2725830078125, 3.200848407384441 ], [ 31.2725830078125, 3.195363798329396 ], [ 31.26708984375, 3.195363798329396 ], [ 31.26708984375, 3.200848407384441 ] ] ] ] } },
10+
{ "type": "Feature", "properties": { "TileX": 38462, "TileY": 32188, "TileZ": 16, "reference": 2, "category": "maybe_1", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.278076171875, 3.184394492338726 ], [ 31.2835693359375, 3.184394492338726 ], [ 31.2835693359375, 3.178909795503287 ], [ 31.278076171875, 3.178909795503287 ], [ 31.278076171875, 3.184394492338726 ] ] ] ] } },
11+
{ "type": "Feature", "properties": { "TileX": 38467, "TileY": 32180, "TileZ": 16, "reference": 3, "category": "bad_imagery_1", "id": 1 }, "geometry": { "type": "MultiPolygon", "coordinates": [ [ [ [ 31.3055419921875, 3.228271011252644 ], [ 31.31103515625, 3.228271011252644 ], [ 31.31103515625, 3.222786549500242 ], [ 31.3055419921875, 3.222786549500242 ], [ 31.3055419921875, 3.228271011252644 ] ] ] ] } }
12+
]
13+
}

0 commit comments

Comments
 (0)