123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- ---
- swagger: '2.0'
- info:
- version: 1.0.0
- title: GeoServer Raster Attribute Table extension
- description: The Raster Attribute Table extension allows to explore a raster PAM Dataset, and if
- that contains a Raster Attribute table in any bad, to create styles out of it.
- contact:
- name: GeoServer
- email: 'geoserver-users@osgeo.org'
- url: 'https://geoserver.org/comm/'
- host: localhost:8080
- basePath: /geoserver/rest
- paths:
- /workspaces/{workspace}/coveragestores/{store}/coverages/{coverage}/pam:
- get:
- operationId: getPAMDataset
- summary: Retrieve the PAM dataset eventually available in the coverage.
- description: Retrieve the PAM dataset eventually available in the coverage, with the same XML syntax found in GDAL aux.xml files.
- tags:
- - RasterAttributeTable
- parameters:
- - name: workspace
- in: path
- description: The name of the workspace
- required: true
- type: string
- - name: store
- in: path
- description: The name of the coverage datastore
- required: true
- type: string
- - name: coverage
- in: path
- description: The name of the coverage
- required: true
- type: string
- produces:
- - application/xml
- responses:
- 200:
- description: OK
- 404:
- description: No PAM dataset found
- post:
- operationId: createStyleFromRAT
- summary: Create a new style from a PAM band Raster Attribute Table
- description: Creates a new Proxy Base Extension rule.
- tags:
- - RasterAttributeTable
- parameters:
- - name: workspace
- in: path
- description: The name of the workspace
- required: true
- type: string
- - name: store
- in: path
- description: The name of the coverage datastore
- required: true
- type: string
- - name: coverage
- in: path
- description: The name of the coverage
- required: true
- type: string
- - name: band
- type: integer
- in: query
- required: true
- description: The band index where the RAT is to be found (zero based)
- - name: classification
- type: string
- in: query
- required: true
- description: The RAT column to use for classification
- - name: styleName
- type: string
- in: query
- required: false
- description: The name of the generated style
- default: "{coverageName}_b{band}_{classification}"
- responses:
- 201:
- description: Created
- schema:
- type: string
- headers:
- Location:
- description: URL where the newly created rule can be found
- type: string
- 303:
- description: See Other
- schema:
- type: string
- headers:
- Location:
- description: URL where the updated style can be found
- type: string
- 404:
- description: No PAM dataset found
- 400:
- description: Invalid parameters used (e.g., band or classification not found)
- /workspaces/{workspace}/coveragestores/{store}/coverages/{coverage}/pam/reload:
- post:
- operationId: reloadPAMDataset
- summary: Reloads/recomputes the PAM dataset
- description: The PAM is often cached, this operation forces the source to reload it, eventually recomputing it, if for example it's a mosaic with a summary PAM dataset obtained from all its sources
- tags:
- - RasterAttributeTable
- parameters:
- - name: workspace
- in: path
- description: The name of the workspace
- required: true
- type: string
- - name: store
- in: path
- description: The name of the coverage datastore
- required: true
- type: string
- - name: coverage
- in: path
- description: The name of the coverage
- required: true
- type: string
- responses:
- 200:
- description: OK
- 404:
- description: No PAM dataset found
-
|