The http response status code 415 tells you that you posted with an
unsupported media type. You set the type to "text/plain" which GeoServer
apparently doesn't support for this type of request.
For NetCDF files change your content type header to "Content-Type:
application/x-netcdf".
Moreover, when you want to overwrite the NetCDF file, you are missing
"{method}.{format}" in your url.
So in your case it would be
"http://localhost:8080/geoserver/rest/workspaces/myworkspace/coveragestores/mycoveragestore
name/file.netcdf".
On 08.03.23 12:44, Matina Nikolopoulou wrote:
Thank you very much Martin,
by copy-paste my file manually and using POST reset I can see the
updated one, but still I haven't managed to use the Put request to
automatically overwrite the .nc file and see what happens. I use curl
-u admin:geoserver -v -XPUT -H "Content-Type: text/plain" -d
"file:///the path/name of the .nc"
"http://localhost:8080/geoserver/rest/workspaces/myworkspace/coveragestores/mycoveragestore
name" but there is no replacement, no overwriting. I receive HTTP/1.1
415. I am new to these things.
Kind Regards,
Matina
On Tue, Mar 7, 2023 at 2:06 PM Martin Pontius <m.pont...@52north.org>
wrote:
Hi Matina,
how about a PUT request against the coverage store endpoint
(//workspaces/{workspace}/coveragestores/{store}/{method}.{format}/)?
See:
https://docs.geoserver.org/latest/en/api/#1.0.0/coveragestores.yaml
This should make the update. However, I don't know if you need to
do anything in addition with caching in order to properly work
with WMS.
Kind regards,
Martin
On 07.03.23 12:19, Matina Nikolopoulou wrote:
I am trying the update with geoserver rest api for
coveragestores, by POST. Is that possible? I have one netcdf
store, I don't use mosaic.
On Mon, Mar 6, 2023 at 12:27 PM Matina Nikolopoulou
<stamati...@gmail.com> wrote:
Hello, I am working on a project where I uploaded a netcdf
file with time dimension, I use WMS service and this .nc
has to be updated on a daily basis.
I have updated the file with the new one but wms still
services the previous one. Do you have any idea how this can
be achieved automatically without republishing the file?
Thank you
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to
this list:
- Earning your support instead of buying it, but Ian
Turton:http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting
guidelines:http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see
this:https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Martin Pontius
52°North Spatial Information Research GmbH
Martin-Luther-King-Weg 24
48155 Muenster, Germany
E-Mail:m.pont...@52north.org
Fon: +49-(0)-251/396371-41
Fax: +49-(0)-251/396371-11
https://52north.org/
Twitter: @FiveTwoN
Managing Directors: Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke
Local Court Muenster HRB 10849
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before
posting to this list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Martin Pontius
52°North Spatial Information Research GmbH
Martin-Luther-King-Weg 24
48155 Muenster, Germany
E-Mail:m.pont...@52north.org
Fon: +49-(0)-251/396371-41
Fax: +49-(0)-251/396371-11
https://52north.org/
Twitter: @FiveTwoN
Managing Directors: Dr. Benedikt Gräler, Dr. Simon Jirka, Matthes Rieke
Local Court Muenster HRB 10849
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users