I am running into the a problem with creating a coverage with GeoServer REST API. Somehow when creating the coverage it does not load the band definitions.
I tried several thing but so far nothing worked. For example: I read somewhere that by creating the coverage store I needed to set it to 'external', so I did. Afterwards I created a new coverage. But still the band definitions where not loaded into Geoserver.
See the example here: going to the link: http://localhost/geoserver/rest/workspaces/LIWO_Primair/coveragestores
<coverageStore>
<name>geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte</name>
<description>geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte</description>
<type>ArcGrid</type>
<enabled>true</enabled>
<workspace>
<name>LIWO_Primair</name>
<href>http://localhost/geoserver/rest/workspaces/LIWO_Primair.xml</href>
</workspace>
<url>file:data/LIWO_Primair/geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte.asc</url>
<coverages>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
href="http://localhost/geoserver/rest/workspaces/LIWO_Primair/coveragestores/geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte/external/coverages.xml"
type="application/xml"/>
</coverages>
</coverageStore>
I also tried to add other things into the coverage itself to get this error fixed. Too many to sum up right now. This is what the coverage call looks like right now.
<coverage>
<name>geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte</name>
<nativeName>geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte</nativeName>
<title>geo_schiermonnikoog__jachthaven__tp-1d__waterdiepte</title>
<nativeCRS>PROJCS["Amersfoort / RD New",GEOGCS["Amersfoort",DATUM["Amersfoort",SPHEROID["Bessel 1841", 6377397.155, 299.1528128, AUTHORITY["EPSG","7004"]],TOWGS84[565.2369, 50.0087, 465.658, -0.40685733032239757, -0.3507326765425626, 1.8703473836067959, 4.0812],AUTHORITY["EPSG","6289"]],PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4289"]], PROJECTION["Oblique_Stereographic", AUTHORITY["EPSG","9809"]], PARAMETER["central_meridian", 5.38763888888889], PARAMETER["latitude_of_origin", 52.15616055555555], PARAMETER["scale_factor", 0.9999079], PARAMETER["false_easting", 155000.0], PARAMETER["false_northing", 463000.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","28992"]]</nativeCRS>
<srs>EPSG:28992</srs>
<enabled>true</enabled>
<advertised>true</advertised>
<nativeFormat>ArcGrid</nativeFormat>
<supportedFormats>
<string>ArcGrid</string>
<string>GeoTIFF</string>
<string>GIF</string>
<string>Gtopo30</string>
<string>ImageMosaic</string>
<string>JPEG</string>
<string>PNG</string>
<string>TIFF</string>
</supportedFormats>
<interpolationMethods>
<string>nearest neighbor</string>
<string>bilinear</string>
<string>bicubic</string>
</interpolationMethods>
<defaultInterpolationMethod>nearest neighbor</defaultInterpolationMethod>
<projectionPolicy>FORCE_DECLARED</projectionPolicy>
</coverage>
Is there a way to load the band definitions within the create call? or is there a way to do this outside of the create call?
It would be very helpful to get this working.
edit: The question from RoVo what I mean with band definitions.