---
swagger: '2.0'
info:
version: 1.0.0
title: GeoWebCache GridSets
description: A Grid Set is a set of tile grids associated with a coordinate reference system.
contact:
name: GeoServer
email: 'geoserver-users@osgeo.org'
url: 'https://geoserver.org/comm/'
host: localhost:8080
schemes:
- http
basePath: /geoserver/gwc/rest
paths:
/gridsets:
get:
operationId: gridsetsGet
tags:
- "GwcGridSets"
summary: Get a list of configured gridsets
description: Displays a list of all configured gridsets on the server.
produces:
- application/xml
- application/json
responses:
200:
description: OK
schema:
$ref: "#/definitions/GridSets"
examples:
application/xml: |
EPSG:2163
GlobalCRS84Pixel
EPSG:4326
GoogleCRS84Quad
EPSG:900913
GlobalCRS84Scale
/gridsets/{gridsetName}:
get:
operationId: gridsetGet
tags:
- "GwcGridSets"
summary: Retrieve a configured gridset
description: Retrieves a single configured gridset definition.
produces:
- application/xml
- application/json
parameters:
- name: gridsetName
in: path
required: true
description: The name of the gridset to retrieve.
type: string
responses:
200:
description: OK
schema:
$ref: "#/definitions/GridSet"
examples:
application/xml: |
EPSG:4326
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.
4326
-180.0
-90.0
180.0
90.0
false
0.703125
0.3515625
0.17578125
0.087890625
0.0439453125
0.02197265625
0.010986328125
0.0054931640625
0.00274658203125
0.001373291015625
6.866455078125E-4
3.4332275390625E-4
1.71661376953125E-4
8.58306884765625E-5
4.291534423828125E-5
2.1457672119140625E-5
1.0728836059570312E-5
5.364418029785156E-6
2.682209014892578E-6
1.341104507446289E-6
6.705522537231445E-7
3.3527612686157227E-7
111319.49079327358
2.8E-4
EPSG:4326:0
EPSG:4326:1
EPSG:4326:2
EPSG:4326:3
EPSG:4326:4
EPSG:4326:5
EPSG:4326:6
EPSG:4326:7
EPSG:4326:8
EPSG:4326:9
EPSG:4326:10
EPSG:4326:11
EPSG:4326:12
EPSG:4326:13
EPSG:4326:14
EPSG:4326:15
EPSG:4326:16
EPSG:4326:17
EPSG:4326:18
EPSG:4326:19
EPSG:4326:20
EPSG:4326:21
256
256
true
404:
description: Unknown gridset
put:
operationId: gridsetPut
tags:
- "GwcGridSets"
summary: Create or update a configured gridset.
description: Creates a new configured gridset on the server, or modifies an existing gridset.
parameters:
- name: gridsetName
in: path
required: true
description: The name of the gridset to add or update.
type: string
- name: gridsetBody
in: body
description: The new gridset definition.
required: true
schema:
$ref: "#/definitions/GridSet"
consumes:
- application/xml
- application/json
responses:
200:
description: The gridset was successfully updated.
201:
description: The gridset was successfully created.
delete:
operationId: gridsetDelete
tags:
- "GwcGridSets"
summary: Delete configured gridset
description: Deletes a configured gridset from the server.
parameters:
- name: gridsetName
in: path
required: true
description: The name of the gridset to delete.
type: string
responses:
200:
description: OK
404:
description: Unknown gridset
definitions:
GridSets:
title: gridSets
type: array
items:
$ref: "#/definitions/GridSetReference"
GridSetReference:
title: gridSet
type: object
properties:
name:
type: string
description: Name of the gridset
link:
type: string
description: URL to gridset definition
GridSet:
title: gridSet
type: object
properties:
name:
type: string
description: Name of the gridset. Should be unique.
description:
type: string
description: Description of the gridset
srs:
type: object
description: The reference system of the gridSet
properties:
number:
type: integer
description: The SRS number
extent:
type: object
description: The gridset extent
properties:
coords:
type: array
description: The coordinates of the extent.
items:
type: object
description: A coordinate of the extent.
properties:
double:
type: number
description: The coordinate value.
alignTopLeft:
type: boolean
default: false
description: Whether the y-coordinate of the tile origin is at the top (true) or bottom (false).
resolutions:
type: object
description: The resolutions of each gridset level
properties:
items:
type: object
description: The resolution of a gridset level.
properties:
double:
type: number
description: The resolution value.
metersPerUnit:
type: number
description: The number of meters per coordinate unit.
pixelSize:
type: number
description: The assumed pixel size of the display device, in meters.
scaleNames:
type: object
description: The scale names of each gridset level
properties:
items:
type: object
description: The scale name of a gridset level.
properties:
double:
type: string
description: The scale name.
tileHeight:
type: integer
description: The height of a tile in pixels.
tileWidth:
type: integer
description: The width of a tile in pixels.
yCoordinateFirst:
type: boolean
default: false
description: By default the coordinates are {x,y}, this flag reverses the output for WMTS getcapabilities.