[mapserver-users] mapcache: labels and symbols getting clippedat tile edges

Worth Lutz wal3 at mindspring.com
Sun Oct 14 16:21:36 PDT 2012


After more searching and experimenting, I think I have this working.

This is my first time working with wms and tiles.

I have added more to my mapfile and something fixed my problem.
I'm guessing PARTIALS FALSE;

Thanks,
Worth

-----Original Message-----
From: Worth Lutz [mailto:wal3 at mindspring.com] 
Sent: Friday, October 12, 2012 9:05 PM
To: 'Stephen Woodbridge'; 'thomas bonfort'
Cc: 'mapserver-users'
Subject: RE: [mapserver-users] mapcache: labels and symbols getting
clippedat tile edges

Help! I spent all day googling and this email is all I can find. Hopefully
you can point me toward the answer.

I am trying to start using mapcache with a wms server. I installed mapcache
from ubuntugis-unstable and after much googling finally figured out that all
I needed was to put the sample mapcache.xml file where the mapcache alias
pointed and the demo would work. This got me started.

Now my problem is highway signs on the tile edges. Or really parts of
highway signs. I think that this thread got me started in the right
direction but I have now gotten off the path again.

Where is documentation on "labelcache_map_edge_buffer"? Google is not
helpful. I inserted this into my mapfile at the MAP level. I have the
mapcache <metabuffer> set to the same value. Or actually the opposite sign
(negative in labelcache_map_edge_buffer) as that appears to be what correct
from my searching. Is that correct? In any case I still get the clipped
signs.

I tried modifying the OpenLayers code from the demo to test there.  I
increased the gutter value for the layer to the same as the <metabuffer> but
that only caused the layers background to go from transparent to black.

At this point I changed stuff back and forth until I was so totally confused
and had to go back to the original mapfile and mapcache.xml to get back to
some semblance of working.

Is there an example of what these values should be and how they interact so
I can get mapcache to not clip the highway signs?


Thanks for any direction you can give me,
Worth Lutz

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Wednesday, May 02, 2012 1:15 PM
To: thomas bonfort
Cc: mapserver-users
Subject: Re: [mapserver-users] mapcache: labels and symbols getting
clippedat tile edges

On 5/2/2012 11:39 AM, thomas bonfort wrote:
> the mapcache metabuffer setting *must always* match your mapserver
> labelcache_map_edge_buffer, is that the case ?

Thomas,

Nope, changed it and it works great now.
This should be noted in the mapcache.xml.sample file.

What controls the order of the layers in the OL layer switcher?
I have an overlay and a base layer but the overlay is getting listed 
first so when the demo service starts I get only transparent tiles of 
the overlay are shown instead of the base map until you open the layer 
switcher. I understand the demo service is not designed to be an 
application, only a demo that you can cut and paste into a real application.

Thanks,
   -Steve


> On Wed, May 2, 2012 at 5:35 PM, Stephen Woodbridge
> <woodbri at swoodbridge.com>  wrote:
>> Hi all,
>>
>> I have setup mapcache which is working great but I amd getting text
labels
>> and symbols along the metatile edges that are getting clipped. IE: they
are
>> getting rendered and the left tile and then chopped but not in the right
>> tile so I end up with parts of symbols and text :(
>>
>> I have<metabuffer>50</metabuffer>  which I increased from 30 without
without
>> improving the issue.
>>
>>   <tileset name="tiger-base">
>>     <source>tiger2011</source>
>>     <cache>disk</cache>
>>     <grid>WGS84</grid>
>>     <grid>g</grid>
>>     <format>PNGQ_FAST</format>
>>     <metatile>5 5</metatile>
>>     <metabuffer>50</metabuffer>
>>     <expires>3600</expires>
>>   </tileset>
>>
>> This is happening for highway shields and for city names. Bith of these
are
>> Annotation layers.
>>
>> Any ideas on how to fix this?
>>
>> Thanks,
>>   -Steve W
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2411/4974 - Release Date: 05/02/12



More information about the mapserver-users mailing list