[mapserver-users] Doubling of labels on high resolution maps

Jan Hartmann j.l.h.hartmann at uva.nl
Wed Oct 16 07:37:47 PDT 2019


Hi,

I'm trying to generate high resolution print maps with QGIS, based on a 
MapServer WMS layer. When displayed in the regular QGIS application with 
72dpi, all looks fine. When using the Print Composer based on the same 
Mapfile, but with 300dpi, some labels are duplicated (not all). Some 
duplicates are clipped. The two versions can be seen here:

https://maps.hisgis.nl/marken_072dpi.png
https://maps.hisgis.nl/marken_300dpi.png

Below the Mapfile.  Any idea what goes wrong here?

Jan

map
name Markegrenzen

web
   metadata
     "wms_title" "Markegrenzen"
     "wms_srs" "EPSG:28992 EPSG:3857"
     "wms_extent"  "13000 301000 279000 620000"
     "wms_enable_request" "*"
   end
end

extent 13000 301000 279000 620000
units meters
size 400 400
resolution 300
defresolution 72


projection
   "init=epsg:28992"
end

z
layer
   name Markegrenzen
   status on
   type polygon
   connectiontype postgis
   connection "dbname=ov options='-c search_path=horigheid,public'"
   data " the_geom from (
         select gid,the_geom,naam from markegrenzen
     ) as foo using unique gid using srid=28992
   "
   labelitem "naam"
   class
     style
         outlinecolor 255 0 0
         width 1
     end
     label
         color 255 0 0
         size 4
     end
   end
end
end


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20191016/25eac07d/attachment.htm>


More information about the MapServer-users mailing list