Hi!

I am trying to modify coveragestore URL (with Geoserver REST API), with
purpose of getting up-to-date coverage that's been created every 15 min,
but I end up getting:
< HTTP/1.1 405 Method Not Allowed
< Allow: DELETE, GET, PUT

This is my method (using PHP):

$filename = "GEOTIF_201802280845.tif" // This variable is changable, and I
always get it automatically in a form GEOTIF_yyyymmddhmin.tif
...
// POST
$request = "rest/workspaces/ws_name/coveragestores";
...
//POST data
$xmlStr = "
<coverageStore>
<name>coveragestorename</name>
<type>GeoTIFF</type>
<enabled>true</enabled>
<workspace><name>ws_name</name></workspace>
<url> file:///path/to/the/file/". $filename . "</url>
</coverageStore>
";

Can someone point out what am I doing wrong?

Thanks in advance!

Daria







------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Reply via email to