Skip to content

Instantly share code, notes, and snippets.

@bertspaan
Created August 9, 2020 18:56
Show Gist options
  • Save bertspaan/f3725a6377a9a76ee839e2b42083f755 to your computer and use it in GitHub Desktop.
Save bertspaan/f3725a6377a9a76ee839e2b42083f755 to your computer and use it in GitHub Desktop.
Georeferenced IIIF Map Annotation
Display the source blob
Display the rendered blob
Raw
{
"@id": "https://bertspaan.nl/iiifmaps/#/?url=https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~319335~90088251/manifest",
"type": "AnnotationPage",
"@context": [
"http://geojson.org/geojson-ld/geojson-context.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"items": [
{
"type": "Annotation",
"motivation": "georeference-ground-control-points",
"target": "https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~319335~90088251/manifest",
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"pixel": [
1875,
7169
]
},
"geometry": {
"type": "Point",
"coordinates": [
-5.671571,
50.035873
]
}
},
{
"type": "Feature",
"properties": {
"pixel": [
4958,
3368
]
},
"geometry": {
"type": "Point",
"coordinates": [
-5.03099,
50.549189
]
}
},
{
"type": "Feature",
"properties": {
"pixel": [
8716,
5019
]
},
"geometry": {
"type": "Point",
"coordinates": [
-4.222405,
50.312488
]
}
}
]
}
},
{
"type": "Annotation",
"motivation": "georeference-pixel-mask",
"target": {
"source": "https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~319335~90088251/manifest",
"selector": {
"type": "SvgSelector",
"value": "<svg width=\"10802\" height=\"8318\"><polygon points=\"1507,6452 1546,6325 1687,6156 1844,5992 2053,5912 2283,5722 2573,5656 2820,5600 2991,5608 3084,5416 3257,5298 3485,5288 3697,5061 3805,4872 3973,4683 4045,4485 4187,4313 4375,4047 4591,3873 4598,3699 4599,3379 4790,3145 5038,2982 5290,2907 5459,2670 5760,2649 5844,2475 6192,2100 6368,1879 6596,1546 6623,1306 6777,1046 6959,792 7038,639 7125,440 7697,444 7702,578 7808,772 7893,935 7769,1445 8009,1605 8090,1931 8258,2294 8447,2481 8622,2851 8982,2947 9329,3058 9331,3445 9280,4182 9363,4808 9286,5008 8909,5147 8488,5140 8368,4851 7945,4926 7547,5116 7187,5119 6802,5147 6634,5337 6666,5468 6475,5694 6236,5856 5820,6056 5528,6209 5327,6357 5224,6548 5108,6778 5060,6940 4962,7144 4850,7378 4639,7470 4442,7518 4374,7667 4303,7776 3926,7727 3865,7542 3660,7183 3511,6995 3294,6859 3056,6808 2879,6914 2462,7182 2085,7274 1767,7195 1582,7032 1502,6674 1507,6452\" /></svg>"
}
},
"body": [
[
1507,
6452
],
[
1546,
6325
],
[
1687,
6156
],
[
1844,
5992
],
[
2053,
5912
],
[
2283,
5722
],
[
2573,
5656
],
[
2820,
5600
],
[
2991,
5608
],
[
3084,
5416
],
[
3257,
5298
],
[
3485,
5288
],
[
3697,
5061
],
[
3805,
4872
],
[
3973,
4683
],
[
4045,
4485
],
[
4187,
4313
],
[
4375,
4047
],
[
4591,
3873
],
[
4598,
3699
],
[
4599,
3379
],
[
4790,
3145
],
[
5038,
2982
],
[
5290,
2907
],
[
5459,
2670
],
[
5760,
2649
],
[
5844,
2475
],
[
6192,
2100
],
[
6368,
1879
],
[
6596,
1546
],
[
6623,
1306
],
[
6777,
1046
],
[
6959,
792
],
[
7038,
639
],
[
7125,
440
],
[
7697,
444
],
[
7702,
578
],
[
7808,
772
],
[
7893,
935
],
[
7769,
1445
],
[
8009,
1605
],
[
8090,
1931
],
[
8258,
2294
],
[
8447,
2481
],
[
8622,
2851
],
[
8982,
2947
],
[
9329,
3058
],
[
9331,
3445
],
[
9280,
4182
],
[
9363,
4808
],
[
9286,
5008
],
[
8909,
5147
],
[
8488,
5140
],
[
8368,
4851
],
[
7945,
4926
],
[
7547,
5116
],
[
7187,
5119
],
[
6802,
5147
],
[
6634,
5337
],
[
6666,
5468
],
[
6475,
5694
],
[
6236,
5856
],
[
5820,
6056
],
[
5528,
6209
],
[
5327,
6357
],
[
5224,
6548
],
[
5108,
6778
],
[
5060,
6940
],
[
4962,
7144
],
[
4850,
7378
],
[
4639,
7470
],
[
4442,
7518
],
[
4374,
7667
],
[
4303,
7776
],
[
3926,
7727
],
[
3865,
7542
],
[
3660,
7183
],
[
3511,
6995
],
[
3294,
6859
],
[
3056,
6808
],
[
2879,
6914
],
[
2462,
7182
],
[
2085,
7274
],
[
1767,
7195
],
[
1582,
7032
],
[
1502,
6674
],
[
1507,
6452
]
]
},
{
"type": "Annotation",
"motivation": "georeference-geo-mask",
"target": {
"source": "https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~319335~90088251/manifest",
"selector": {
"type": "SvgSelector",
"value": "<svg width=\"10802\" height=\"8318\"><polygon points=\"1507,6452 1546,6325 1687,6156 1844,5992 2053,5912 2283,5722 2573,5656 2820,5600 2991,5608 3084,5416 3257,5298 3485,5288 3697,5061 3805,4872 3973,4683 4045,4485 4187,4313 4375,4047 4591,3873 4598,3699 4599,3379 4790,3145 5038,2982 5290,2907 5459,2670 5760,2649 5844,2475 6192,2100 6368,1879 6596,1546 6623,1306 6777,1046 6959,792 7038,639 7125,440 7697,444 7702,578 7808,772 7893,935 7769,1445 8009,1605 8090,1931 8258,2294 8447,2481 8622,2851 8982,2947 9329,3058 9331,3445 9280,4182 9363,4808 9286,5008 8909,5147 8488,5140 8368,4851 7945,4926 7547,5116 7187,5119 6802,5147 6634,5337 6666,5468 6475,5694 6236,5856 5820,6056 5528,6209 5327,6357 5224,6548 5108,6778 5060,6940 4962,7144 4850,7378 4639,7470 4442,7518 4374,7667 4303,7776 3926,7727 3865,7542 3660,7183 3511,6995 3294,6859 3056,6808 2879,6914 2462,7182 2085,7274 1767,7195 1582,7032 1502,6674 1507,6452\" /></svg>"
}
},
"body": {
"type": "Feature",
"properties": {
"sources": [
{
"type": "iiif",
"dimensions": [
10802,
8318
]
}
],
"area": 5263664376
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-5.75320376809117,
50.1352613227778
],
[
-5.74544893828253,
50.1525848850717
],
[
-5.71613081075282,
50.1753973578337
],
[
-5.6833790268789,
50.1974805404739
],
[
-5.63916864885672,
50.2078959512549
],
[
-5.59096638338664,
50.2333504646609
],
[
-5.52942308063516,
50.2416262997281
],
[
-5.47700421995809,
50.248645688611
],
[
-5.44050768790717,
50.2470869538529
],
[
-5.42152586060177,
50.2731851660831
],
[
-5.38515934802625,
50.2889124794503
],
[
-5.33658857753689,
50.289670328288
],
[
-5.29238773997144,
50.3202509984681
],
[
-5.27019431251658,
50.3458970829729
],
[
-5.23520748125148,
50.3713814602302
],
[
-5.22072984367342,
50.3983596718241
],
[
-5.19121174194375,
50.4215811503788
],
[
-5.15230050546188,
50.4575786153334
],
[
-5.10701270516415,
50.4808751222252
],
[
-5.10628859480548,
50.5047349093626
],
[
-5.10748861907612,
50.5486469783483
],
[
-5.06779638763699,
50.5802448815299
],
[
-5.01563685825189,
50.6019455745401
],
[
-4.96223579217088,
50.6115589269379
],
[
-4.92724772465906,
50.6436278236904
],
[
-4.86316022658912,
50.6456984987264
],
[
-4.84601791467396,
50.6693507615627
],
[
-4.77347232218481,
50.7198754737143
],
[
-4.73692102851174,
50.7497297664159
],
[
-4.68977675488675,
50.7948140802736
],
[
-4.68507965892274,
50.8276773850922
],
[
-4.65339151953958,
50.8629430823267
],
[
-4.6157066266512,
50.897309914352
],
[
-4.59953768734204,
50.9180937463979
],
[
-4.58186611521039,
50.9451687648177
],
[
-4.45988466662345,
50.9430782211731
],
[
-4.4582267521785,
50.9246754380995
],
[
-4.43476829071531,
50.8977664295559
],
[
-4.4159244289535,
50.8751682613218
],
[
-4.44011176669132,
50.8055133010053
],
[
-4.38823152761656,
50.7829090899618
],
[
-4.36952068641147,
50.7379526192441
],
[
-4.33209600291997,
50.6876840284176
],
[
-4.29097091431198,
50.6615119603131
],
[
-4.25202275224989,
50.6102638681763
],
[
-4.17483835508812,
50.596119195459
],
[
-4.10035961610082,
50.5799510547446
],
[
-4.09822402290929,
50.5268362466617
],
[
-4.10584353011385,
50.4258325067392
],
[
-4.08538132242683,
50.3397005544301
],
[
-4.10091624419115,
50.3124613511645
],
[
-4.18068758534336,
50.2944019360445
],
[
-4.2704855502047,
50.2964972173629
],
[
-4.2973486971249,
50.3364811531917
],
[
-4.38721096406513,
50.3273286664494
],
[
-4.47123476020392,
50.3023269333365
],
[
-4.54798193386857,
50.3028854759083
],
[
-4.62994928248013,
50.300080555554
],
[
-4.66493169734628,
50.2744589446589
],
[
-4.6575300003836,
50.2563950942374
],
[
-4.69725756301442,
50.2258950601585
],
[
-4.74750249822694,
50.204307344699
],
[
-4.8353201515192,
50.177981787382
],
[
-4.89690567435476,
50.157772016065
],
[
-4.93910995007291,
50.138003156945
],
[
-4.96022842774565,
50.1120691295605
],
[
-4.98394657001781,
50.0808180268709
],
[
-4.99346583643436,
50.05871554334
],
[
-5.01346078393642,
50.0309840030597
],
[
-5.03630836702539,
49.9991731853355
],
[
-5.08089219505372,
49.9871163611421
],
[
-5.1226852170806,
49.9810600853222
],
[
-5.13652636462039,
49.960795541499
],
[
-5.15118383830912,
49.9460284285515
],
[
-5.23178546246597,
49.953768937344
],
[
-5.24560912348082,
49.9793215627114
],
[
-5.29090540705947,
50.0291409384559
],
[
-5.32350597619292,
50.0553424353666
],
[
-5.37037608356535,
50.0745910513238
],
[
-5.42134848835969,
50.0822314056019
],
[
-5.45862089131009,
50.0681616763718
],
[
-5.54635145286985,
50.032506926803
],
[
-5.62633036477322,
50.0208974926611
],
[
-5.69448430048548,
50.0325959984619
],
[
-5.73465050193105,
50.0554636787753
],
[
-5.75328944450604,
50.1048089307829
],
[
-5.75320376809117,
50.1352613227778
]
]
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment