gwcgridsets.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. ---
  2. swagger: '2.0'
  3. info:
  4. version: 1.0.0
  5. title: GeoWebCache GridSets
  6. description: A Grid Set is a set of tile grids associated with a coordinate reference system.
  7. contact:
  8. name: GeoServer
  9. email: 'geoserver-users@osgeo.org'
  10. url: 'https://geoserver.org/comm/'
  11. host: localhost:8080
  12. schemes:
  13. - http
  14. basePath: /geoserver/gwc/rest
  15. paths:
  16. /gridsets:
  17. get:
  18. operationId: gridsetsGet
  19. tags:
  20. - "GwcGridSets"
  21. summary: Get a list of configured gridsets
  22. description: Displays a list of all configured gridsets on the server.
  23. produces:
  24. - application/xml
  25. - application/json
  26. responses:
  27. 200:
  28. description: OK
  29. schema:
  30. $ref: "#/definitions/GridSets"
  31. examples:
  32. application/xml: |
  33. <gridSets>
  34. <gridSet>
  35. <name>EPSG:2163</name>
  36. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/EPSG:2163.xml" type="text/xml"/>
  37. </gridSet>
  38. <gridSet>
  39. <name>GlobalCRS84Pixel</name>
  40. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/GlobalCRS84Pixel.xml" type="text/xml"/>
  41. </gridSet>
  42. <gridSet>
  43. <name>EPSG:4326</name>
  44. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/EPSG:4326.xml" type="text/xml"/>
  45. </gridSet>
  46. <gridSet>
  47. <name>GoogleCRS84Quad</name>
  48. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/GoogleCRS84Quad.xml" type="text/xml"/>
  49. </gridSet>
  50. <gridSet>
  51. <name>EPSG:900913</name>
  52. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/EPSG:900913.xml" type="text/xml"/>
  53. </gridSet>
  54. <gridSet>
  55. <name>GlobalCRS84Scale</name>
  56. <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geowebcache/rest/gridsets/GlobalCRS84Scale.xml" type="text/xml"/>
  57. </gridSet>
  58. </gridSets>
  59. /gridsets/{gridsetName}:
  60. get:
  61. operationId: gridsetGet
  62. tags:
  63. - "GwcGridSets"
  64. summary: Retrieve a configured gridset
  65. description: Retrieves a single configured gridset definition.
  66. produces:
  67. - application/xml
  68. - application/json
  69. parameters:
  70. - name: gridsetName
  71. in: path
  72. required: true
  73. description: The name of the gridset to retrieve.
  74. type: string
  75. responses:
  76. 200:
  77. description: OK
  78. schema:
  79. $ref: "#/definitions/GridSet"
  80. examples:
  81. application/xml: |
  82. <gridSet>
  83. <name>EPSG:4326</name>
  84. <description>A default WGS84 tile matrix set where the first zoom level covers the world with two tiles on the horizonal axis and one tile over the vertical axis and each subsequent zoom level is calculated by half the resolution of its previous one.</description>
  85. <srs>
  86. <number>4326</number>
  87. </srs>
  88. <extent>
  89. <coords>
  90. <double>-180.0</double>
  91. <double>-90.0</double>
  92. <double>180.0</double>
  93. <double>90.0</double>
  94. </coords>
  95. </extent>
  96. <alignTopLeft>false</alignTopLeft>
  97. <resolutions>
  98. <double>0.703125</double>
  99. <double>0.3515625</double>
  100. <double>0.17578125</double>
  101. <double>0.087890625</double>
  102. <double>0.0439453125</double>
  103. <double>0.02197265625</double>
  104. <double>0.010986328125</double>
  105. <double>0.0054931640625</double>
  106. <double>0.00274658203125</double>
  107. <double>0.001373291015625</double>
  108. <double>6.866455078125E-4</double>
  109. <double>3.4332275390625E-4</double>
  110. <double>1.71661376953125E-4</double>
  111. <double>8.58306884765625E-5</double>
  112. <double>4.291534423828125E-5</double>
  113. <double>2.1457672119140625E-5</double>
  114. <double>1.0728836059570312E-5</double>
  115. <double>5.364418029785156E-6</double>
  116. <double>2.682209014892578E-6</double>
  117. <double>1.341104507446289E-6</double>
  118. <double>6.705522537231445E-7</double>
  119. <double>3.3527612686157227E-7</double>
  120. </resolutions>
  121. <metersPerUnit>111319.49079327358</metersPerUnit>
  122. <pixelSize>2.8E-4</pixelSize>
  123. <scaleNames>
  124. <string>EPSG:4326:0</string>
  125. <string>EPSG:4326:1</string>
  126. <string>EPSG:4326:2</string>
  127. <string>EPSG:4326:3</string>
  128. <string>EPSG:4326:4</string>
  129. <string>EPSG:4326:5</string>
  130. <string>EPSG:4326:6</string>
  131. <string>EPSG:4326:7</string>
  132. <string>EPSG:4326:8</string>
  133. <string>EPSG:4326:9</string>
  134. <string>EPSG:4326:10</string>
  135. <string>EPSG:4326:11</string>
  136. <string>EPSG:4326:12</string>
  137. <string>EPSG:4326:13</string>
  138. <string>EPSG:4326:14</string>
  139. <string>EPSG:4326:15</string>
  140. <string>EPSG:4326:16</string>
  141. <string>EPSG:4326:17</string>
  142. <string>EPSG:4326:18</string>
  143. <string>EPSG:4326:19</string>
  144. <string>EPSG:4326:20</string>
  145. <string>EPSG:4326:21</string>
  146. </scaleNames>
  147. <tileHeight>256</tileHeight>
  148. <tileWidth>256</tileWidth>
  149. <yCoordinateFirst>true</yCoordinateFirst>
  150. </gridSet>
  151. 404:
  152. description: Unknown gridset
  153. put:
  154. operationId: gridsetPut
  155. tags:
  156. - "GwcGridSets"
  157. summary: Create or update a configured gridset.
  158. description: Creates a new configured gridset on the server, or modifies an existing gridset.
  159. parameters:
  160. - name: gridsetName
  161. in: path
  162. required: true
  163. description: The name of the gridset to add or update.
  164. type: string
  165. - name: gridsetBody
  166. in: body
  167. description: The new gridset definition.
  168. required: true
  169. schema:
  170. $ref: "#/definitions/GridSet"
  171. consumes:
  172. - application/xml
  173. - application/json
  174. responses:
  175. 200:
  176. description: The gridset was successfully updated.
  177. 201:
  178. description: The gridset was successfully created.
  179. delete:
  180. operationId: gridsetDelete
  181. tags:
  182. - "GwcGridSets"
  183. summary: Delete configured gridset
  184. description: Deletes a configured gridset from the server.
  185. parameters:
  186. - name: gridsetName
  187. in: path
  188. required: true
  189. description: The name of the gridset to delete.
  190. type: string
  191. responses:
  192. 200:
  193. description: OK
  194. 404:
  195. description: Unknown gridset
  196. definitions:
  197. GridSets:
  198. title: gridSets
  199. type: array
  200. items:
  201. $ref: "#/definitions/GridSetReference"
  202. GridSetReference:
  203. title: gridSet
  204. type: object
  205. properties:
  206. name:
  207. type: string
  208. description: Name of the gridset
  209. link:
  210. type: string
  211. description: URL to gridset definition
  212. GridSet:
  213. title: gridSet
  214. type: object
  215. properties:
  216. name:
  217. type: string
  218. description: Name of the gridset. Should be unique.
  219. description:
  220. type: string
  221. description: Description of the gridset
  222. srs:
  223. type: object
  224. description: The reference system of the gridSet
  225. properties:
  226. number:
  227. type: integer
  228. description: The SRS number
  229. extent:
  230. type: object
  231. description: The gridset extent
  232. properties:
  233. coords:
  234. type: array
  235. description: The coordinates of the extent.
  236. items:
  237. type: object
  238. description: A coordinate of the extent.
  239. properties:
  240. double:
  241. type: number
  242. description: The coordinate value.
  243. alignTopLeft:
  244. type: boolean
  245. default: false
  246. description: Whether the y-coordinate of the tile origin is at the top (true) or bottom (false).
  247. resolutions:
  248. type: object
  249. description: The resolutions of each gridset level
  250. properties:
  251. items:
  252. type: object
  253. description: The resolution of a gridset level.
  254. properties:
  255. double:
  256. type: number
  257. description: The resolution value.
  258. metersPerUnit:
  259. type: number
  260. description: The number of meters per coordinate unit.
  261. pixelSize:
  262. type: number
  263. description: The assumed pixel size of the display device, in meters.
  264. scaleNames:
  265. type: object
  266. description: The scale names of each gridset level
  267. properties:
  268. items:
  269. type: object
  270. description: The scale name of a gridset level.
  271. properties:
  272. double:
  273. type: string
  274. description: The scale name.
  275. tileHeight:
  276. type: integer
  277. description: The height of a tile in pixels.
  278. tileWidth:
  279. type: integer
  280. description: The width of a tile in pixels.
  281. yCoordinateFirst:
  282. type: boolean
  283. default: false
  284. description: By default the coordinates are {x,y}, this flag reverses the output for WMTS getcapabilities.