Skip to content

Instantly share code, notes, and snippets.

@bertspaan
Created September 7, 2023 15:12
Show Gist options
  • Save bertspaan/fcfae44c657a26444ad316932c4a0175 to your computer and use it in GitHub Desktop.
Save bertspaan/fcfae44c657a26444ad316932c4a0175 to your computer and use it in GitHub Desktop.
New Georeference Annotation
Display the source blob
Display the rendered blob
Raw
{
"type": "AnnotationPage",
"@context": [
"http://www.w3.org/ns/anno.jsonld"
],
"items": [
{
"id": "http://annotations.localhost:9584/maps/aa63f31a95561595",
"type": "Annotation",
"@context": [
"http://iiif.io/api/extension/georef/1/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeferencing",
"target": {
"type": "SpecificResource",
"source": {
"@id": "http://localhost:7171/images/image.1",
"type": "ImageService2",
"height": 2942,
"width": 3789,
"partOf": [
{
"id": "http://localhost:7171/manifests/manifest.1.json",
"type": "Manifest"
},
{
"id": "http://localhost:7171/manifests/manifest.2.json",
"type": "Manifest"
}
]
},
"selector": {
"type": "SvgSelector",
"value": "\u003Csvg width=\"3789\" height=\"2942\"\u003E\u003Cpolygon points=\"249,171 219,2760 3598,2820 3593,162\" /\u003E\u003C/svg\u003E"
}
},
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"resourceCoords": [1044, 1506]
},
"geometry": {
"type": "Point",
"coordinates": [4.4753405, 51.9150568]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [2870, 1666]
},
"geometry": {
"type": "Point",
"coordinates": [4.5011531, 51.9157375]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [1393, 830]
},
"geometry": {
"type": "Point",
"coordinates": [4.4789236, 51.9213179]
}
}
]
}
},
{
"id": "http://annotations.localhost:9584/maps/39e192eea612b267",
"type": "Annotation",
"@context": [
"http://iiif.io/api/extension/georef/1/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeferencing",
"target": {
"type": "SpecificResource",
"source": {
"@id": "http://localhost:7171/images/image.2",
"type": "ImageService2",
"height": 5908,
"width": 6948,
"partOf": [
{
"id": "http://localhost:7171/manifests/manifest.2.json",
"type": "Manifest"
}
]
},
"selector": {
"type": "SvgSelector",
"value": "\u003Csvg width=\"6948\" height=\"5908\"\u003E\u003Cpolygon points=\"190,313 187,5295 6777,5338 6742,298\" /\u003E\u003C/svg\u003E"
}
},
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"resourceCoords": [2835, 3174]
},
"geometry": {
"type": "Point",
"coordinates": [5.1189174, 52.0935295]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [4079, 1469]
},
"geometry": {
"type": "Point",
"coordinates": [5.1330756, 52.0910238]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [5594, 3343]
},
"geometry": {
"type": "Point",
"coordinates": [5.1255339, 52.0815594]
}
}
]
}
},
{
"id": "http://annotations.localhost:9584/maps/82dd1c4cb022e4c6",
"type": "Annotation",
"@context": [
"http://iiif.io/api/extension/georef/1/context.json",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeferencing",
"target": {
"type": "SpecificResource",
"source": {
"@id": "http://localhost:7171/images/image.3",
"type": "ImageService2",
"height": 4131,
"width": 5433,
"partOf": [
{
"id": "http://localhost:7171/manifests/manifest.3.json",
"type": "Manifest"
}
]
},
"selector": {
"type": "SvgSelector",
"value": "\u003Csvg width=\"5433\" height=\"4131\"\u003E\u003Cpolygon points=\"476,418 468,3735 4721,3778 4691,402\" /\u003E\u003C/svg\u003E"
}
},
"body": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"resourceCoords": [2908, 1640]
},
"geometry": {
"type": "Point",
"coordinates": [4.5004566, 51.9164017]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [2198, 1600]
},
"geometry": {
"type": "Point",
"coordinates": [4.4752321, 51.9150715]
}
},
{
"type": "Feature",
"properties": {
"resourceCoords": [2676, 805]
},
"geometry": {
"type": "Point",
"coordinates": [4.4895887, 51.9351244]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment