[Mapserver-users] sld example

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Fri Jun 18 08:13:37 PDT 2004


> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu 
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of 
> Dean Gadoury
> Sent: Friday, June 18, 2004 10:42 AM
> To: MapServer List
> Subject: [Mapserver-users] sld example
> 
> 
> Hi,
> Does anyone have an example of an SLD document in which point symbols 
> are styled?
> Dean
>

Try:

http://cgdi-dev.geoconnections.org/prototypes/sld/gcdb.xml

Alternatively, you can also do this with PHP to convert existing
MapServer classes to OGC:SLD, i.e.:

<?php
// load mapscript
dl("php_mapscript_42.dll");

// instantiate a new Map Object
// with the mapfile as an argument
$oMap = ms_newMapObj("demo.map");

// generate an SLD into a string variable
$sldString = $oMap->generatesld();

// print out the SLD
// or do whatever with it
echo $sldString;
?>

..Tom

=========================
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/



 
> -- 
> ___________________________
> 
> Dean Gadoury
> 
> DM Solutions Group
> 30 Rosemount Ave. Suite 200
> Ottawa, Ontario. K1Y 1P4
> 613.565.5056 ext. 24
> 
> dgadoury at dmsolutions.ca
> www.dmsolutions.ca
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/maps> erver-users
> 




More information about the MapServer-users mailing list