Re: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big

2012-12-11 Thread Lime, Steve D (DNR)
The SIZEUNITS are applied based on a computed cellsize for a map request- there 
is a conversion from meters to pixels based on an extent/image size. Without 
that same context I don't see how the legend can possibly match the map. Can 
you pass extent and image size as part of a getLegendGraphic request?

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Astrid Emde
Sent: Tuesday, December 11, 2012 10:23 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is 
too big

Hello,

I am testing with 6.2 and want to define a WMS with SIZEUNITS meters. My map 
looks good but I get a very big outline around my polygons-Symbol in the legend.

This is my Layerdefinition:
LAYER
NAME 'befestigte_flaechen'
TYPE POLYGON

METADATA
WMS_TITLE 'befestigte Flaechen'
..
END

SIZEUNITS meters

CLASS
  NAME "1 Fche"
  EXPRESSION "1"
   STYLE
 WIDTH 0.1
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END
END
...
END

The Map looks good with this simple definition in the STYLE-Block.

But the getLegendGraphic-Request looks bad. The OUTLINE of the polygon in the 
legend is much too big.

When I add  MINWIDTH and MAXWIDTH to the STYLE the legend looks fine.
   STYLE
 WIDTH 0.1
 MINWIDTH 0.1
 MAXWIDTH 0.2
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END

But I thought that I do not need MINWIDTH and MAXWIDTH when SIZEUNITS meters is 
set (and no SYMBOLSCALEDENOM is set).

see also
https://github.com/mapserver/mapserver/issues/4401#issuecomment-7128252

Thanks for your help

--
Best regards

Astrid


Where2B Konferenz 2012
13. Dezember 2012 in Bonn
www.where2b-conference.com

--

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] MapServer 6.2: SIZEUNITS meters - Legend OUTLINE is too big

2012-12-11 Thread Astrid Emde
Hello,

I am testing with 6.2 and want to define a WMS with SIZEUNITS meters. My
map looks good but I get a very big outline around my polygons-Symbol in
the legend.

This is my Layerdefinition:
LAYER
NAME 'befestigte_flaechen'
TYPE POLYGON

METADATA
WMS_TITLE 'befestigte Flaechen'
..
END

SIZEUNITS meters

CLASS
  NAME "1 Fche"
  EXPRESSION "1"
   STYLE
 WIDTH 0.1
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END
END
...
END

The Map looks good with this simple definition in the STYLE-Block.

But the getLegendGraphic-Request looks bad. The OUTLINE of the polygon in
the legend is much too big.

When I add  MINWIDTH and MAXWIDTH to the STYLE the legend looks fine.
   STYLE
 WIDTH 0.1
 MINWIDTH 0.1
 MAXWIDTH 0.2
 OUTLINECOLOR 58 255 84
 COLOR 250 0 0
   END

But I thought that I do not need MINWIDTH and MAXWIDTH when SIZEUNITS
meters is set (and no SYMBOLSCALEDENOM is set).

see also
https://github.com/mapserver/mapserver/issues/4401#issuecomment-7128252

Thanks for your help

-- 
Best regards

Astrid


Where2B Konferenz 2012
13. Dezember 2012 in Bonn
www.where2b-conference.com

--

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users