[mapserver-users] Labels are cut at the borders of the tiles

thomas bonfort thomas.bonfort at gmail.com
Mon Jan 10 10:07:18 EST 2011


PARTIALS FALSE
FORCE FALSE

is a strict minimum if you use a tiling client.

PROCESSING "LABEL_NO_CLIP=1" isn't obligatory, but will prevent labels
being repeated on adjacent tiles.

if you are using the openlayers 'gutter' parameter, or the tilecache
'metabuffer' option, you MUST also set
WEB
    METADATA
        labelcache_map_edge_buffer "-10"
    END
END
at the layer level, where the "10" in "-10" is the value of your
gutter/metabuffer parameter

if this setup works for you, why not create an entry in the mapserver
wiki [1]? ;)

regards,
thomas

[1] http://trac.osgeo.org/mapserver/wiki/FAQ

On Mon, Jan 10, 2011 at 15:43, Jeff McKenna
<jmckenna at gatewaygeomatics.com> wrote:
> Hello,
>
> I believe you require a PROCESSING parameter in your LAYER, such as:
>
>   PROCESSING "LABEL_NO_CLIP=1"
>
> As this is a common question you can find lots of responses in the mailing
> list archives such as:
> http://osgeo-org.1803224.n2.nabble.com/Point-annotation-labels-and-tiles-td5419368.html
>  You might want to search there also for a better response (search the list
> at: http://osgeo-org.1803224.n2.nabble.com/MapServer-f1969210.html).
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
>
> On 11-01-10 8:45 AM, Rudert, Clemens VGD wrote:
>>
>> Hello
>> I have a problem with a annotation. I tried to write some numbers at
>> specified points. I use OpenLayers for rendering. Now when i try to
>> render the map i get the lables but at the border oft the tiles the
>> lables are cut. Below you see the layer definition in my map file:
>> LAYER #Grundstücksnummer
>> # Connect to a remote spatial database
>> CONNECTIONTYPE X
>> CONNECTION X
>> PROCESSING X
>> DATA X
>>
>> PROJECTION
>> "init=epsg:21781" # EPSG Schweiz!
>> END #projection
>>
>> DEBUG ON
>> NAME 'grundstuecknummer'
>> GROUP 'grundkarte_farbig'
>> TYPE ANNOTATION
>> STATUS ON
>> MAXSCALE 5000
>> SYMBOLSCALEDENOM 3000
>> LABELITEM "nummer_m_deko"
>>
>> CLASS
>> NAME "Grundstücksnummern"
>> LABEL
>> TYPE TRUETYPE
>> FONT CadastraIt
>> COLOR 0 0 0
>> SIZE [groesse]
>> MAXSIZE 20
>> ANGLE [ori]
>> FORCE true
>> PARTIALS false
>> POSITION cc
>> END #label
>> END #class
>>
>> END #layer
>> How can i fix the problem of cuting. I dont understand where the problem
>> can be. Because i set the PARTIALS to false.
>> I hope someone can help me. (sorry for my horrible english)
>>
>> kindly regards
>>
>> Clemens Rudert
>>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list