|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager
it.geosolutions.geoserver.rest.manager.GeoServerRESTStructuredGridCoverageReaderManager
public class GeoServerRESTStructuredGridCoverageReaderManager
Manage GeoTools StructuredGridCoverageReader. It allows to create a store from a file or harvest the coverages contained in a file, to delete granules from an existing coverage and eventually to get information about the granules inside a StructuredGridCoverageReader.
| Nested Class Summary | |
|---|---|
static class |
GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption
Option that tells GeoServer whether or not to configure all the coverages for a certain ImageMosaic. |
| Field Summary |
|---|
| Fields inherited from class it.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager |
|---|
gsBaseUrl, gspass, gsuser |
| Constructor Summary | |
|---|---|
GeoServerRESTStructuredGridCoverageReaderManager(URL restURL,
String username,
String password)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
create(String workspace,
String coverageStore,
String path)
Create a new ImageMosaic with the provided configuration provided as a zip file. |
boolean |
create(String workspace,
String coverageStore,
String path,
GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)
Create a new ImageMosaic with the provided configuration provided as a zip file. |
RESTStructuredCoverageGranulesList |
getGranuleById(String workspace,
String coverageStore,
String coverage,
String id)
Get information about a granule for a structured coverage. |
RESTStructuredCoverageIndexSchema |
getGranuleIndexSchema(String workspace,
String coverageStore,
String coverage)
Get information about the schema of the index for a structured coverage. |
RESTStructuredCoverageGranulesList |
getGranules(String workspace,
String coverageStore,
String coverage)
Get information about all the granules for a coverage with optional filter and paging. |
RESTStructuredCoverageGranulesList |
getGranules(String workspace,
String coverageStore,
String coverage,
String filter,
Integer offset,
Integer limit)
Get information about the granules for a coverage with optional filter and paging. |
boolean |
harvestExternal(String workspace,
String coverageStore,
String format,
String path)
Create a store or harvest the coverage from the provided external path. |
boolean |
removeGranuleById(String workspace,
String coverageStore,
String coverage,
String granuleId)
Remove a granule from a structured coverage by id. |
boolean |
removeGranulesByCQL(String workspace,
String coverageStore,
String coverage,
String filter)
Remove granules from a structured coverage, by providing a CQL filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoServerRESTStructuredGridCoverageReaderManager(URL restURL,
String username,
String password)
throws IllegalArgumentException
restURL - GeoServer REST API endpointusername - GeoServer REST API authorized usernamepassword - GeoServer REST API password for the former username
IllegalArgumentException| Method Detail |
|---|
public boolean create(String workspace,
String coverageStore,
String path)
This call configures all the coverages contained in the ImageMosaic.
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorethe - absolute path to the file to upload
true if the call succeeds or false otherwise.
public boolean create(String workspace,
String coverageStore,
String path,
GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)
With the options configure we can decide whether or not to configure or not the coverages contained in the ImageMosaic.
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorethe - absolute path to the file to uploadconfigureOpt - tells GeoServer whether to configure all coverages in this mosaic (ALL) or none of them (NONE).
true if the call succeeds or false otherwise.
public boolean harvestExternal(String workspace,
String coverageStore,
String format,
String path)
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to uploadthe - absolute path to the file to upload
true if the call succeeds or false otherwise.
public boolean removeGranulesByCQL(String workspace,
String coverageStore,
String coverage,
String filter)
throws UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coverage from which we are going to removefilter - the absolute path to the file to upload
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
public boolean removeGranuleById(String workspace,
String coverageStore,
String coverage,
String granuleId)
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coverage from which we are going to removefilter - the absolute path to the file to upload
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
public RESTStructuredCoverageIndexSchema getGranuleIndexSchema(String workspace,
String coverageStore,
String coverage)
throws MalformedURLException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to upload
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
public RESTStructuredCoverageGranulesList getGranules(String workspace,
String coverageStore,
String coverage)
throws MalformedURLException,
UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coverage
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
public RESTStructuredCoverageGranulesList getGranules(String workspace,
String coverageStore,
String coverage,
String filter,
Integer offset,
Integer limit)
throws MalformedURLException,
UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coveragefilter - the format of the file to upload, can be null to include all the granulesoffset - the start page, can be null or an integerlimit - the dimension of the page, can be null or a positive integer
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
public RESTStructuredCoverageGranulesList getGranuleById(String workspace,
String coverageStore,
String coverage,
String id)
throws MalformedURLException,
UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to uploadthe - absolute path to the file to uploadid - the ID of the granule to get information for
null in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.
MalformedURLException
UnsupportedEncodingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||