[Geoserver-users] How to set coverage InputTransparentColor via REST API

I would appreciate if anyone could help me to set the InputTransparentColor via the rest API.

I have been using gsconfig.py to access the API but can’t seem to find a way to do this via that module. I’m new to REST API, so am struggling a bit with figuring out how to implement what is in the REST API documentation.

Thanks in advance,

Jeff Diamond

Hi Jeff,

I used cURL command to change the InputTransparentColor for a specific coverage.

curl -u $user:$pass -v -XPUT -H “Content-type: text/xml” -d “InputTransparentColor000000true” http://$ip:$port/geoserver/rest/workspaces/$workspacename/coveragestores/$coveragename/coverages/$coveragename.xml

Let us know if works for you too.

Best,

Alberto

···

On 28 April 2016 at 17:07, Jeff Diamond <jeff.diamond@anonymised.com> wrote:

I would appreciate if anyone could help me to set the InputTransparentColor via the rest API.

I have been using gsconfig.py to access the API but can’t seem to find a way to do this via that module. I’m new to REST API, so am struggling a bit with figuring out how to implement what is in the REST API documentation.

Thanks in advance,

Jeff Diamond


Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users