<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi Jeff,<br>
    thank you very much, now it works.<br>
    <br>
    Should this information be included in the documentation?<br>
    <br>
    Daniel<br>
    <br>
    Am 07/02/2011 17:14, schrieb Jean-Fran&ccedil;ois Gigand:
    <blockquote
      cite="mid:AANLkTimGanxfrOvZeiF=-kbzgSa2yoGNH7PkcpEwYCMQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi,

Maybe the layer has to be enabled (STATUS property) to appear in the SLD?
If you want to keep it disabled in your mapFile, you can enable it
programmatically just before calling generateSLD() by setting "status"
to MS_ON.

Jeff


2011/2/7 Daniel Degasperi <a class="moz-txt-link-rfc2396E" href="mailto:daniel.degasperi@r3-gis.com">&lt;daniel.degasperi@r3-gis.com&gt;</a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
I've used the function generateSLD from the layerObj class to create a sld
snippet, but the output was a empty sld file:

&lt;StyledLayerDescriptor version="1.0.0" xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a>
xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>
xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>&gt;
&lt;/StyledLayerDescriptor&gt;

I'm using following mapfile with mapserver 5.6.5:

MAP
NAME "test.map"
SIZE 256 256
RESOLUTION 72


OUTPUTFORMAT
&nbsp;&nbsp;&nbsp; NAME "aggpng24"
&nbsp;&nbsp;&nbsp; DRIVER "AGG/PNG"
&nbsp;&nbsp;&nbsp; MIMETYPE "image/png"
&nbsp;&nbsp;&nbsp; IMAGEMODE RGB
&nbsp;&nbsp;&nbsp; EXTENSION "png"
&nbsp;&nbsp;&nbsp; FORMATOPTION "INTERLACE=OFF"
&nbsp;&nbsp;&nbsp; TRANSPARENT ON
&nbsp;&nbsp;&nbsp; FORMATOPTION "INTERLACE=OFF"
END
WEB
&nbsp;&nbsp;&nbsp; METADATA
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_onlineresource"
<a class="moz-txt-link-rfc2396E" href="http://dev/public/services/ows.php?map=test.map">"http://dev/public/services/ows.php?map=test.map"</a>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_title"&nbsp;&nbsp;&nbsp; "test"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_abstract"&nbsp;&nbsp;&nbsp; ""
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_feature_info_mime_type"&nbsp;&nbsp;&nbsp; "text/html"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_service_onlineresource"&nbsp;&nbsp;&nbsp; ""
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_srs"&nbsp;&nbsp;&nbsp; "EPSG:32632 EPSG:4326 EPSG:900913"

&nbsp;&nbsp;&nbsp; END
&nbsp;&nbsp;&nbsp; IMAGEPATH "/tmp/ms_tmp/"
&nbsp;&nbsp;&nbsp; IMAGEURL "/tmp/"
END

LAYER
&nbsp;&nbsp;&nbsp; GROUP "test"
&nbsp;&nbsp;&nbsp; NAME "test"
&nbsp;&nbsp;&nbsp; TYPE LINE
&nbsp;&nbsp;&nbsp; STATUS OFF
&nbsp;&nbsp;&nbsp; METADATA
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_title"&nbsp;&nbsp;&nbsp; "test"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_extent"&nbsp;&nbsp;&nbsp; "482003.57067363 5006503.5706736 537996.42932637
5062496.4293264"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "ows_srs"&nbsp;&nbsp;&nbsp; "EPSG:32632"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "gml_geometries"&nbsp;&nbsp;&nbsp; "the_geom"

&nbsp;&nbsp;&nbsp; END
&nbsp;&nbsp;&nbsp; PROJECTION
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs "
&nbsp;&nbsp;&nbsp; END
&nbsp;&nbsp;&nbsp; EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264
&nbsp;&nbsp;&nbsp; CONNECTIONTYPE POSTGIS
&nbsp;&nbsp;&nbsp; CONNECTION "user=test password=test dbname=test host=localhost
port=5432"
&nbsp;&nbsp;&nbsp; DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632"
&nbsp;&nbsp;&nbsp; PROCESSING "CLOSE_CONNECTION=DEFER"
&nbsp;&nbsp;&nbsp; SIZEUNITS pixels
&nbsp;&nbsp;&nbsp; CLASS
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "l103106"
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXPRESSION ('[code]' eq 'L103106')
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STYLE
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 76 230 0
&nbsp;&nbsp;&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sp;&nbsp; MINWIDTH 2
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END
&nbsp;&nbsp;&nbsp; END
END

###### SYMBOLS #######

SYMBOL
NAME "CIRCLE"
TYPE ELLIPSE
FILLED TRUE
POINTS
1 1
END
END


END #MAP

Can somebody help me?

Best regards,
Daniel

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>


</pre>
      </blockquote>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <div class="moz-signature">
        <table style="display: block;" width="100%" align="left"
          border="0" cellpadding="0" cellspacing="0">
          <tbody>
            <tr>
              <td colspan="2"> <font face="DejaVu
                  Sans,Verdana,Arial,Helvetica,sans-serif" size="2"> <strong>Daniel
                    Degasperi</strong><br>
                  <strong><font color="#ffa64c">R3 </font><font
                      color="#9c9c9c">GIS</font></strong> Srl - GmbH<br>
                  Via Johann Kravogl-Str. 2<br>
                  I-39012 Meran/Merano (BZ)<br>
                  web: <a href="http://www.r3-gis.com/" target="_blank">www.r3-gis.com</a><br>
                  Email: <a href="mailto:daniel.degasperi@r3-gis.com"
                    target="_blank">daniel.degasperi@r3-gis.com</a><br>
                  Tel. : +39 0473 494949<br>
                  Fax : +39 0473 069902<br>
                </font></td>
            </tr>
            <tr>
              <td colspan="2"> <font color="#888888" face="DejaVu
                  Sans,Verdana,Arial,Helvetica,sans-serif" size="1"><br>
                  <strong>ATTENZIONE!</strong> Le informazioni contenute
                  nella presente e-mail e nei documenti eventualmente
                  allegati sono confidenziali. La loro diffusione,
                  distribuzione e/o riproduzione da parte di terzi,
                  senza autorizzazione del mittente &egrave; vietata e pu&ograve;
                  violare il D. Lgs. 196/2003. In caso di ricezione per
                  errore, Vogliate immediatamente informare il mittente
                  del messaggio e distruggere la e-mail.<br>
                  <br>
                  <strong>ACHTUNG!</strong> Die in dieser Nachricht oder
                  in den beigelegten Dokumenten beinhalteten
                  Informationen sind streng vertraulich. Ihre
                  Verbreitung und/oder ihre Wiedergabe durch Dritte ist
                  ohne Erlaubnis des Absenders verboten und verst&ouml;&szlig;t
                  gegen das Legislativdekret 196/2003. Sollten Sie diese
                  Mitteilung irrt&uuml;mlicherweise erhalten haben, bitten
                  wir Sie uns umgehend zu informieren und anschlie&szlig;end
                  die Mitteilung zu vernichten.<br>
                  <br>
                  <strong>WARNING!</strong> This e-mail may contain
                  confidential and/or privileged information. If you are
                  not the intended recipient (or have received this
                  e-mail in error) please notify the sender immediately
                  and destroy this e-mail. Any unauthorised copying,
                  disclousure or distribution of the material in this
                  e-mail is strictly forbidden and could be against the
                  law (D. Lgs. 196/2003)<br>
                  <br>
                  <br>
                  <br>
                  <br>
                  <br>
                </font></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </body>
</html>