[mapserver-users] label style polyline problem
Joel Kaiser
kaiser at webgis.de
Fri Jun 29 06:46:03 PDT 2012
Hello,
I've a problem with mapserver 6.0.3. I've compiled a mapserver on a debian 6.
Now I'm playing with the mapserver to get a nice billboard behind my
labels in a wms.
Every time I'm using a label style with a geomtransform labelpoly my
whole label disappears.
What am I doing wrong?
Screenshots as an attachement.
with kind regards,
Joel Kaiser
#-----------------------------------
# My compiling configure
#-----------------------------------
./configure --with-zlib \
--with-ogr=/usr/bin/gdal-config \
--with-gdal=/usr/bin/gdal-config \
--with-wfsclient \
--with-wmsclient \
--enable-debug \
--with-curl-config=/usr/bin/curl-config \
--with-proj=/usr/ \
--with-tiff \
--with-gd=/usr/ \
--with-jpeg \
--with-freetype=/usr/ \
--with-threads \
--with-wcs \
--with-postgis=/usr/bin/pg_config \
--with-libiconv=/usr \
--with-wfs \
--with-wms
#-----------------------------------
# My testing mapfile
#-----------------------------------
MAP
SYMBOL
NAME "circle"
TYPE ellipse
FILLED true
POINTS 1 1 END
END
SIZE 200 200
FONTSET "/home/joel/mapserver/font.list"
PROJECTION
"init=epsg:3857"
END
NAME "TESTMap"
EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
UNITS meters
MAXSIZE 4000
SHAPEPATH ''
IMAGECOLOR 255 255 255
STATUS ON
OUTPUTFORMAT
NAME png
DRIVER AGG/PNG
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
FORMATOPTION "INTERLACE=OFF"
END
WEB
METADATA
"ows_enable_request" "*"
"wms_title" "Test"
"wms_abstract" "Test 6.0.3"
"wms_onlineresource" "http://192.168.0.178/cgi-bin/mapserv2?"
"wms_srs" "epsg:3857"
"wms_encoding" "UTF-8"
END
END
LAYER
NAME "feature"
STATUS ON
METADATA
"wms_title" "feature"
"wms_srs" "EPSG:3857"
END
TYPE POINT
EXTENT -20037508.34 -20037508.34 20037508.34 20037508.34
FEATURE
TEXT "Label"
POINTS
841945.38193429005 6074504.7685973998
END
END
CLASS
STYLE
SYMBOL 'circle'
SIZE 12
COLOR 0 0 0
END
LABEL
STYLE
GEOMTRANSFORM labelpoly
COLOR 102 102 102
OFFSET 1 1
END
STYLE
GEOMTRANSFORM labelpoly
COLOR 200 200 200
END
FONT "serif"
TYPE TRUETYPE
POSITION UR
MINSIZE 12
SIZE 12
MAXSIZE 12
COLOR 0 0 0
END
END
END
END
#-------------------------
# example wms query
#-------------------------
LAYERS=feature&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A3857&BBOX=838732.88625015,6071309.9178178,847418.04358785,6076498.081112&WIDTH=909&HEIGHT=543
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv2_with_label_style.png
Type: image/png
Size: 2129 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120629/059ebe6d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mapserv2_without_label_style.png
Type: image/png
Size: 2573 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120629/059ebe6d/attachment-0001.png>
More information about the MapServer-users
mailing list