Doubling of labels on high resolution maps
Jan Hartmann <[email protected]> Wed, 16 Oct 2019 16:37:47 +0200
| Newsgroups | gmane.comp.gis.mapserver.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============8834270162809939796==
Content-Type: multipart/alternative;
boundary="------------F54B1A0F47562FD232D6DEF8"
Content-Language: nl
This is a multi-part message in MIME format.
--------------F54B1A0F47562FD232D6DEF8
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
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
--------------F54B1A0F47562FD232D6DEF8
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">Hi,
<br>
<br>
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:<br>
<br>
<a href="https://maps.hisgis.nl/marken_072dpi.png">https://maps.hisgis.nl/marken_072dpi.png</a><br>
<a href="https://maps.hisgis.nl/marken_300dpi.png">https://maps.hisgis.nl/marken_300dpi.png</a><br>
<br>
Below the Mapfile. Any idea what goes wrong here?
<br>
<br>
Jan
<br>
<br>
map
<br>
name Markegrenzen
<br>
<br>
web
<br>
metadata
<br>
"wms_title" "Markegrenzen"
<br>
"wms_srs" "EPSG:28992 EPSG:3857"
<br>
"wms_extent" "13000 301000 279000 620000"
<br>
"wms_enable_request" "*"
<br>
end
<br>
end
<br>
<br>
extent 13000 301000 279000 620000
<br>
units meters
<br>
size 400 400
<br>
resolution 300
<br>
defresolution 72
<br>
<br>
<br>
projection
<br>
"init=epsg:28992"
<br>
end
<br>
<br>
z
<br>
layer
<br>
name Markegrenzen
<br>
status on
<br>
type polygon
<br>
connectiontype postgis
<br>
connection "dbname=ov options='-c search_path=horigheid,public'"
<br>
data " the_geom from (
<br>
select gid,the_geom,naam from markegrenzen
<br>
) as foo using unique gid using srid=28992
<br>
"
<br>
labelitem "naam"
<br>
class
<br>
style
<br>
outlinecolor 255 0 0
<br>
width 1
<br>
end
<br>
label
<br>
color 255 0 0
<br>
size 4
<br>
end
<br>
end
<br>
end
<br>
end
<br>
<br>
<br>
</div>
</body>
</html>
--------------F54B1A0F47562FD232D6DEF8--
--===============8834270162809939796==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbWFwc2VydmVy
LXVzZXJzIG1haWxpbmcgbGlzdAptYXBzZXJ2ZXItdXNlcnNAbGlzdHMub3NnZW8ub3JnCmh0dHBz
Oi8vbGlzdHMub3NnZW8ub3JnL21haWxtYW4vbGlzdGluZm8vbWFwc2VydmVyLXVzZXJz
--===============8834270162809939796==--