I have not tested this for sizeunits meters, but for pixels
you need to set style MAXWIDTH (or MAXSIZE).
Håvard
On 2014-06-24 17:02, Kalbermatten Michaël wrote:
Hi list,
I'm trying to render a road given a certain width in meters.
To achieve that, I did use SIZEUNITS METERS in the LAYER definition.
I'm using this layer via WMS in QGIS. At small scales (1:10'000), this is
working great, the roads is well-sized regarding its real width, but as soon as
I zoom in and have a larger scale then approximately 1:5'000, then this is not
working anymore and the line width stays constant the more I zoom in.
I'm using MapServer 6.0.3. I did partially copy the mapfile content hereunder.
I think that I tried almost every possible parameter combination (like using
MINSIZE, MAXSIZE, MINWIDTH, and so on), but nothing seems to work…
Did anyone ever encounter that issue ? Am I doing sometime wrong ?
Best regards
Michael
MAP
NAME "… "
DEFRESOLUTION 96
EXTENT 400000 100000 800000 300000
IMAGETYPE "png"
MAXSIZE 5120
RESOLUTION 96
STATUS ON
TRANSPARENT TRUE
UNITS METERS
LAYER
NAME "…."
TYPE LINE
METADATA
"wms_srs" "EPSG:21781"
"wms_title" "…."
END
STATUS ON
CONNECTIONTYPE POSTGIS
CONNECTION "…."
PROCESSING "CLOSE_CONNECTION=DEFER"
DATA "geom from …. using unique idobj using srid=21781"
TEMPLATE "foo"
PROJECTION
"init=epsg:21781"
END
CLASSITEM "objektart"
SIZEUNITS METERS
UNITS METERS
SYMBOLSCALEDENOM 1000
CLASS
NAME "Road"
EXPRESSION "Road"
STYLE
COLOR 255 0 0
WIDTH 40
END
END
END
END
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users
--
Håvard Tveite
Department of Mathematical Sciences and Technology, NMBU
Drøbakveien 31, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64965483 Fax: +47 64965401 http://www.nmbu.no/imt/
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users