Hello!
I’m struggling to understand, is there a way to automate file transfer from a
local machine to remote geoserver using curl or anything else (other than
manually copy-paste to server’s file system)?
The goal is to take a local geotiff (I get new files every day) and transfer it
to the image mosaic directory inside the remote geoserver instance so I could
harvest new granules using curl command.
I tried to «upload resource» using this command:
curl -u login:pw -XPUT -H "Content-type:application/zip" @20220701.zip
{host}/geoserver/rest/resource/coverages/test_data
but it returns 405 informing that I’m attempting to write data to a
directory...well, that’s what I’m trying to achieve but apparently using the
wrong way.
P.S. I guess packing tif into zip was a mistake but don’t really know what
content-type to use for it.
--
Sincerely,
Yaras
_______________________________________________
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