[Mapserver-users] sld example

Jean-Denis Giguere jdenisgiguere at fastmail.fm
Mon Jun 21 08:36:19 EDT 2004


Kralidis,Tom [Burlington] wrote:
> 
>>-----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

In your example uses the tag <ExternalURL> which doesn't exist in 
version 1.0.0 of SLD. Do you have an example of SLD working in MapServer 
using <ExternalGraphic></ExternalGraphic> and <OnlineResource/> ?

Thank you in advance,

Jean-Denis
> 
> 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
>>
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users





More information about the mapserver-users mailing list