PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/content-resources/src/main/resources/sql/upgrade/1.20/add-scale-to-wmts-layers.sql

https://github.com/nls-oskari/oskari-server
SQL | 366 lines | 365 code | 0 blank | 1 comment | 0 complexity | 524687ffc7a395d31bab1bf5a50ed4dd MD5 | raw file
  1. -- This adds one scale (id 15) to all WMTS layers of National land survey of Finland;
  2. UPDATE oskari_maplayer SET tile_matrix_set_data='{
  3. "operationsMetadata": {
  4. "GetCapabilities": {
  5. "dcp": {
  6. "http": {
  7. "get": [
  8. {
  9. "url": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts?",
  10. "constraints": {
  11. "GetEncoding": {
  12. "allowedValues": {
  13. "KVP": true
  14. }
  15. }
  16. }
  17. }
  18. ]
  19. }
  20. }
  21. },
  22. "GetTile": {
  23. "dcp": {
  24. "http": {
  25. "get": [
  26. {
  27. "url": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts?",
  28. "constraints": {
  29. "GetEncoding": {
  30. "allowedValues": {
  31. "KVP": true
  32. }
  33. }
  34. }
  35. }
  36. ]
  37. }
  38. }
  39. },
  40. "GetFeatureInfo": {
  41. "dcp": {
  42. "http": {
  43. "get": [
  44. {
  45. "url": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts?",
  46. "constraints": {
  47. "GetEncoding": {
  48. "allowedValues": {
  49. "KVP": true
  50. }
  51. }
  52. }
  53. }
  54. ]
  55. }
  56. }
  57. }
  58. },
  59. "contents": {
  60. "layers": [
  61. {
  62. "styles": [
  63. {
  64. "isDefault": true,
  65. "identifier": "default"
  66. }
  67. ],
  68. "formats": ["image/png"],
  69. "dimensions": [],
  70. "tileMatrixSetLinks": [
  71. {
  72. "tileMatrixSet": "ETRS-TM35FIN"
  73. }
  74. ],
  75. "layers": [],
  76. "title": "Taustakartta",
  77. "identifier": "taustakartta",
  78. "resourceUrl": {
  79. "tile": {
  80. "format": "image/png",
  81. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/taustakartta/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
  82. "resourceType": "tile"
  83. }
  84. },
  85. "resourceUrls": [
  86. {
  87. "format": "image/png",
  88. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/taustakartta/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
  89. "resourceType": "tile"
  90. }
  91. ]
  92. }, {
  93. "styles": [
  94. {
  95. "isDefault": true,
  96. "identifier": "default"
  97. }
  98. ],
  99. "formats": ["image/jpeg"],
  100. "dimensions": [],
  101. "tileMatrixSetLinks": [
  102. {
  103. "tileMatrixSet": "ETRS-TM35FIN"
  104. }
  105. ],
  106. "layers": [],
  107. "title": "Ortokuva",
  108. "identifier": "ortokuva",
  109. "resourceUrl": {
  110. "tile": {
  111. "format": "image/jpeg",
  112. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/ortokuva/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",
  113. "resourceType": "tile"
  114. }
  115. },
  116. "resourceUrls": [
  117. {
  118. "format": "image/jpeg",
  119. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/ortokuva/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.jpg",
  120. "resourceType": "tile"
  121. }
  122. ]
  123. }, {
  124. "styles": [
  125. {
  126. "isDefault": true,
  127. "identifier": "default"
  128. }
  129. ],
  130. "formats": ["image/png"],
  131. "dimensions": [],
  132. "tileMatrixSetLinks": [
  133. {
  134. "tileMatrixSet": "ETRS-TM35FIN"
  135. }
  136. ],
  137. "layers": [],
  138. "title": "Maastokartta",
  139. "identifier": "maastokartta",
  140. "resourceUrl": {
  141. "tile": {
  142. "format": "image/png",
  143. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/maastokartta/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
  144. "resourceType": "tile"
  145. }
  146. },
  147. "resourceUrls": [
  148. {
  149. "format": "image/png",
  150. "template": "http://karttamoottori.maanmittauslaitos.fi/maasto/wmts/1.0.0/maastokartta/default/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
  151. "resourceType": "tile"
  152. }
  153. ]
  154. }
  155. ],
  156. "tileMatrixSets": {
  157. "ETRS-TM35FIN": {
  158. "matrixIds": [
  159. {
  160. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  161. "identifier": "0",
  162. "scaleDenominator": 29257142.85714286,
  163. "topLeftCorner": {
  164. "lon": -548576,
  165. "lat": 8388608
  166. },
  167. "tileWidth": 256,
  168. "tileHeight": 256,
  169. "matrixWidth": 1,
  170. "matrixHeight": 1
  171. }, {
  172. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  173. "identifier": "1",
  174. "scaleDenominator": 14628571.42857143,
  175. "topLeftCorner": {
  176. "lon": -548576,
  177. "lat": 8388608
  178. },
  179. "tileWidth": 256,
  180. "tileHeight": 256,
  181. "matrixWidth": 2,
  182. "matrixHeight": 2
  183. }, {
  184. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  185. "identifier": "2",
  186. "scaleDenominator": 7314285.714285715,
  187. "topLeftCorner": {
  188. "lon": -548576,
  189. "lat": 8388608
  190. },
  191. "tileWidth": 256,
  192. "tileHeight": 256,
  193. "matrixWidth": 4,
  194. "matrixHeight": 4
  195. }, {
  196. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  197. "identifier": "3",
  198. "scaleDenominator": 3657142.8571428573,
  199. "topLeftCorner": {
  200. "lon": -548576,
  201. "lat": 8388608
  202. },
  203. "tileWidth": 256,
  204. "tileHeight": 256,
  205. "matrixWidth": 8,
  206. "matrixHeight": 8
  207. }, {
  208. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  209. "identifier": "4",
  210. "scaleDenominator": 1828571.4285714286,
  211. "topLeftCorner": {
  212. "lon": -548576,
  213. "lat": 8388608
  214. },
  215. "tileWidth": 256,
  216. "tileHeight": 256,
  217. "matrixWidth": 16,
  218. "matrixHeight": 16
  219. }, {
  220. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  221. "identifier": "5",
  222. "scaleDenominator": 914285.7142857143,
  223. "topLeftCorner": {
  224. "lon": -548576,
  225. "lat": 8388608
  226. },
  227. "tileWidth": 256,
  228. "tileHeight": 256,
  229. "matrixWidth": 32,
  230. "matrixHeight": 32
  231. }, {
  232. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  233. "identifier": "6",
  234. "scaleDenominator": 457142.85714285716,
  235. "topLeftCorner": {
  236. "lon": -548576,
  237. "lat": 8388608
  238. },
  239. "tileWidth": 256,
  240. "tileHeight": 256,
  241. "matrixWidth": 64,
  242. "matrixHeight": 64
  243. }, {
  244. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  245. "identifier": "7",
  246. "scaleDenominator": 228571.42857142858,
  247. "topLeftCorner": {
  248. "lon": -548576,
  249. "lat": 8388608
  250. },
  251. "tileWidth": 256,
  252. "tileHeight": 256,
  253. "matrixWidth": 128,
  254. "matrixHeight": 128
  255. }, {
  256. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  257. "identifier": "8",
  258. "scaleDenominator": 114285.71428571429,
  259. "topLeftCorner": {
  260. "lon": -548576,
  261. "lat": 8388608
  262. },
  263. "tileWidth": 256,
  264. "tileHeight": 256,
  265. "matrixWidth": 256,
  266. "matrixHeight": 256
  267. }, {
  268. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  269. "identifier": "9",
  270. "scaleDenominator": 57142.857142857145,
  271. "topLeftCorner": {
  272. "lon": -548576,
  273. "lat": 8388608
  274. },
  275. "tileWidth": 256,
  276. "tileHeight": 256,
  277. "matrixWidth": 512,
  278. "matrixHeight": 512
  279. }, {
  280. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  281. "identifier": "10",
  282. "scaleDenominator": 28571.428571428572,
  283. "topLeftCorner": {
  284. "lon": -548576,
  285. "lat": 8388608
  286. },
  287. "tileWidth": 256,
  288. "tileHeight": 256,
  289. "matrixWidth": 1024,
  290. "matrixHeight": 1024
  291. }, {
  292. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  293. "identifier": "11",
  294. "scaleDenominator": 14285.714285714286,
  295. "topLeftCorner": {
  296. "lon": -548576,
  297. "lat": 8388608
  298. },
  299. "tileWidth": 256,
  300. "tileHeight": 256,
  301. "matrixWidth": 2048,
  302. "matrixHeight": 2048
  303. }, {
  304. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  305. "identifier": "12",
  306. "scaleDenominator": 7142.857142857143,
  307. "topLeftCorner": {
  308. "lon": -548576,
  309. "lat": 8388608
  310. },
  311. "tileWidth": 256,
  312. "tileHeight": 256,
  313. "matrixWidth": 4096,
  314. "matrixHeight": 4096
  315. }, {
  316. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  317. "identifier": "13",
  318. "scaleDenominator": 3571.4285714285716,
  319. "topLeftCorner": {
  320. "lon": -548576,
  321. "lat": 8388608
  322. },
  323. "tileWidth": 256,
  324. "tileHeight": 256,
  325. "matrixWidth": 8192,
  326. "matrixHeight": 8192
  327. }, {
  328. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  329. "identifier": "14",
  330. "scaleDenominator": 1785.7142857142858,
  331. "topLeftCorner": {
  332. "lon": -548576,
  333. "lat": 8388608
  334. },
  335. "tileWidth": 256,
  336. "tileHeight": 256,
  337. "matrixWidth": 16384,
  338. "matrixHeight": 16384
  339. }, {
  340. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067",
  341. "identifier": "15",
  342. "scaleDenominator": 892.85714285714288962481,
  343. "topLeftCorner": {
  344. "lon": -548576,
  345. "lat": 8388608
  346. },
  347. "tileWidth": 256,
  348. "tileHeight": 256,
  349. "matrixWidth": 32768,
  350. "matrixHeight": 32768
  351. }
  352. ],
  353. "identifier": "ETRS-TM35FIN",
  354. "projection": "urn:ogc:def:crs:EPSG:6.3:3067",
  355. "bounds": {
  356. "left": -548576,
  357. "bottom": 6291456,
  358. "right": 1548576,
  359. "top": 8388608
  360. },
  361. "supportedCRS": "urn:ogc:def:crs:EPSG:6.3:3067"
  362. }
  363. }
  364. },
  365. "version": "1.0.0"
  366. }' WHERE url='http://karttamoottori.maanmittauslaitos.fi/maasto/wmts';