Hello,

I am running into an issue with adding a style to an existing layer via API
in Python.
The existing layer has 1 style and I want to add a send.

{"styles":{"style":[{"name":"tp_raster_ramp","href":"https:\/\/myserver.com\/geoserver\/rest\/layers\/bambarahar\/styles\/tp_raster_ramp.json"}]}}

{"styles":{"style":[{"name":"tp_raster_ramp","href":"https:\/\/myserver.com\/geoserver\/rest\/layers\/applehar\/styles\/tp_raster_ramp.json"},{"name":"tp_raster_generic","href":"https:\/\/geoserver.terrapop.org\/geoserver\/rest\/layers\/applehar\/styles\/tp_raster_generic.json"}]}}

My question is what I put in the payload. Currently, I have been
constructing both styles via json object but I keep getting an class
errors.

http://docs.geoserver.org/stable/en/user/rest/api/layers.html


-- 
David Haynes, Ph.D.
Research Associate Terra Populus
Minnesota Population Center
612-626-3933
www.terrapop.org
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to