Lining up tiles and styling

Bob Basques bob.basques at CI.STPAUL.MN.US
Tue Feb 21 14:46:14 EST 2006


Ed,

If you want to get  into the coding aspect of things.  The trick is to 
grab an image bigger than the desired tile size and clip it back with 
some other piece of middle ware to the desired tile size.  Another route 
to go, is to build a rather large tile, and then clip it back to smaller 
tiles, this even preserves the labeling crossing the tile edges.  You 
still need to throw a buffer area away in this process, but it's has a 
much higher level of success with regard to building a seamless tile set 
with little to no edge matching artifacts.

There are other things to worry about though like the text labeling 
being held back from the edges enough so that they don't get caught in 
the clipping process as well.

There are probably other things to worry about in the process as well 
that I'm not aware of at present.

bobb



Stephen Woodbridge wrote:
> Ed,
>
> Have you looked at http://ka-map.maptools.org/
>
> This is a google like AJAX client that uses php and mapserver on the 
> backend to generate tiles. Even if you do not want to use the whole 
> thing, you might look at tile.php to see how they resolve these issues.
>
> -Steve W.
>
> Ed Dowding wrote:
>   
>> I'm tiling mapserver tile requests to form a map. On those tiles are lines
>> styled with a thickness. The lines also have rounded ends.
>>
>> Which means that when a line goes off the edge of a tile, they're
>> "rounding-off" making it impossible to tile from separate requests.
>>
>> Quite difficult to explain, so here's a picture..
>> http://citysafe.org/temp/mapRounding.png
>>
>> One approach would be to get mapserver to draw the line beyond the extent of
>> its tile... but this is, I think, hypothetical, since I cant see that it's
>> possible from the docs.
>>
>>
>> Does anyone have any experience of this?
>>
>> Thanks in advance,
>>
>> Ed
>>
>>     
>
>   



More information about the mapserver-users mailing list