<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Ok, ticket created at: <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver/ticket/3668">http://trac.osgeo.org/mapserver/ticket/3668</a><br>
<br>
Daniel<br>
<br>
Am 07/02/2011 18:25, schrieb Lime, Steve D (DNR):
<blockquote
cite="mid:A7F7B3043D3BF0438F1206BAA3C9933C082677BEF7@MNMAIL05.ead.state.mn.us"
type="cite">
<pre wrap="">Documentation mod suggestions can be filed as tickets at <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver">http://trac.osgeo.org/mapserver</a>. Just assign it to the "MapServer Documentation" component and we'll handle it like any other defect...
Steve
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [<a class="moz-txt-link-freetext" href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>] On Behalf Of Jean-François Gigand
Sent: Monday, February 07, 2011 11:23 AM
To: Daniel Degasperi
Cc: <a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>
Subject: Re: [mapserver-users] PHP Mapscript: generateSLD
You're welcome.
I think this precision would be useful in the documentation. Am not in
the MapServer team however, and don't know the process for suggesting
modifications in the doc.
It seems logical that msMapObj.generateSLD() only includes enabled
layers, but it's not that clear that it's the same for explicit calls
to msLayerObj.generateSLD().
It might also be considered as a program issue... Don't know.
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 Jeff,
thank you very much, now it works.
Should this information be included in the documentation?
Daniel
Am 07/02/2011 17:14, schrieb Jean-François Gigand:
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>:
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>
--
Daniel Degasperi
R3 GIS Srl - GmbH
Via Johann Kravogl-Str. 2
I-39012 Meran/Merano (BZ)
web: <a class="moz-txt-link-abbreviated" href="http://www.r3-gis.com">www.r3-gis.com</a>
Email: <a class="moz-txt-link-abbreviated" href="mailto:daniel.degasperi@r3-gis.com">daniel.degasperi@r3-gis.com</a>
Tel. : +39 0473 494949
Fax : +39 0473 069902
ATTENZIONE! 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.
ACHTUNG! 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.
WARNING! 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)
</pre>
</blockquote>
<pre wrap="">_______________________________________________
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>
<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>