<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17514"><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end --></HEAD>
<BODY
style="LINE-HEIGHT: 1.5; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; FONT-FAMILY: 微软雅黑; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; FONT-SIZE: 10.5pt; BORDER-LEFT-WIDTH: 0px"
marginwidth="0" marginheight="0">
<DIV><SPAN style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">Thanks for
Andreas, It works.</SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt"></SPAN> </DIV>
<DIV style="FONT-FAMILY: Verdana; COLOR: #c0c0c0; FONT-SIZE: 10pt"
align=left>2016-08-18
<HR
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; WIDTH: 122px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px"
id=SignNameHR align=left>
<SPAN id=_FlashSignName>zhangkai.gis</SPAN> </DIV>
<HR
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px">
<BLOCKQUOTE
style="PADDING-LEFT: 0px; FONT-FAMILY: Times New Roman; MARGIN-LEFT: 0px; FONT-SIZE: 10pt"
id=ntes-flashmail-quote>
<DIV><STRONG>From:</STRONG>"Neumann, Andreas"
<a.neumann@carto.net></DIV>
<DIV><STRONG>Date:</STRONG>2016-08-18 14:51</DIV>
<DIV><STRONG>Subject:</STRONG>Re: Re: [Qgis-user] My text was cutted by
Qgis-server</DIV>
<DIV><STRONG>To:</STRONG>"zhangkai.gis"<zhangkai.gis@163.com></DIV>
<DIV><STRONG>Cc:</STRONG>"QGIS User
List"<Qgis-user@lists.osgeo.org></DIV>
<DIV> </DIV>
<DIV>
<P>Hi <SPAN>zhangkai,</SPAN></P>
<P>Please do not reply to me privately. Always reply to the mailing list.</P>
<P>From what you describe below, you are doing tiled WMS requests in
OpenLayers 2. Switch to single tile WMS mode and you should be fine. It will
then behave the same like in QGIS Desktop.</P>
<P>See also <A
href="http://gis.stackexchange.com/questions/83033/single-tiled-mapserver-wms-to-avoid-labels-and-features-cut-along-tile-borders-a">http://gis.stackexchange.com/questions/83033/single-tiled-mapserver-wms-to-avoid-labels-and-features-cut-along-tile-borders-a</A> or
the OpenLayers 2 WMS documentation: <A
href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html</A></P>
<P>Just use "singleTile: true" and you should be fine.</P>
<P>Andreas</P>
<P>On 2016-08-18 07:25, zhangkai.gis wrote:</P>
<BLOCKQUOTE
style="BORDER-LEFT: #1010ff 2px solid; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0.4em; PADDING-RIGHT: 0.4em; PADDING-TOP: 0px"
type="cite"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored --><!-- base ignored -->
<DIV><SPAN style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">Hello
Andreas,</SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">Thanks for
your reply.I made a map then publish to qgis server.Most settings are
default.When I use Qgis desktop as a web client It works perfect.But when I
use OpenLayers 2 to display the map My font was cutted.I made a label
with point layer.</SPAN></DIV>
<DIV><SPAN style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">My server
address is <A
href="http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</A> </SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt"></SPAN> </DIV>
<DIV><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">Thanks,</SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt">zhangkai</SPAN></DIV>
<DIV><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 10pt"></SPAN> </DIV>
<DIV>
<HR
style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; HEIGHT: 1px; BORDER-TOP: #c0c0c0 1px solid; BORDER-RIGHT: 0px">
</DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 0px; FONT-FAMILY: Times New Roman; MARGIN-LEFT: 0px; FONT-SIZE: 10pt"
id=ntes-flashmail-quote>
<DIV><STRONG>From:</STRONG>"Neumann, Andreas"
<a.neumann@carto.net></DIV>
<DIV><STRONG>Date:</STRONG>2016-08-17 14:41</DIV>
<DIV><STRONG>Subject:</STRONG>Re: [Qgis-user] My text was cutted by
Qgis-server</DIV>
<DIV><STRONG>To:</STRONG>"Paolo
Cavallini"<cavallini@faunalia.it></DIV>
<DIV><STRONG>Cc:</STRONG>"qgis-user"<qgis-user@lists.osgeo.org></DIV>
<DIV> </DIV>
<DIV>
<P>Hi Zhangkai,</P>
<P>Please be more specific about what your real issue is. Are you using
tiles or a single image WMS? Where exactly are the labels cut? At the
image border or somewhere inside the rendered image?</P>
<P>What label methods are you using? What settings?</P>
<P>Is your server publically available so we can check? Can you share a
small demo showing the issue?</P>
<P>Best, would be to open a bug report at <A
href="https://hub.qgis.org/">https://hub.qgis.org/ </A>and upload some
project and small sample data set and steps to reproduce.</P>
<P>We need much more information in order to help you.</P>
<P>Andreas</P>
<P>On 2016-08-17 08:33, Paolo Cavallini wrote:</P>
<BLOCKQUOTE
style="BORDER-LEFT: #1010ff 2px solid; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0.4em; PADDING-RIGHT: 0.4em; PADDING-TOP: 0px">
<DIV
style="PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: monospace; PADDING-TOP: 0px"
class=pre>Il 15/08/2016 03:07, zhangkai.gis ha scritto:
<BLOCKQUOTE
style="BORDER-LEFT: #1010ff 2px solid; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0.4em; PADDING-RIGHT: 0.4em; PADDING-TOP: 0px">Hello
all,<BR> I published a map(based shp layer)
though Qgis-server.I make a layer<BR>with point,then I add label to
the layer.so I got a text layer in<BR>Qgis.But when I publish it
through the Qgis-server.I found that some<BR>text was cutted and did
not shown.Is it the correct way to publish text<BR>layer?How to
improve it?</BLOCKQUOTE><BR>Hi zhangkai,<BR>pleas euse exactly the same
font on the desktop and on the server.<BR>All the best.</DIV></BLOCKQUOTE>
<P> </P>
<DIV> </DIV></DIV></BLOCKQUOTE></BLOCKQUOTE>
<P> </P>
<DIV> </DIV></DIV></BLOCKQUOTE></BODY></HTML>