Hi Jasmeet,
Yeah, unfortunately this is a known issue. You need to include an element to
enable the layer in the xml:
<layer><defaultStyle><name>burg</name></defaultStyle><enabled>true</enabled></layer>
-Justin
On Thu, Mar 17, 2011 at 4:46 AM, Jasmeet Grover
<[email protected]>wrote:
> Hi all,
>
> I need some help from you guys regarding uploading a style using REST.
>
> Detailed problem:-
> using rest to attach(using already uploaded styles) styles the curl
> command is as follows
>
> curl -u admin:geoserver -XPUT -H 'Content-type: text/xml' -d
> '<layer><defaultStyle><name>burg</name></defaultStyle></layer>'
> http://localhost:8080/geoserver/rest/layers/sf:archsites
> where sf is workspace
> and archsites is layername
> problem occur when i try to attach style the layer got disabled and
> gives error in style(but style is chamging)
>
> Thanking you in anticipation
>
> Regards
> Jasmeet Grover
>
>
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users