I'm attempting to use the REST API to update an existing netCDF data store
without any success.

For a bit of background: my group has built a system to harvest data from
various sources on an hourly basis and put it all in a netCDF file. We hope
to be able to update the existing data store rather than creating a new one
with every update.

This is my current curl command:
curl -v -u username:password -XPUT -H “Content-Type: text/plain” -d "file///
2015_archive_replacement_testing.nc"
http://198.82.152.38:8080/geoserver/rest/workspaces/netCDFtesting/coveragestores/replacement_testing/file.netcdf

The error I get back is "Error while storing uploaded file::Unable to
delete file: /path/to/file/replacement_testing.netcdf* Closing connection
1" I've checked, and the chmod of that file is 777.

Here are some questions I've been developing:
1) Is the curl command correct?
2) Does Geoserver 2.7.2 (with netCDF and netCDF output extensions) support
updating netCDF files? If no, is there information about what needs to be
implemented to build this functionality?
3) Is the curl command using the correct interface (should it be datastores
instead of coveragestores)? If it should be using datastores, then the
answer to 2) is likely "no", since that error message states: "Unsupported
format: netcdf* Closing connection 1"


Thanks,
Brian

-- 
Brian Farrell
Project Associate
Center for Geospatial Information Technology
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to