[ka-Map-users] Re: Partial labels
Paul Spencer
pspencer at dmsolutions.ca
Tue Mar 21 16:17:42 EST 2006
Hi Ramesh,
The root of the problem is that mapserver renders stuff right up to
the edge of the map. To fix rendering issues with thick lines using
'circle' symbol (for instance), we have to render a slightly bigger
image and clip out the center of it to get lines to match up (among
other things). This causes a problem with point symbols and labels
that are rendered close to the edge of the map. In MapServer 4.6,
metadata was introduced to prevent text and symbols rendering too
close to the edge of the map. This is controlled in ka-Map's
config.php file with $metaBuffer (default 10 pixels).
MapServer 4.6 (final) should have support for the metadata that
supposedly fixes this problem. However, I have seen some examples of
places where the label does get vertically or horizontally clipped at
a tile boundary. I can't reliably reproduce the problem so it is
hard to fix.
Do you have a small dataset that I could use to reproduce the problem
with a copy of your configuration?
You can use the gimp to capture screenshots in linux. There are
probably a ton of other ways.
Cheers
Paul
On 21-Mar-06, at 3:59 PM, ramesh karra wrote:
> Thanks for the quick response Paul!
>
> I am using mapserver 4.6 and the class drawing the
> label is
> CLASS
> NAME "Points"
>
> STYLE
> SYMBOL 7
> COLOR 225 225 225
> OUTLINECOLOR 255 000 000
> SIZE 0
> END
>
> LABEL
> FORCE TRUE
> COLOR 0 0 0
> SHADOWCOLOR 255 255 255
> SHADOWSIZE 1 1
> TYPE TRUETYPE
> FONT verdana
> SIZE 8
> ANTIALIAS TRUE
> POSITION CC
> PARTIALS FALSE
> MINDISTANCE 0
> BUFFER 0
> END
> END
>
> How do I capture the screenshot in linux?
>
> Thanks
> Ramesh
>
> --------------------
> Ramesh,
>
> there can definitely be a problem, but it actually
> depends more on
> mapscript version. What version of mapserver are you
> using?
>
> Also, it may be pertinent to know what your label
> style is for the
> layer that is having problems.
>
> Finally, can you send a screenshot of the problem?
>
> Cheers
>
> Paul
>
> On 21-Mar-06, at 2:52 PM, ramesh karra wrote:
>
>> Hi,
>>
>> I have kaMap ver 0.2 (Feb 7, 2006) and sometimes I
> see
>> partial labels. This seem to happen when the label
> is
>> split between two tiles. But it does not happen
> every
>> time.
>>
>> Is this a known issue? Any solutions?
>>
>> Thanks
>> Ramesh
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the ka-Map-users
mailing list