SLD / Point symbolizer & Size

François Prunayre fx.prunayre at OIEAU.FR
Thu Apr 6 10:51:21 EDT 2006


Thanks Michael, that was it ...
I have to check layers sizeunits to see if I get the same answer for
Mapserver & Geoserver. 

Thanks for your help. 
Francois  

-----Message d'origine-----
De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la
part de Michael Schulz
Envoyé : jeudi 6 avril 2006 15:09
À : MAPSERVER-USERS at LISTS.UMN.EDU
Objet : Re: [UMN_MAPSERVER-USERS] SLD / Point symbolizer & Size

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.x
> ml 
> <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&S
> RS=epsg:4326&SLD=http://xml.sandre.eaufrance.fr/exist/Geo/sld/REPOM.xm
> l 
> <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.x
> ml> 
> 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.x
> ml 
> <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&REQ
> UEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=eps
> g:4326&STYLES=REPOM&FORMAT=image/png
> <http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&RE
> QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=ep
> sg:4326&STYLES=REPOM&FORMAT=image/png>
> http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQ
> UEST=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&RE
> QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-6,41,10,52&SRS=ep
> sg:4326&STYLES=REPOM&FORMAT=image/png>
> http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&REQ
> UEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=eps
> g:4326&STYLES=REPOM&FORMAT=image/png
> <http://sandre.eaufrance.fr/geoserver/wms?SERVICE=WMS&VERSION=1.1.1&RE
> QUEST=GetMap&LAYERS=REPOM&WIDTH=400&HEIGHT=400&BBOX=-5,48,-4,49&SRS=ep
> sg: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
-----------------------------------------------------------

--
Ce message a ete verifie par MailScanner 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 prives. Toute publication, utilisation ou diffusion, meme
partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal,
confidential and secret. Any total or partial publication, use or
distribution must be authorized.


-- 
Ce message a ete verifie par MailScanner 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 prives. Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee.

Any data and information contained in this electronic mail is personal, confidential and secret. Any total or partial publication, use or distribution must be authorized.



More information about the mapserver-users mailing list