[Chameleon] save SLD/open SLD widgets

Paul Spencer pagameba at magma.ca
Fri Jun 18 17:20:31 EDT 2004


Liz,

I just tried this (as per comments in bug:

http://www.maptools.org/bugzilla/show_bug.cgi?id=456

and it works fine for me ... what exactly are you trying to do?  A layer 
must have classes and styles associated with it to be available for 
extracting an SLD document for it.

So I should explain ...

In the client map file (either loaded by Context or MAP file) you will 
have WMS layers.  When you Upload an SLD, the SLD is applied to the 
layers in the map file by finding a layer of the appropriate name for 
each NamedLayer element in the SLD, and then classes and styles are 
created for each rule/symbolizer.  When you download the SLD document, 
it does the reverse ... so for each WMS layer, it will create a 
NamedLayer in the generated SLD and create rules and symbolizers for 
each of the class/styles on each layer.  Right now, the only way to 
create these classes/styles is to upload an SLD first or use the 
sample_other with the SECTPopup widget (which does have some problems 
still), or create a MAP file with WMS client layers and create 
classes/styles on them (if you do this, you need to add a metadata item 
to your layer "wms_sld_body" "auto" (I think this is right)

Cheers,

Paul

Godwin, Liz wrote:

> Could someone (Paul ? ) please explain how the Open/Save SLD widgets are 
> supposed to work?  When I try to use them (in ogc sample) it says that 
> there are no layers or classes to export.  Should I be doing something 
> first?  Is there a setting somewhere?
>  
> Thanks!
>  
> Liz Godwin
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



More information about the Chameleon mailing list