Skip to content

Instantly share code, notes, and snippets.

{
"@context": [
"http://www.w3.org/ns/anno.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"type": "Manifest",
"id": "https://figgy.princeton.edu/concern/scanned_resources/480ef315-411f-4176-832b-956c3fa005a0/manifest",
"label": {
"eng": [
"[Concert, 2015, January 09-10] [sound recording]"
@eliotjordan
eliotjordan / info.json
Created August 26, 2022 18:46
TileJSON.io - Greece Raster
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / info.json
Created August 24, 2022 15:53
TileJSON.io - India and Pakistan 1:250,000
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / degrees2meters.js
Created April 12, 2022 01:38 — forked from onderaltintas/degrees2meters.js
javascript coordinate conversions between 900913(3857) - 4326(lat lon)
var degrees2meters = function(lon,lat) {
var x = lon * 20037508.34 / 180;
var y = Math.log(Math.tan((90 + lat) * Math.PI / 360)) / (Math.PI / 180);
y = y * 20037508.34 / 180;
return [x, y]
}
//test
lon= -77.035974
lat = 38.898717
@eliotjordan
eliotjordan / info.json
Created February 2, 2022 21:26
TileJSON.io - The Balkans [and] Turkey : G.S.G.S. no. 2097
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / info.json
Created January 28, 2022 19:06
TileJSON.io - Balkans
{
"baseLayer": {
"tilejson": "2.2.0",
"name": "base",
"version": "1.0.0",
"scheme": "xyz",
"tiles": [
"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
]
},
@eliotjordan
eliotjordan / WMTSCapabilities.xml
Created December 14, 2021 19:14
WMTSCapabilities.xml - Example
<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
<ows:ServiceIdentification>
<ows:Title>"Cloud Optimized GeoTIFF"</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
{"mosaicjson": "0.0.2", "minzoom": 16, "maxzoom": 23, "bounds": [-86.1602783203125, 40.41767833585549, -86.1053466796875, 40.526326510744], "center": [-86.1330299544224, 40.47097685335751, 20], "tiles": {"0320001012313313": ["https://oin-hotosm.s3.amazonaws.com/5cc34ed53dc94a0006940505/0/5cc34ed53dc94a0006940506.tif"], "0320001013202202": ["https://oin-hotosm.s3.amazonaws.com/5cc34ed53dc94a0006940505/0/5cc34ed53dc94a0006940506.tif"], "0320001012313331": ["https://oin-hotosm.s3.amazonaws.com/5cc34ed53dc94a0006940505/0/5cc34ed53dc94a0006940506.tif"], "0320001013202220": ["https://oin-hotosm.s3.amazonaws.com/5cc34ed53dc94a0006940505/0/5cc34ed53dc94a0006940506.tif"], "0320001013220001": ["https://oin-hotosm.s3.amazonaws.com/5cc34ff43dc94a0006940508/0/5cc34ff43dc94a0006940509.tif"], "0320001012331123": ["https://oin-hotosm.s3.amazonaws.com/5cdabd0107186b00060f6c9c/0/5cdabd0107186b00060f6c9d.tif"], "0320001012331132": ["https://oin-hotosm.s3.amazonaws.com/5cdabd0107186b00060f6c9c/0/5cdabd0107186b00060f6c9d.tif", "h
{
"type": "Annotation",
"@context": [
"http://geojson.org/geojson-ld/geojson-context.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeference",
"target": {
"type": "Image",
"source": "https://iiif.princeton.edu/loris/iiif/2/figgy_prod%2F09%2F8e%2F47%2F098e47ae315441ee9d56f849d71ac96e%2Fintermediate_file.jp2/full/full/0/default.jpg",
{
"type": "Annotation",
"@context": [
"http://geojson.org/geojson-ld/geojson-context.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"motivation": "georeference",
"target": {
"type": "Image",
"source": "https://iiif.princeton.edu/loris/iiif/2/figgy_prod%2F50%2Fee%2F61%2F50ee61a99bad444490534946f2e8b929%2Fintermediate_file.jp2/full/full/0/default.jpg",