123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705 |
- ---
- swagger: '2.0'
- info:
- version: 1.0.0
- title: GeoServer StructuredCoverageStores
- description: A structured coverage store allows description of its "granules" and management of them.
- 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}/index:
- get:
- operationId: getStructuredCoverageIndex
- tags:
- - "StructuredCoverages"
- summary: Get the information schema attached to the granules
- description: Displays a list of all the attributes associated to a particular coverage's granules. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/index.xml" for XML). Defaults to XML representation.
- produces:
- - application/json
- - application/xml
- parameters:
- - name: workspace
- in: path
- required: true
- description: The name of the worskpace containing the coverage stores.
- type: string
- - name: store
- in: path
- required: true
- description: The name of the store to be retrieved
- type: string
- - name: coverage
- in: path
- required: true
- description: The name of the coverage to be retrieved
- type: string
- responses:
- 200:
- description: OK
- schema:
- $ref: "#/definitions/Schema"
- examples:
- application/json: |
- {"Schema": {
- "attributes": {"Attribute": [
- {
- "name": "the_geom",
- "minOccurs": 0,
- "maxOccurs": 1,
- "nillable": true,
- "binding": "org.locationtech.jts.geom.MultiPolygon"
- },
- {
- "name": "location",
- "minOccurs": 0,
- "maxOccurs": 1,
- "nillable": true,
- "binding": "java.lang.String",
- "length": 254
- },
- {
- "name": "ingestion",
- "minOccurs": 0,
- "maxOccurs": 1,
- "nillable": true,
- "binding": "java.util.Date",
- "length": 8
- },
- {
- "name": "elevation",
- "minOccurs": 0,
- "maxOccurs": 1,
- "nillable": true,
- "binding": "java.lang.Integer",
- "length": 9
- }
- ]},
- "href": "http://localhost:8080/geoserver/restng/workspaces/wcs/coveragestores/watertemp/coverages/watertemp/index/granules.json"
- }}
- application/xml: |
- <?xml version="1.0" encoding="UTF-8"?>
- <Schema>
- <attributes>
- <Attribute>
- <name>the_geom</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>org.locationtech.jts.geom.MultiPolygon</binding>
- </Attribute>
- <Attribute>
- <name>location</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.lang.String</binding>
- <length>254</length>
- </Attribute>
- <Attribute>
- <name>ingestion</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.util.Date</binding>
- <length>8</length>
- </Attribute>
- <Attribute>
- <name>elevation</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.lang.Integer</binding>
- <length>9</length>
- </Attribute>
- </attributes>
- <atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="http://localhost:8080/geoserver/rest/workspaces/wcs/coveragestores/watertemp/coverages/watertemp/index/granules.xml" rel="alternate" type="application/xml"/>
- </Schema>
- 401:
- description: Unauthorized
- post:
- operationId: postStructuredCoverageIndex
- tags:
- - "StructuredCoverages"
- description: Invalid, the index cannot be created or modified
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- put:
- operationId: putStructuredCoverageIndex
- tags:
- - "StructuredCoverages"
- description: Invalid, the index cannot be created or modified
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- delete:
- operationId: deleteCoverageStores
- tags:
- - "StructuredCoverages"
- description: Invalid, the index cannot be created or modified
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- /workspaces/{workspace}/coveragestores/{store}/coverages/{coverage}/index/granules:
- get:
- operationId: getStructuredCoverageGranules
- tags:
- - "StructuredCoverages"
- summary: Get the attributes associated to the granules
- description: |
- Displays a list of all the attributes associated to a particular coverage's granules. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/index.xml" for XML). Defaults to XML representation. The XML output is actually WFS 1.0 GML, while the JSON output is GeoJSON
- produces:
- - application/json
- - application/xml
- parameters:
- - name: workspace
- in: path
- required: true
- description: The name of the worskpace containing the coverage stores.
- type: string
- - name: store
- in: path
- required: true
- description: The name of the store to be retrieved
- type: string
- - name: coverage
- in: path
- required: true
- description: The name of the coverage to be retrieved
- type: string
- - name: filter
- in: query
- required: false
- description: A CQL filter to reduce the returned granules
- type: string
- - name: offset
- in: query
- description: Used for paging, the start of the current page
- required: false
- type: integer
- minimum: 0
- default: 0
- - name: limit
- in: query
- description: Used for paging, the number of items to be returned
- required: false
- type: integer
- minimum: 1
- responses:
- 200:
- description: OK
- examples:
- application/json: |
- {
- "type": "FeatureCollection",
- "bbox": [
- 0.23722068851276978,
- 40.562080748421806,
- 14.592757149389236,
- 44.55808294568743
- ],
- "crs": {
- "type": "name",
- "properties": {"name": "EPSG:4326"}
- },
- "features": [
- {
- "type": "Feature",
- "geometry": {
- "type": "MultiPolygon",
- "coordinates": [[ [
- [
- 0.2372,
- 40.5621
- ],
- [
- 0.2372,
- 44.5581
- ],
- [
- 14.5928,
- 44.5581
- ],
- [
- 14.5928,
- 40.5621
- ],
- [
- 0.2372,
- 40.5621
- ]
- ]]]
- },
- "properties": {
- "location": "NCOM_wattemp_000_20081101T0000000_12.tiff",
- "ingestion": "2008-11-01T00:00:00.000+0000",
- "elevation": 0
- },
- "id": "watertemp.1"
- },
- {
- "type": "Feature",
- "geometry": {
- "type": "MultiPolygon",
- "coordinates": [[ [
- [
- 0.2372,
- 40.5621
- ],
- [
- 0.2372,
- 44.5581
- ],
- [
- 14.5928,
- 44.5581
- ],
- [
- 14.5928,
- 40.5621
- ],
- [
- 0.2372,
- 40.5621
- ]
- ]]]
- },
- "properties": {
- "location": "NCOM_wattemp_000_20081031T0000000_12.tiff",
- "ingestion": "2008-10-31T00:00:00.000+0000",
- "elevation": 0
- },
- "id": "watertemp.2"
- }
- ]
- }
-
- application/xml: |
- <?xml version="1.0" encoding="UTF-8"?>
- <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:gf="http://www.geoserver.org/rest/granules" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:coord>
- <gml:X>0.23722068851276978</gml:X>
- <gml:Y>40.562080748421806</gml:Y>
- </gml:coord>
- <gml:coord>
- <gml:X>14.592757149389236</gml:X>
- <gml:Y>44.55808294568743</gml:Y>
- </gml:coord>
- </gml:Box>
- </gml:boundedBy>
- <gml:featureMember>
- <gf:watertemp fid="watertemp.1">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:coordinates>0.237221,40.562081 14.592757,44.558083</gml:coordinates>
- </gml:Box>
- </gml:boundedBy>
- <gf:the_geom>
- <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:polygonMember>
- <gml:Polygon>
- <gml:outerBoundaryIs>
- <gml:LinearRing>
- <gml:coordinates>0.237221,40.562081 0.237221,44.558083 14.592757,44.558083 14.592757,40.562081 0.237221,40.562081</gml:coordinates>
- </gml:LinearRing>
- </gml:outerBoundaryIs>
- </gml:Polygon>
- </gml:polygonMember>
- </gml:MultiPolygon>
- </gf:the_geom>
- <gf:location>NCOM_wattemp_000_20081101T0000000_12.tiff</gf:location>
- <gf:ingestion>2008-11-01T00:00:00Z</gf:ingestion>
- <gf:elevation>0</gf:elevation>
- </gf:watertemp>
- </gml:featureMember>
- <gml:featureMember>
- <gf:watertemp fid="watertemp.2">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:coordinates>0.237221,40.562081 14.592757,44.558083</gml:coordinates>
- </gml:Box>
- </gml:boundedBy>
- <gf:the_geom>
- <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:polygonMember>
- <gml:Polygon>
- <gml:outerBoundaryIs>
- <gml:LinearRing>
- <gml:coordinates>0.237221,40.562081 0.237221,44.558083 14.592757,44.558083 14.592757,40.562081 0.237221,40.562081</gml:coordinates>
- </gml:LinearRing>
- </gml:outerBoundaryIs>
- </gml:Polygon>
- </gml:polygonMember>
- </gml:MultiPolygon>
- </gf:the_geom>
- <gf:location>NCOM_wattemp_000_20081031T0000000_12.tiff</gf:location>
- <gf:ingestion>2008-10-31T00:00:00Z</gf:ingestion>
- <gf:elevation>0</gf:elevation>
- </gf:watertemp>
- </gml:featureMember>
- </wfs:FeatureCollection>
- 401:
- description: Unauthorized
- post:
- operationId: postStructuredCoverageGranules
- tags:
- - "StructuredCoverages"
- description: Invalid, the granules cannot harvested here, use a POST request on /workspaces/{workspace}/coveragestores/{store}
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- put:
- operationId: putStructuredCoverageGranules
- tags:
- - "StructuredCoverages"
- description: Invalid, the granules cannot harvested here, use a POST request on /workspaces/{workspace}/coveragestores/{store}
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- delete:
- operationId: deleteStructuredCoverageGranules
- tags:
- - "StructuredCoverages"
- description: Allows removing one or more granules from the index
- parameters:
- - name: workspace
- in: path
- required: true
- description: The name of the worskpace containing the coverage stores.
- type: string
- - name: store
- in: path
- required: true
- description: The name of the store to be retrieved
- type: string
- - name: coverage
- in: path
- required: true
- description: The name of the coverage to be retrieved
- type: string
- - name: filter
- in: query
- required: false
- description: A CQL filter to reduce the returned granules
- type: string
- - name: purge
- in: query
- description: The purge parameter specifies if and how the underlying raster data source is deleted.
- Allowable values for this parameter are "none", "metadata" and "all".
- When set to "none" data and auxiliary files are preserved, only the registration in the mosaic is removed
- When set to "metadata" delete only auxiliary files and metadata (e.g. NetCDF sidecar indexes).
- It’s recommended when data files (such as granules) should not be deleted from disk.
- Finally, when set to "all" both data and auxiliary files are removed.
- required: false
- type: string
- minimum: 0
- - name: updateBBox
- in: query
- required: false
- description: When set to "true", triggers re-calculation of the layer native bbox. Defaults to "false".
- responses:
- 200:
- description: OK
- 405:
- description: Method Not Allowed
- /workspaces/{workspace}/coveragestores/{store}/coverages/{coverage}/index/granules/{granuleId}:
- get:
- operationId: getStructuredCoverageGranule
- tags:
- - "StructuredCoverages"
- summary: Get the attributes of a particular granule
- description: Displays a list of all the attributes associated to a particular coverage's granule. Use the "Accept:" header to specify format or append an extension to the endpoint (example "/index.xml" for XML). Defaults to XML representation. The XML output is actually WFS 1.0 GML, while the JSON output is GeoJSON
- produces:
- - application/json
- - application/xml
- parameters:
- - name: workspace
- in: path
- required: true
- description: The name of the worskpace containing the coverage stores.
- type: string
- - name: store
- in: path
- required: true
- description: The name of the store to be retrieved
- type: string
- - name: coverage
- in: path
- required: true
- description: The name of the coverage to be retrieved
- type: string
- - name: granuleId
- type: string
- in: path
- required: true
- description: The granule ID
- responses:
- 200:
- description: OK
- examples:
- application/json: |
- {
- "type": "FeatureCollection",
- "bbox": [
- 0.23722068851276978,
- 40.562080748421806,
- 14.592757149389236,
- 44.55808294568743
- ],
- "crs": {
- "type": "name",
- "properties": {"name": "EPSG:4326"}
- },
- "features": [
- {
- "type": "Feature",
- "geometry": {
- "type": "MultiPolygon",
- "coordinates": [[ [
- [
- 0.2372,
- 40.5621
- ],
- [
- 0.2372,
- 44.5581
- ],
- [
- 14.5928,
- 44.5581
- ],
- [
- 14.5928,
- 40.5621
- ],
- [
- 0.2372,
- 40.5621
- ]
- ]]]
- },
- "properties": {
- "location": "NCOM_wattemp_000_20081101T0000000_12.tiff",
- "ingestion": "2008-11-01T00:00:00.000+0000",
- "elevation": 0
- },
- "id": "watertemp.1"
- }
- ]
- }
- application/xml: |
- <?xml version="1.0" encoding="UTF-8"?>
- <wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:gf="http://www.geoserver.org/rest/granules" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:coord>
- <gml:X>0.23722068851276978</gml:X>
- <gml:Y>40.562080748421806</gml:Y>
- </gml:coord>
- <gml:coord>
- <gml:X>14.592757149389236</gml:X>
- <gml:Y>44.55808294568743</gml:Y>
- </gml:coord>
- </gml:Box>
- </gml:boundedBy>
- <gml:featureMember>
- <gf:watertemp fid="watertemp.1">
- <gml:boundedBy>
- <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:coordinates>0.237221,40.562081 14.592757,44.558083</gml:coordinates>
- </gml:Box>
- </gml:boundedBy>
- <gf:the_geom>
- <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
- <gml:polygonMember>
- <gml:Polygon>
- <gml:outerBoundaryIs>
- <gml:LinearRing>
- <gml:coordinates>0.237221,40.562081 0.237221,44.558083 14.592757,44.558083 14.592757,40.562081 0.237221,40.562081</gml:coordinates>
- </gml:LinearRing>
- </gml:outerBoundaryIs>
- </gml:Polygon>
- </gml:polygonMember>
- </gml:MultiPolygon>
- </gf:the_geom>
- <gf:location>NCOM_wattemp_000_20081101T0000000_12.tiff</gf:location>
- <gf:ingestion>2008-11-01T00:00:00Z</gf:ingestion>
- <gf:elevation>0</gf:elevation>
- </gf:watertemp>
- </gml:featureMember>
- </wfs:FeatureCollection>
- 401:
- description: Unauthorized
- post:
- operationId: postStructuredCoverageGranule
- tags:
- - "StructuredCoverages"
- description: Invalid, the granules cannot harvested here, use a POST request on /workspaces/{workspace}/coveragestores/{store}
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- put:
- operationId: putStructuredCoverageGranule
- tags:
- - "StructuredCoverages"
- description: Invalid, the granules cannot harvested here, use a POST request on /workspaces/{workspace}/coveragestores/{store}
- responses:
- 401:
- description: Unauthorized
- 405:
- description: Method Not Allowed
- delete:
- operationId: deleteStructuredCoverageGranule
- tags:
- - "StructuredCoverages"
- description: Allows removing the specified granule
- parameters:
- - name: workspace
- in: path
- required: true
- description: The name of the worskpace containing the coverage stores.
- type: string
- - name: store
- in: path
- required: true
- description: The name of the store to be retrieved
- type: string
- - name: coverage
- in: path
- required: true
- description: The name of the coverage to be retrieved
- type: string
- - name: granuleId
- type: string
- in: path
- required: true
- description: The granule ID
- - name: purge
- in: query
- description: The purge parameter specifies if and how the underlying raster data source is deleted.
- Allowable values for this parameter are "none", "metadata" and "all".
- When set to "none" data and auxiliary files are preserved, only the registration in the mosaic is removed
- When set to "metadata" delete only auxiliary files and metadata (e.g. NetCDF sidecar indexes).
- It’s recommended when data files (such as granules) should not be deleted from disk.
- Finally, when set to "all" both data and auxiliary files are removed.
- required: false
- type: string
- minimum: 0
- - name: updateBBox
- in: query
- required: false
- description: When set to "true", triggers re-calculation of the layer native bbox. Defaults to "false".
- responses:
- 200:
- description: OK
- 401:
- description: Unauthorized
- definitions:
- Schema:
- type: object
- required: [ attributes, link ]
- example: |
- <?xml version="1.0" encoding="UTF-8"?>
- <Schema>
- <attributes>
- <Attribute>
- <name>the_geom</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>org.locationtech.jts.geom.MultiPolygon</binding>
- </Attribute>
- <Attribute>
- <name>location</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.lang.String</binding>
- <length>254</length>
- </Attribute>
- <Attribute>
- <name>ingestion</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.util.Date</binding>
- <length>8</length>
- </Attribute>
- <Attribute>
- <name>elevation</name>
- <minOccurs>0</minOccurs>
- <maxOccurs>1</maxOccurs>
- <nillable>true</nillable>
- <binding>java.lang.Integer</binding>
- <length>9</length>
- </Attribute>
- </attributes>
- <atom:link xmlns:atom="http://www.w3.org/2005/Atom" href="http://localhost:8080/geoserver/rest/workspaces/wcs/coveragestores/watertemp/coverages/watertemp/index/granules.xml" rel="alternate" type="application/xml"/>
- </Schema>
- properties:
- attributes:
- type: array
- description: List of attributes
- items:
- $ref: "#/definitions/Attribute"
- link:
- type: string
- description: Link to the list of granules
- Attribute:
- type: object
- description: An attribute description
- properties:
- name:
- type: string
- description: Name of the attribute
- minOccurs:
- type: integer
- description: Minimum number of occurrences (0 for optional attribute)
- maxOccurs:
- type: integer
- description: Maximumn number of occurrences (normally 1)
- nillable:
- type: boolean
- description: If the attribute can be missing
- binding:
- type: string
- description: Name of the java class for the attribute
- length:
- type: integer
- description: Length of the field
|