[Geoserver-users] Use Geoserver REST to update layer name and title

I used the following command to publish an ImagePyramid layer:

curl -u $user:$password -XPUT -H "Content-type: text/plain" -d \
         'file:'$pyramidDir'' \
       
http://$host:$port/geoserver/rest/workspaces/$workspace/coveragestores/$datasetName/external.imagepyramid`
where:
$pyramidDir - /archive/maps/imagery/NAIP/Virginia-Beach/pyramid - This is
where the image pyramid was created using gdal_retile.py
$datasetName - Virginia-Beach

The layer was created successfully. However, the name and the title are
"pyramid". I would like it to be "Virginia-Beach" but don't know how to get
it to work. Not sure if I can specify the name and title when the layer is
created or update them afterward. Either way is ok with me. Any help on
this is greatly appreciated.

Regards,
Tam

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Use-Geoserver-REST-to-update-layer-name-and-title-tp5147983.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I am able to update the layer's name and title using the following:

curl -u admin:geoserver -XPUT -H 'Content-type: application/xml' -d
'<coverage><title>Virginia Beach</title></coverage>'
http://localhost:8081/geoserver/rest/workspaces/vri/coveragestores/Virginia-Beach/coverages/pyramid.xml

My next question is how to I modify the converage parameters such as:
AllowMultiThreading
InputTransparentColor
etc.

Regards,
Tam

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Use-Geoserver-REST-to-update-layer-name-and-title-tp5147983p5148183.html
Sent from the GeoServer - User mailing list archive at Nabble.com.