<!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ç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"><daniel.degasperi@r3-gis.com></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:
<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>>
</StyledLayerDescriptor>
I'm using following mapfile with mapserver 5.6.5:
MAP
NAME "test.map"
SIZE 256 256
RESOLUTION 72
OUTPUTFORMAT
NAME "aggpng24"
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGB
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
TRANSPARENT ON
FORMATOPTION "INTERLACE=OFF"
END
WEB
METADATA
"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>
"ows_title" "test"
"ows_abstract" ""
"wms_feature_info_mime_type" "text/html"
"ows_service_onlineresource" ""
"wms_srs" "EPSG:32632 EPSG:4326 EPSG:900913"
END
IMAGEPATH "/tmp/ms_tmp/"
IMAGEURL "/tmp/"
END
LAYER
GROUP "test"
NAME "test"
TYPE LINE
STATUS OFF
METADATA
"ows_title" "test"
"ows_extent" "482003.57067363 5006503.5706736 537996.42932637
5062496.4293264"
"ows_srs" "EPSG:32632"
"gml_geometries" "the_geom"
END
PROJECTION
"+proj=utm +zone=32 +ellps=WGS84 +datum=WGS84 +units=m +no_defs "
END
EXTENT 482003.57067363 5006503.5706736 537996.42932637 5062496.4293264
CONNECTIONTYPE POSTGIS
CONNECTION "user=test password=test dbname=test host=localhost
port=5432"
DATA "the_geom FROM test USING UNIQUE gid USING SRID 32632"
PROCESSING "CLOSE_CONNECTION=DEFER"
SIZEUNITS pixels
CLASS
NAME "l103106"
EXPRESSION ('[code]' eq 'L103106')
STYLE
COLOR 76 230 0
SYMBOL "CIRCLE"
SIZE 3
MINSIZE 3
MAXSIZE 3
WIDTH 3
MINWIDTH 3
END
END
CLASS
NAME "l103107"
EXPRESSION ('[code]' eq 'L103107')
STYLE
COLOR 56 168 1
SYMBOL "CIRCLE"
SIZE 2
MINSIZE 2
MAXSIZE 2
WIDTH 2
MINWIDTH 2
END
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 è vietata e può
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ößt
gegen das Legislativdekret 196/2003. Sollten Sie diese
Mitteilung irrtümlicherweise erhalten haben, bitten
wir Sie uns umgehend zu informieren und anschließ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>