SLD / Point symbolizer & Size

Michael Schulz mschulz at WEBGIS.DE
Thu Apr 6 06:09:04 PDT 2006


Hi Francois,

as long as you don't specify a symbolscale MapServer will do the 
Size=MinSize=Maxsize thing. Did you set the layers sizeunits to pixel 
(pixel is the default)?

Cheers, Michael


François Prunayre schrieb:
> Hi list,
> Using SLD and symbols, I get 2 differents behaviour using Mapserver & 
> Geoserver. Differences is on point symbolizer and the size parameter.
>  
> For example, using a png file of 20x20px 
> http://sandre.eaufrance.fr/geo/sym/port.png
> in the following SLD for mapserver : 
> _http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml_ 
> <http://sandre.eaufrance.fr/geoserver/data/generated/topp_REPOM.html>
>  
> When I ask for 3 images (400x400px) for the REPOM layer at 3 differents 
> scales, the symbol is getting bigger and bigger ... Size is set to 2. 
> And units in the OGC SLD spec is defined as "The *Size *element gives 
> the absolute size of the graphic in pixels encoded as a floating-point 
> number."
> http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml 
> <http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml>
> http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml 
> <http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml>
> http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml 
> <http://services.sandre.eaufrance.fr/geo/ouvrage?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xml>
>  
> Using Geoserver with the same layers, when I ask for 3 images 
> (400x400px) for the REPOM layer at 3 differents scales (same as previous 
> query), the symbol is always the same size (15 as defined in the STYLES 
> for geoserver).
> http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png 
> <http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png>
> http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,48,0,50&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png 
> <http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png>
> http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png 
> <http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=epsg:4326&STYLES=REPOM&FORMAT=image/png>
>  
> Mapserver is setting the SIZE parameter in the class ... but maybe not 
> MAXSIZE and MINSIZE. In that case default value for MAXSIZE and MINSIZE 
> are used ? ... should we have SIZE=MAXSIZE=MINSIZE to have always the 
> same size for the symbol.
>  
> This behaviour also occurs using well know shape as "square", "circle", 
> "triangle" ...
>  
> Any ideas on how to get symbol always with the same size ? Anyone having 
> the same behaviour ?
>  
> Thanks for your help.
> Francois
>  
> PS : Geoserver doesn't support SLD parameter in the URL for the time 
> being so we have to define a style in Geoserver and the using keyword 
> STYLES in the URL.
>  
>  
>  
> 
> -- 
> Ce message a ete verifie par *MailScanner* 
> <http://www.mailscanner.info/> pour des virus ou des polluriels et rien 
> de suspect n'a ete trouve.
>  
> Les donnees et renseignements contenus dans ce message sont personnels, 
> confidentiels et privés.Toute publication, utilisation ou diffusion, 
> meme partielle, doit etre autorisee.
>  
> Any data and information contained in this electronic mail is personal, 
> confidential and private. Any total or partial publication, use or 
> distribution must be authorized.


-- 
-----------------------------------------------------------
Michael Schulz                            mschulz at webgis.de

in medias res  Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66              Tel +49 (0)761 556959-5
79108 Freiburg                      Fax +49 (0)761 556959-6

                www.webgis.de / www.zopecms.de
-----------------------------------------------------------
NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU
-----------------------------------------------------------



More information about the MapServer-users mailing list