Some alternatives:

* Modify your client to request the "raster" style explicitly when making
WMS requests
* Submit a patch for RESTConfig to setup the style properly (it's already
dealing with the configuration objects, so you can avoid having to parse XML
this way)
* Use .json instead of .xml; depending on the language this may be simpler
to deal with.

--
David Winslow
OpenGeo - http://opengeo.org/

On Thu, Aug 26, 2010 at 8:31 AM, Jon Britton <[email protected]>wrote:

> Hi,
>
> I'm currently using the REST API to add a GeoTiff to GeoServer.  However,
> when I try and access it using WMS it doesn't work because it has no default
> style.  The only way I can think of is to GET the layers XML, add the
> default style then PUT the XML back.  This would require some XML parsing
> though, which I'd rather avoid if I can.  Is there a simpler way of doing
> this?
>
> Thanks,
>
> Jon
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to